- read(HttpInputStream) - Method in class sunlabs.brazil.asterisk.AsteriskHandler.AmiStringMap
-
- read(HttpInputStream) - Method in class sunlabs.brazil.util.http.MimeHeaders
-
Reads MIME headers from the specified input stream.
- read(HttpInputStream, boolean) - Method in class sunlabs.brazil.util.http.MimeHeaders
-
Reads MIME headers from the specified input stream.
- readFully(byte[]) - Method in class sunlabs.brazil.util.http.HttpInputStream
-
Reads buf.length
bytes from the input stream.
- readFully(byte[], int, int) - Method in class sunlabs.brazil.util.http.HttpInputStream
-
Reads the specified number of bytes from the input stream.
- readLine() - Method in class sunlabs.brazil.util.http.HttpInputStream
-
Reads the next line of text from the input stream.
- readLine(int) - Method in class sunlabs.brazil.util.http.HttpInputStream
-
Reads the next line of text from the input stream, up to the
limit specified.
- realm - Variable in class sunlabs.brazil.handler.BasicAuthHandler
-
- redirect(String, String) - Method in class sunlabs.brazil.server.Request
-
Responds to an HTTP request with a redirection reply, telling the
client that the requested url has moved.
- redirect(RewriteContext) - Method in class sunlabs.brazil.template.RedirectTemplate
-
Look for a redirect tag, change it to an HREF, and remember where
to redirect to (e.g.
- RedirectTemplate - Class in sunlabs.brazil.template
-
[Deprecated, use the AddHeaderTemplate instead.]
Template class for redirecting an html page
This class is used by the TemplateHandler
- RedirectTemplate() - Constructor for class sunlabs.brazil.template.RedirectTemplate
-
- redirectToken - Variable in class sunlabs.brazil.filter.SessionFilter
-
- ReFilter - Class in sunlabs.brazil.filter
-
Filter to replace text content via a reqular expression substitution.
- ReFilter() - Constructor for class sunlabs.brazil.filter.ReFilter
-
- ReflectHandler - Class in sunlabs.brazil.handler
-
Handler for reflecting query data back to the client.
- ReflectHandler() - Constructor for class sunlabs.brazil.handler.ReflectHandler
-
- regexp - Variable in class sunlabs.brazil.handler.SimpleSessionHandler
-
- Regexp - Class in sunlabs.brazil.util.regexp
-
The Regexp
class can be used to match a pattern against a
string and optionally replace the matched parts with new strings.
- Regexp(String) - Constructor for class sunlabs.brazil.util.regexp.Regexp
-
Compiles a new Regexp object from the given regular expression
pattern.
- Regexp(String, boolean) - Constructor for class sunlabs.brazil.util.regexp.Regexp
-
Compiles a new Regexp object from the given regular expression
pattern.
- Regexp.Filter - Interface in sunlabs.brazil.util.regexp
-
This interface is used by the Regexp
class to generate
the replacement string for each pattern match found in the source
string.
- Regsub - Class in sunlabs.brazil.util.regexp
-
The Regsub
class provides an iterator-like object to
extract the matched and unmatched portions of a string with respect to
a given regular expression.
- Regsub(Regexp, String) - Constructor for class sunlabs.brazil.util.regexp.Regsub
-
Construct a new Regsub
that can be used to step
through the given string, finding each substring that matches
the given regular expression.
- RemoteHostTemplate - Class in sunlabs.brazil.sunlabs
-
Return the remote host name associated with this request.
- RemoteHostTemplate() - Constructor for class sunlabs.brazil.sunlabs.RemoteHostTemplate
-
- remove(String) - Method in class sunlabs.brazil.handler.HtmlRewriter
-
Removes the given case-insensitive key and its corresponding value
from the current tag's attributes.
- remove() - Method in class sunlabs.brazil.properties.PropertiesList
-
Remove this object from the list in which it's a member.
- remove(Object) - Method in class sunlabs.brazil.properties.PropertiesList
-
Invokes the same method on the wrapped Dictionary
object.
- remove(Object, Object) - Static method in class sunlabs.brazil.session.SessionManager
-
Remove an object from the session manager.
- remove(String, String) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
-
Remove items from a list, by name.
- remove(Object) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
-
We should never call this; it's required by the interface.
- remove(Object) - Method in class sunlabs.brazil.sunlabs.XmlTree
-
- remove(String) - Method in class sunlabs.brazil.util.StringMap
-
Removes the given case-insensitive key and its corresponding value
from this StringMap.
- remove(int) - Method in class sunlabs.brazil.util.StringMap
-
- remove(Object) - Method in class sunlabs.brazil.util.StringMap
-
Performs the same job as remove(String)
.
- removeEvents(String, String, String) - Method in class sunlabs.brazil.asterisk.AsteriskHandler.Events
-
Remove events.
- removeEvents(String, String, String) - Static method in class sunlabs.brazil.asterisk.AsteriskHandler
-
java access to removing event registrations.
- removeObj(Object, Object) - Method in class sunlabs.brazil.session.CacheManager
-
Remove an object from a session table.
- removeObj(Object, Object) - Method in class sunlabs.brazil.session.SessionManager
-
Removes the object associated with the given Session ID and ident.
- removePointToPointHeaders(MimeHeaders, boolean) - Static method in class sunlabs.brazil.util.http.HttpRequest
-
Removes all the point-to-point (hop-by-hop) headers from
the given mime headers.
- removeProperty(String, boolean) - Method in class sunlabs.brazil.properties.PropertiesList
-
Remove a property from a a chain of properties lists.
- removeProperty(String) - Method in class sunlabs.brazil.properties.PropertiesList
-
Remove the key and its associated value from the first properties
object in the chain that contains this key.
- removeSharedProps(Dictionary) - Method in class sunlabs.brazil.server.Request
-
Removes a Dictionary
added by
addSharedProps
.
- remQEvent(String, String, String) - Method in class sunlabs.brazil.asterisk.AsteriskHandler.EventItem
-
Remove an exp/Q pair.
- replace(String) - Method in class sunlabs.brazil.handler.RePollHandler.Extract
-
Do the substitution
- replace() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
-
true if the previous replace worked
- replace(String) - Method in class sunlabs.brazil.sunlabs.XmlTree
-
Replace the XmlTree with new markup.
- replace(String) - Method in class sunlabs.brazil.util.LexHTML
-
Changes the string that this LexHTML is parsing.
- replace(String) - Method in class sunlabs.brazil.util.LexML
-
Changes the string that this LexML is parsing.
- ReplaceFilter - Class in sunlabs.brazil.filter
-
Filter to replace current content with a static form, or template.
- ReplaceFilter() - Constructor for class sunlabs.brazil.filter.ReplaceFilter
-
- RePollHandler - Class in sunlabs.brazil.handler
-
Do regsub processing on content to extract properties.
- RePollHandler() - Constructor for class sunlabs.brazil.handler.RePollHandler
-
- RePollHandler.Extract - Class in sunlabs.brazil.handler
-
A "bag" to store regular expression extraction instructions
- report - Variable in class sunlabs.brazil.server.ChainHandler
-
The name (if any) of the property to receive the name of the handler
that handled the request.
- Request - Class in sunlabs.brazil.server
-
Represents an HTTP transaction.
- Request(Server, Socket) - Constructor for class sunlabs.brazil.server.Request
-
Create a new http request.
- Request() - Constructor for class sunlabs.brazil.server.Request
-
Needed by VelocityFilter.Vrequest.
- request - Variable in class sunlabs.brazil.template.RewriteContext
-
The Request object, as passed to a handler's respond method.
- Request.HttpOutputStream - Class in sunlabs.brazil.server
-
The HttpOutputStream
provides the convenience method
writeBytes
for writing the byte representation of a
string, without bringing in the overhead and the deprecated warnings
associated with a java.io.DataOutputStream
.
- Request.HttpOutputStream(OutputStream) - Constructor for class sunlabs.brazil.server.Request.HttpOutputStream
-
- requestCount - Variable in class sunlabs.brazil.server.Server
-
Count of HTTP requests received so far.
- requestHeaders - Variable in class sunlabs.brazil.util.http.HttpRequest
-
The headers for the HTTP request.
- requestPrefix - Variable in class sunlabs.brazil.handler.GenericProxyHandler
-
- requestsLeft - Variable in class sunlabs.brazil.server.Request
-
- reset() - Method in class sunlabs.brazil.handler.HtmlRewriter
-
Forgets all the tokens that have been appended to the resultant
HTML document so far, including the current token.
- reset() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
-
- ResourceHandler - Class in sunlabs.brazil.handler
-
Handler for serving documents out of the jar file.
- ResourceHandler() - Constructor for class sunlabs.brazil.handler.ResourceHandler
-
- ResourceLimitHandler - Class in sunlabs.brazil.handler
-
Handler for server resource management.
- ResourceLimitHandler() - Constructor for class sunlabs.brazil.handler.ResourceLimitHandler
-
- respond(Request) - Method in class sunlabs.brazil.asterisk.AsteriskAGIHandler
-
We don't handle any "normal" requests.
- respond(Request) - Method in class sunlabs.brazil.asterisk.AsteriskHandler
-
The handler only registers * servers.
- respond(Request) - Method in class sunlabs.brazil.filter.CopyContentFilter
-
This is the request object before the content was fetched
- respond(Request) - Method in class sunlabs.brazil.filter.ExecFilter
-
This is the request object before the content was fetched
- respond(Request) - Method in class sunlabs.brazil.filter.FilterHandler
-
Responds to an HTTP request by the forwarding the request to the
wrapped Handler
and filtering the output of that
Handler
before sending the output to the client.
- respond(Request) - Method in class sunlabs.brazil.filter.MD5Filter
-
This is the request object before the content was fetched.
- respond(Request) - Method in class sunlabs.brazil.filter.PlainFilter
-
This is the request object before the content was fetched
- respond(Request) - Method in class sunlabs.brazil.filter.ReFilter
-
This is the request object before the content was fetched
- respond(Request) - Method in class sunlabs.brazil.filter.ReplaceFilter
-
This is the request object before the content was fetched
- respond(Request) - Method in class sunlabs.brazil.filter.SessionFilter
-
This is called by the filterHandler before the content generation
step.
- respond(Request) - Method in class sunlabs.brazil.filter.TemplateFilter
-
No action before request is made
- respond(Request) - Method in class sunlabs.brazil.filter.UrlMapFilter
-
This is the request object before the content was fetched
- respond(Request) - Method in class sunlabs.brazil.filter.UrlSessionFilter
-
Extract the cookie out of the URL, rewriting the url as needed.
- respond(Request) - Method in class sunlabs.brazil.handler.AclSwitchHandler
-
- respond(Request) - Method in class sunlabs.brazil.handler.BasicAuthHandler
-
Looks up the credentials for this request, and insert them into the
request stream.
- respond(Request) - Method in class sunlabs.brazil.handler.CgiHandler
-
Dispatch and handle the CGI request.
- respond(Request) - Method in class sunlabs.brazil.handler.ChainSawHandler
-
Run the chain-handler, counting the # of bytes of output generated
by its chained handlers.
- respond(Request) - Method in class sunlabs.brazil.handler.ChownHandler
-
Nothing to respond to
- respond(Request) - Method in class sunlabs.brazil.handler.ConfigFileHandler
-
Extract the session state into the request object, optionally
modifying the properties.
- respond(Request) - Method in class sunlabs.brazil.handler.CookieSessionHandler
-
- respond(Request) - Method in class sunlabs.brazil.handler.DefaultFileHandler
-
If the url ends with a "/" look around in the corrosponding directory
to find a suitable default file, and then change the url.
- respond(Request) - Method in class sunlabs.brazil.handler.DeferredHandler
-
Dispatch to the handler, installing it if needed
- respond(Request) - Method in class sunlabs.brazil.handler.DialogHandler
-
Pop up a dialog box on the server machine.
- respond(Request) - Method in class sunlabs.brazil.handler.DigestAuthHandler
-
- respond(Request) - Method in class sunlabs.brazil.handler.DirectoryHandler
-
Display files in a directory, after being rejected by the
FileHandler.
- respond(Request) - Method in class sunlabs.brazil.handler.DynamicConfigHandler
-
Responds to an HTTP request by examining the "Host:" request header
and dispatching to the main handler of the server that handles
that virtual host.
- respond(Request) - Method in class sunlabs.brazil.handler.GenericProxyHandler
-
If this is one of "our" url's, fetch the document from
the destination server, and return it as if it was local.
- respond(Request) - Method in class sunlabs.brazil.handler.HomeDirHandler
-
If this is a ~user request, modify the root
and
url
properties of the request object.
- respond(Request) - Method in class sunlabs.brazil.handler.LogHandler
-
Dispatch the request to the handler.
- respond(Request) - Method in class sunlabs.brazil.handler.MultiHostHandler
-
Responds to an HTTP request by examining the "Host:" request header
and dispatching to the main handler of the server that handles
that virtual host.
- respond(Request) - Method in class sunlabs.brazil.handler.MultiProxyHandler
-
- respond(Request) - Method in class sunlabs.brazil.handler.NotFoundHandler
-
Look for and deliver the "not found" file
Look in the current directory first, then in the doc root.
- respond(Request) - Method in class sunlabs.brazil.handler.PollHandler
-
This might allow control over the polling via requests at a later date.
- respond(Request) - Method in class sunlabs.brazil.handler.PropertiesHandler
-
If this is one of our URL's, look through each
request property, and selct those that match the Select
property.
- respond(Request) - Method in class sunlabs.brazil.handler.ProxyPropertiesHandler
-
- respond(Request) - Method in class sunlabs.brazil.handler.PublishHandler
-
Make sure this is one of our "PUT" requests.
- respond(Request) - Method in class sunlabs.brazil.handler.PushHandler
-
Make sure this is one of our requests.
- respond(Request) - Method in class sunlabs.brazil.handler.ReflectHandler
-
Dispatch and handle the request.
- respond(Request) - Method in class sunlabs.brazil.handler.RePollHandler
-
Allow The url and post data (if any) to be changed.
- respond(Request) - Method in class sunlabs.brazil.handler.ResourceHandler
-
- respond(Request) - Method in class sunlabs.brazil.handler.ResourceLimitHandler
-
- respond(Request) - Method in class sunlabs.brazil.handler.RestrictClientHandler
-
- respond(Request) - Method in class sunlabs.brazil.handler.RolesHandler
-
Dispatch and handle the request.
- respond(Request) - Method in class sunlabs.brazil.handler.SimpleSessionHandler
-
- respond(Request) - Method in class sunlabs.brazil.handler.SMTPHandler
-
- respond(Request) - Method in class sunlabs.brazil.handler.SunNetAuthHandler
-
Act like a "gatekeeper".
- respond(Request) - Method in class sunlabs.brazil.handler.SupplyHandler
-
Dispatch and handle the request.
- respond(Request) - Method in class sunlabs.brazil.handler.UrlMapperHandler
-
If this request matches the expression, rewrite it.
- respond(Request) - Method in class sunlabs.brazil.handler.VirtualHostHandler
-
Either look for host header, tack on front of url,
or modify the "root" property
- respond(Request) - Method in class sunlabs.brazil.properties.ExprPropsHandler
-
Creates an instance of ExprProps
that uses
request.props
for the wrapped
Calculator
's symbol table.
- respond(Request) - Method in class sunlabs.brazil.properties.SubstPropsHandler
-
- respond(Request) - Method in class sunlabs.brazil.proxy.CookieFilter
-
- respond(Request) - Method in class sunlabs.brazil.proxy.HistoryFilter
-
If the admin
prefix is seen, store the history
information associated with the session in the request properties.
- respond(Request) - Method in class sunlabs.brazil.proxy.JunkBusterHandler
-
- respond(Request) - Method in class sunlabs.brazil.proxy.ProxyHandler
-
- respond(Request) - Method in class sunlabs.brazil.proxy.SunProxy
-
Handler http requests - doesn't do anything yet
- respond(Request) - Method in class sunlabs.brazil.server.ChainHandler
-
Calls each of the Handler
s in turn until one of them
returns true
.
- respond(Request) - Method in class sunlabs.brazil.server.FileHandler
-
Find, read, and deliver via http the requested file.
- respond(Request) - Method in interface sunlabs.brazil.server.Handler
-
Responds to an HTTP request.
- respond(Request) - Method in class sunlabs.brazil.session.CacheManager
-
Don't handle any URL requests (yet)
- respond(Request) - Method in class sunlabs.brazil.session.PropertiesCacheManager
-
- respond(Request) - Method in class sunlabs.brazil.sunlabs.DelayHandler
-
Delay before servicing this request.
- respond(Request) - Method in class sunlabs.brazil.sunlabs.PutHandler
-
- respond(Request) - Method in class sunlabs.brazil.sunlabs.RestartHandler
-
- respond(Request) - Method in class sunlabs.brazil.sunlabs.StunnelHandler
-
If we are coming from the machine which is designated as our ssl
gateway, then we need to change the protocol to "https" and
remap the default port.
- respond(Request) - Method in class sunlabs.brazil.template.DirectoryTemplate
-
Compute the directory info, and add it to the request properties.
- respond(Request) - Method in class sunlabs.brazil.template.SetTemplate
-
Chain a SessionManager entries onto the request properties,
and optionally allow setting of request props from query parameters.
- respond(Request) - Method in class sunlabs.brazil.template.TemplateHandler
-
Process an html template file, using the supplied template
processing classes.
- responseHeaders - Variable in class sunlabs.brazil.server.Request
-
The HTTP response headers.
- responseHeaders - Variable in class sunlabs.brazil.util.http.HttpRequest
-
The headers that were present in the HTTP response.
- responseOk(String, String, Properties) - Static method in class sunlabs.brazil.handler.DigestAuthHandler
-
Check the digest response string.
- responseTrailers - Variable in class sunlabs.brazil.util.http.HttpRequest
-
An artifact of HTTP/1.1 chunked encoding.
- rest() - Method in class sunlabs.brazil.util.LexML
-
Gets the rest of the string that has not yet been parsed.
- rest() - Method in class sunlabs.brazil.util.regexp.Regsub
-
Returns a substring consisting of all the characters that come
after the last match.
- restart(String) - Method in class sunlabs.brazil.server.Server
-
Restart the server with a new handler.
- RestartHandler - Class in sunlabs.brazil.sunlabs
-
Restart the server when a sigHUP is received.
- RestartHandler() - Constructor for class sunlabs.brazil.sunlabs.RestartHandler
-
- RestartingMultiHostHandler - Class in sunlabs.brazil.handler
-
Allow the configuration for one virtual host to be restarted.
- RestartingMultiHostHandler() - Constructor for class sunlabs.brazil.handler.RestartingMultiHostHandler
-
- restrict - Variable in class sunlabs.brazil.server.Server
-
If non-null, restrict connections to just the specified ip addresses.
- RestrictClientHandler - Class in sunlabs.brazil.handler
-
Simple access control hander based on source ip addresses.
- RestrictClientHandler() - Constructor for class sunlabs.brazil.handler.RestrictClientHandler
-
- result() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
-
- result() - Method in class sunlabs.brazil.server.TestRequest
-
- returnLogin(Request, String) - Method in class sunlabs.brazil.handler.SunNetAuthHandler
-
return the login page with the appropriate message substituted in
- RewriteContext - Class in sunlabs.brazil.template
-
A variant containing instance variables that may be referenced by
rewriting filters.
- RewriteContext(Server, String, Request, String, String, TemplateRunner, Vector) - Constructor for class sunlabs.brazil.template.RewriteContext
-
- rewriteHeaders(MimeHeaders) - Method in class sunlabs.brazil.proxy.ProxyHandler
-
Allow sub-classes to rewrite any or all of the target
headers, if needed.
- ROLE_KEY - Static variable in class sunlabs.brazil.handler.RolesHandler
-
Handler configuration property roleName.
- RolesHandler - Class in sunlabs.brazil.handler
-
Handler for associating roles with an id.
- RolesHandler() - Constructor for class sunlabs.brazil.handler.RolesHandler
-
- ROOT - Static variable in class sunlabs.brazil.server.FileHandler
-
- run() - Method in class sunlabs.brazil.asterisk.AsteriskAGIHandler
-
Either start a listening socket or handle an AGI request.
- run() - Method in class sunlabs.brazil.handler.PollHandler
-
Periodically poll the url, and copy the results into the server
properties.
- run() - Method in class sunlabs.brazil.server.Server
-
Loops, accepting socket connections and replying to HTTP requests.