A B C D E F G H I J K L M N O P Q R S T U V W X

A

ABORT - Static variable in class sunlabs.brazil.template.BSLTemplate
 
abort() - Method in class sunlabs.brazil.template.RewriteContext
Cause this RewriteContext to abort its processing.
accept() - Method in class sunlabs.brazil.servlet.BServletServerSocket
Dummy method, not implemented.
acceptCount - Variable in class sunlabs.brazil.server.Server
Count of accepted connections so far.
accumulate(boolean) - Method in class sunlabs.brazil.handler.HtmlRewriter
Turns on or off the automatic accumulation of each token.
AclSwitchHandler - class sunlabs.brazil.handler.AclSwitchHandler.
Simple access control hander based on url prefixes or regexps.
AclSwitchHandler() - Constructor for class sunlabs.brazil.handler.AclSwitchHandler
 
add(String, int) - Method in class sunlabs.brazil.util.http.MimeHeaders
Adds a mapping for the given case-insensitive key to the specified value in this MimeHeaders object.
add(String, String) - Method in class sunlabs.brazil.util.StringMap
Maps the given case-insensitive key to the specified value in this StringMap.
addAfter(PropertiesList) - Method in class sunlabs.brazil.properties.PropertiesList
Adds this PropertiesList object into a linked list following the object referenced by the cursor parameter.
addBefore(PropertiesList) - Method in class sunlabs.brazil.properties.PropertiesList
Adds this PropertiesList object into a linked list preceding the object referenced by the cursor parameter.
addChild(XmlTree.Node) - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
addClosingTag(String) - Method in class sunlabs.brazil.template.RewriteContext
Add a closing tag to the list of tags that mark un-interpreted text Deal with the tag prefix, if any
addError(int, String, int, String) - Method in class sunlabs.brazil.sunlabs.XmlTree.IllegalXmlException
 
addHeader(String) - Method in class sunlabs.brazil.server.Request
Adds a response header to the HTTP response.
addHeader(String, String) - Method in class sunlabs.brazil.server.Request
Adds a response header to the HTTP response.
addHeaders(String, Properties) - Method in class sunlabs.brazil.util.http.HttpRequest
Convenience method for adding request headers by looking them up in a properties object.
AddHeaderTemplate - class sunlabs.brazil.template.AddHeaderTemplate.
Template class for adding arbitrary mime headers to a reply.
AddHeaderTemplate() - Constructor for class sunlabs.brazil.template.AddHeaderTemplate
 
addMap(MapPage) - Method in class sunlabs.brazil.handler.MultiProxyHandler
this gets called by the parent class.
addMap(MapPage) - Method in class sunlabs.brazil.handler.GenericProxyHandler
for subclassing
addMapEntry(String, String) - Method in class sunlabs.brazil.handler.MapPage
Add or remove an item to the map table
addPatternEntry(String, String) - Method in class sunlabs.brazil.handler.MapPage
Add or remove an item to the pattern table
addSharedProps(Dictionary) - Method in class sunlabs.brazil.server.Request
Adds the given Dictionary to the set of properties that are searched by request.props.getProperty().
addTag(String, String) - Method in class sunlabs.brazil.handler.MapPage
add a tag/attribute pair to the rewrite list.
admin - Variable in class sunlabs.brazil.proxy.HistoryFilter
 
admin - Variable in class sunlabs.brazil.proxy.CookieFilter
 
AllowGtTemplate - class sunlabs.brazil.template.AllowGtTemplate.
Template that changes the behavior of the HTML/XML parser to allow unescaped >'s inside of entity attribute values.
AllowGtTemplate() - Constructor for class sunlabs.brazil.template.AllowGtTemplate
 
append(String) - Method in class sunlabs.brazil.handler.HtmlRewriter
Instead of modifying an existing token, this method allows the user to completely replace the current token with arbitrary new content.
append(String, String) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Append a list to the end of the named list
appendCdata(String) - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
appendToken() - Method in class sunlabs.brazil.handler.HtmlRewriter
Appends the current token to the resultant HTML document.
applySubspec(Regsub, String, StringBuffer) - Static method in class sunlabs.brazil.util.regexp.Regexp
Utility method to give access to the standard substitution algorithm used by sub and subAll.
AsteriskTemplate - class sunlabs.brazil.sunlabs.AsteriskTemplate.
Connect to Asterisk manager api.
AsteriskTemplate() - Constructor for class sunlabs.brazil.sunlabs.AsteriskTemplate
 
auth - Variable in class sunlabs.brazil.proxy.ProxyHandler
The string to send as the value for the "Proxy-Authorization" HTTP header (if needed).
AUTH - Static variable in class sunlabs.brazil.proxy.ProxyHandler
 
authenticate - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 
authorization - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 

B

Base64 - class sunlabs.brazil.util.Base64.
Utility to base64 encode and decode a string.
BasicAuthHandler - class sunlabs.brazil.handler.BasicAuthHandler.
The BasicAuthHandler obtains a Session ID by performing "basic" authentication, using either the "Authorization" or the "Proxy-Authorization" headers.
BasicAuthHandler() - Constructor for class sunlabs.brazil.handler.BasicAuthHandler
 
BeanShellHandler - class sunlabs.brazil.beanshell.BeanShellHandler.
The BeanShellHandler permits handlers to be written in "beanshell".
BeanShellHandler() - Constructor for class sunlabs.brazil.beanshell.BeanShellHandler
 
BeanShellServerTemplate - class sunlabs.brazil.beanshell.BeanShellServerTemplate.
The BeanShellServerTemplate looks for one of the starting tags <server language="beanshell">, <beanshell>, or <bsh> in an HTML page and treats the following data up to the corresponding ending tag ( </server>, </beanshell>, or </bsh>) as a BeanShell script to evaluate.
BeanShellServerTemplate() - Constructor for class sunlabs.brazil.beanshell.BeanShellServerTemplate
 
BeanShellTemplate - class sunlabs.brazil.beanshell.BeanShellTemplate.
Template to define new templates in beanshell, and use them later on in the current session (or page).
BeanShellTemplate() - Constructor for class sunlabs.brazil.beanshell.BeanShellTemplate
 
BrazilServlet - class sunlabs.brazil.servlet.BrazilServlet.
This is the Brazil Toolkit Servlet Adapter.
BrazilServlet() - Constructor for class sunlabs.brazil.servlet.BrazilServlet
 
BREAK - Static variable in class sunlabs.brazil.template.BSLTemplate
 
BServletRequest - class sunlabs.brazil.servlet.BServletRequest.
This is a subclass of Request that is used by BrazilServlet to map servlet style requests and responses to and from Brazil style requests.
BServletRequest.HttpOutputStream - class sunlabs.brazil.servlet.BServletRequest.HttpOutputStream.
An HttpOutputStream that is used by the Brazil Servlet adaptor to add the web application context path to the front of all response URI's so subsequent requests will be mapped to the BrazilServlet's context.
BServletRequest.HttpOutputStream(OutputStream) - Constructor for class sunlabs.brazil.servlet.BServletRequest.HttpOutputStream
 
BServletServerSocket - class sunlabs.brazil.servlet.BServletServerSocket.
This is a special ServerSocket intended for use by the Brazil Servlet Adapter.
BServletServerSocket() - Constructor for class sunlabs.brazil.servlet.BServletServerSocket
Creates a BServletServerSocket object using -1 as a port number.
BServletServerSocket(int) - Constructor for class sunlabs.brazil.servlet.BServletServerSocket
Creates a BServletServerSocket object.
BServletSocket - class sunlabs.brazil.servlet.BServletSocket.
This is a special Socket intended for use by the Brazil Servlet Adapter.
BServletSocket(HttpServletRequest, HttpServletResponse) - Constructor for class sunlabs.brazil.servlet.BServletSocket
Creates a BServletSocket object.
BSLTemplate - class sunlabs.brazil.template.BSLTemplate.
The BSLTemplate takes an HTML document with embedded "BSL" markup tags in it and evaluates those special tags to produce a standard HTML document.
BSLTemplate() - Constructor for class sunlabs.brazil.template.BSLTemplate
 
bufsize - Variable in class sunlabs.brazil.server.Server
Default buffer size for copies to and from client sockets.
BUFSIZE - Static variable in class sunlabs.brazil.handler.ChainSawHandler
 
bytesWritten - Variable in class sunlabs.brazil.server.Request.HttpOutputStream
Count the number of bytes that are written to this stream

C

CacheManager - class sunlabs.brazil.session.CacheManager.
This SessionManager associates an object with a Session ID to give Handlers the ability to maintain state that lasts for the duration of a session instead of just for the duration of a request.
CacheManager() - Constructor for class sunlabs.brazil.session.CacheManager
 
Calculator - class sunlabs.brazil.util.Calculator.
Calculator implements a simple arithmetic expression evaluator.
Calculator() - Constructor for class sunlabs.brazil.util.Calculator
The no argument constructor will create an internal Hashtable in which it looks up and stores values associated with variables.
Calculator(Dictionary) - Constructor for class sunlabs.brazil.util.Calculator
This constructor will use the Dictionary parameter to lookup and store values associated with variables.
cancel - Variable in class sunlabs.brazil.handler.DialogHandler
 
CertHandler - class sunlabs.brazil.ssl.CertHandler.
Handler for issuing A netscape certificate.
CertHandler() - Constructor for class sunlabs.brazil.ssl.CertHandler
 
CgiHandler - class sunlabs.brazil.handler.CgiHandler.
Handler for implementing cgi/1.1 interface.
CgiHandler() - Constructor for class sunlabs.brazil.handler.CgiHandler
 
ChainHandler - class sunlabs.brazil.server.ChainHandler.
Allows multiple handlers to be invoked sequentially for a single HTTP request.
ChainHandler() - Constructor for class sunlabs.brazil.server.ChainHandler
 
ChainSawHandler - class sunlabs.brazil.handler.ChainSawHandler.
Variant of the chain handler for doing standard logging.
ChainSawHandler() - Constructor for class sunlabs.brazil.handler.ChainSawHandler
 
ChangedTemplate - class sunlabs.brazil.template.ChangedTemplate.
This Template adds an icon to HREFs to indicate when the file being referred to is new, changed, or unchanged with respect to the user's session.
ChangedTemplate() - Constructor for class sunlabs.brazil.template.ChangedTemplate
 
checkRewriteState(int) - Method in class sunlabs.brazil.template.RewriteContext
Check whether this RewriteContext is in the specified state.
childCount() - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
ChownHandler - class sunlabs.brazil.handler.ChownHandler.
Handler for changing the group and owner of the server.
ChownHandler() - Constructor for class sunlabs.brazil.handler.ChownHandler
 
chunk - Variable in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
chunks() - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
chunksize - Variable in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
clamp(int, int, int) - Static method in class sunlabs.brazil.sunlabs.ListTemplate
Clamp an integer value.
cleanForSerialization(Object) - Static method in class sunlabs.brazil.session.SerialPersist
Recursively decend through an object "Cleaning" it for serialization.
clear() - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Hashtable object.
clear() - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Clear a list.
clear() - Method in class sunlabs.brazil.template.QueueTemplate.Queue
Clear the queue.
clear() - Method in class sunlabs.brazil.util.StringMap
Removes all the keys and values from this StringMap.
ClockFormat - class sunlabs.brazil.util.ClockFormat.
This class implements the "strftime" style clock format command.
ClockFormat() - Constructor for class sunlabs.brazil.util.ClockFormat
 
ClockScan - class sunlabs.brazil.util.ClockScan.
This class implements time and date scanning.
ClockScan() - Constructor for class sunlabs.brazil.util.ClockScan
 
clone() - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Hashtable object.
close() - Method in class sunlabs.brazil.server.Server
Stop the server, and kill all pending requests
close() - Method in class sunlabs.brazil.servlet.BServletServerSocket
Closes this socket.
close() - Method in class sunlabs.brazil.servlet.BServletSocket
Closes this socket.
close() - Method in class sunlabs.brazil.servlet.BServletRequest.HttpOutputStream
Remaps URI's in the buffered HTML content and the writes the result to the response stream.
close() - Method in class sunlabs.brazil.util.http.HttpRequest
Gracefully closes this HTTP request when user is done with it.
close(HttpSocket, boolean) - Method in interface sunlabs.brazil.util.http.HttpSocketPool
Releases an HttpSocket to this pool when it is not in use any more.
code - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 
COMMENT - Static variable in class sunlabs.brazil.util.LexML
The value returned by getType for comment tokens
comment(RewriteContext) - Method in class sunlabs.brazil.template.DeCommentTemplate
 
comment(RewriteContext) - Method in class sunlabs.brazil.template.IncludeTemplate
Treat comments of the form: <!#include ...> as if they were include tags.
compare(Object, int, int) - Method in interface sunlabs.brazil.util.Sort.Compare
Compare two elements in the given array.
complain(Request, String) - Method in class sunlabs.brazil.handler.BasicAuthHandler
Authentication failed.
computeA1(String, String, String) - Static method in class sunlabs.brazil.handler.DigestAuthHandler
Compute the A1 parameter as per the RFC.
ConfigFileHandler - class sunlabs.brazil.handler.ConfigFileHandler.
Handler for manipulating per-user session state that can be represented as ASCII name/value pairs.
ConfigFileHandler() - Constructor for class sunlabs.brazil.handler.ConfigFileHandler
 
connect() - Method in class sunlabs.brazil.util.http.HttpRequest
Connect to the target host (or proxy), send the request, and read the response headers.
connectionHeader - Variable in class sunlabs.brazil.server.Request
The header "Connection" usually controls whether the client connection will be of type "Keep-Alive" or "close".
contains(Object) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Hashtable object.
containsKey(Object) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Hashtable object.
content() - Method in class sunlabs.brazil.handler.PushHandler.Split
Get the content as a string
ContentTemplate - class sunlabs.brazil.template.ContentTemplate.
Template class for extracting content out of remote html pages.
ContentTemplate() - Constructor for class sunlabs.brazil.template.ContentTemplate
 
CONTINUE - Static variable in class sunlabs.brazil.template.BSLTemplate
 
convertHtml(String) - Method in class sunlabs.brazil.handler.MapPage
Rewrite all the url's in this document.
convertString(String) - Method in class sunlabs.brazil.handler.MapPage
Rewrite a url inside a tag parameter.
CookieFilter - class sunlabs.brazil.proxy.CookieFilter.
The CookieFilter keeps a record of all the browser cookies associated with a given session.
CookieFilter() - Constructor for class sunlabs.brazil.proxy.CookieFilter
 
cookieName - Variable in class sunlabs.brazil.filter.SessionFilter
 
cookieName - Variable in class sunlabs.brazil.handler.CookieSessionHandler
 
CookieSessionHandler - class sunlabs.brazil.handler.CookieSessionHandler.
Handler for creating browser sessions using cookies.
CookieSessionHandler() - Constructor for class sunlabs.brazil.handler.CookieSessionHandler
 
CopyContentFilter - class sunlabs.brazil.filter.CopyContentFilter.
Filter to save content (of an entire site) to a disk file.
CopyContentFilter() - Constructor for class sunlabs.brazil.filter.CopyContentFilter
 
copyTo(MimeHeaders) - Method in class sunlabs.brazil.util.http.MimeHeaders
Copies the contents of this MimeHeaders object, adding all the other's keys and values to the other.
copyTo(OutputStream) - Method in class sunlabs.brazil.util.http.HttpInputStream
Copies bytes from this input stream to the specified output stream until end of the input stream is reached.
copyTo(OutputStream, int) - Method in class sunlabs.brazil.util.http.HttpInputStream
Copies bytes from this input stream to the specified output stream until the specified number of bytes are copied or the end of the input stream is reached.
copyTo(OutputStream, int, byte[]) - Method in class sunlabs.brazil.util.http.HttpInputStream
Copies bytes from this input stream to the specified output stream until the specified number of bytes are copied or the end of the input stream is reached.
count - Variable in class sunlabs.brazil.handler.MapPage
 
count() - Method in class sunlabs.brazil.template.QueueTemplate.Queue
Return the total number of items Q'd.
currentLine - Variable in class sunlabs.brazil.sunlabs.XmlTree.XmlErrorInfo
 
currentTag - Variable in class sunlabs.brazil.sunlabs.XmlTree.XmlErrorInfo
 

D

DateTemplate - class sunlabs.brazil.sunlabs.DateTemplate.
Template for doing date and time calculations and formatting.
DateTemplate() - Constructor for class sunlabs.brazil.sunlabs.DateTemplate
 
debug - Static variable in class sunlabs.brazil.properties.PropertiesList
Set true to turn on debug output.
debug - Variable in class sunlabs.brazil.template.Template
 
debug - Static variable in class sunlabs.brazil.util.ClockScan
 
debugging - Variable in class sunlabs.brazil.util.Calculator
Set true for debug output.
DebugTemplate - class sunlabs.brazil.template.DebugTemplate.
Template class for printing stuff to stderr (for template debugging).
DebugTemplate() - Constructor for class sunlabs.brazil.template.DebugTemplate
 
decode(String) - Static method in class sunlabs.brazil.util.Base64
A Base64 decoder.
DeCommentTemplate - class sunlabs.brazil.template.DeCommentTemplate.
Template class for removing comments from html pages.
DeCommentTemplate() - Constructor for class sunlabs.brazil.template.DeCommentTemplate
 
decrNestingLevel() - Method in class sunlabs.brazil.template.RewriteContext
Decrement the nesting level counter.
defaultBufsize - Static variable in class sunlabs.brazil.util.http.HttpInputStream
The default size of the temporary buffer used when copying from an input stream to an output stream.
defaultFactory - Static variable in interface sunlabs.brazil.util.SocketFactory
The default socket factory.
DefaultFileHandler - class sunlabs.brazil.handler.DefaultFileHandler.
Handler for appending a url ending with '/' into the appropriate url based on a default file in the file system.
DefaultFileHandler() - Constructor for class sunlabs.brazil.handler.DefaultFileHandler
 
defaultHTTPVersion - Static variable in class sunlabs.brazil.util.http.HttpRequest
The default HTTP version string to send to the remote host when issuing requests.
defaultProxyHost - Static variable in class sunlabs.brazil.util.http.HttpRequest
The default proxy host for HTTP requests.
defaultProxyPort - Static variable in class sunlabs.brazil.util.http.HttpRequest
The default proxy port for HTTP requests.
defaultTag(RewriteContext) - Method in class sunlabs.brazil.beanshell.BeanShellTemplate
if a mapping exists for this tag, run the code
defaultTag(RewriteContext) - Method in class sunlabs.brazil.sunlabs.SubstAllTemplate
 
defaultTag(RewriteContext) - Method in class sunlabs.brazil.template.MacroTemplate
Run the macro, push formal parameters on the stack first.
DeferredHandler - class sunlabs.brazil.handler.DeferredHandler.
Wrap another handler, deferring its initialization until request time.
DeferredHandler() - Constructor for class sunlabs.brazil.handler.DeferredHandler
 
DelayHandler - class sunlabs.brazil.sunlabs.DelayHandler.
Handler or template for adding a delay into a response.
DelayHandler() - Constructor for class sunlabs.brazil.sunlabs.DelayHandler
 
delete(int) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Remove an element by index.
dequeue(String, int) - Static method in class sunlabs.brazil.template.QueueTemplate
Program access to the Q.
destroy() - Method in class sunlabs.brazil.servlet.BrazilServlet
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.
DialogHandler - class sunlabs.brazil.handler.DialogHandler.
Sample handler for popping up a dialog box on the server.
DialogHandler() - Constructor for class sunlabs.brazil.handler.DialogHandler
 
DigestAuthHandler - class sunlabs.brazil.handler.DigestAuthHandler.
Perform digest authentication.
DigestAuthHandler() - Constructor for class sunlabs.brazil.handler.DigestAuthHandler
 
DigestTemplate - class sunlabs.brazil.sunlabs.DigestTemplate.
Compute the Base64 encoded SHA1 digest of a value (so I don't have to store plain text passwords).
DigestTemplate() - Constructor for class sunlabs.brazil.sunlabs.DigestTemplate
 
DirectoryHandler - class sunlabs.brazil.handler.DirectoryHandler.
This is a bare-bones handler for providing directory listings for web servers.
DirectoryHandler() - Constructor for class sunlabs.brazil.handler.DirectoryHandler
 
DirectoryTemplate - class sunlabs.brazil.template.DirectoryTemplate.
Put current directory information (based on the URL) into the request properties.
DirectoryTemplate() - Constructor for class sunlabs.brazil.template.DirectoryTemplate
 
disconnect() - Method in class sunlabs.brazil.util.http.HttpRequest
Interrupts this HTTP request.
dismiss(boolean) - Method in class sunlabs.brazil.handler.DialogHandler
 
displayAllHeaders - Static variable in class sunlabs.brazil.util.http.HttpRequest
setting this to "true" causing all http headers to be printed on the standard error stream; useful for debugging client/server interactions.
done(RewriteContext) - Method in class sunlabs.brazil.email.EmailTemplate
If we run off the end of the page, but there is email pending to be sent, send it anyway.
done(RewriteContext) - Method in class sunlabs.brazil.handler.SMTPHandler
If we run off the end of the page, but there is email pending to be sent, send it anyway.
done(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ExpContentTemplate
Run the content through a regexp to do further extraction.
done(RewriteContext) - Method in class sunlabs.brazil.tcl.TclServerTemplate
Called after the HTML document has been processed.
done(RewriteContext) - Method in class sunlabs.brazil.template.ModifiedTemplate
Compute the http last modified value by comparing the origin last-modified value (if any) with the transform value
done(RewriteContext) - Method in class sunlabs.brazil.template.ChangedTemplate
 
done(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Extract useful properties out of the http mime headers.
done(RewriteContext) - Method in class sunlabs.brazil.template.RedirectTemplate
adjust the response headers to reflect redirection, if supplied.
done(RewriteContext) - Method in class sunlabs.brazil.template.FormTemplate
This is for debugging only !!
done(RewriteContext) - Method in interface sunlabs.brazil.template.TemplateInterface
Called after all tags have been processed, one final chance.
done(RewriteContext) - Method in class sunlabs.brazil.template.Template
Called after all tags have been processed, one final chance.
DRAIN_TIMEOUT - Static variable in class sunlabs.brazil.util.http.HttpRequest
Timeout (in msec) to drain an input stream that has been closed before the entire HTTP response has been read.
dump(boolean, String) - Method in class sunlabs.brazil.properties.PropertiesList
Starting with this object, print the contents of this and succeeding objects that are on the same list as this object is.
DynamicConfigHandler - class sunlabs.brazil.handler.DynamicConfigHandler.
The DynamicConfigHandler allows the user to change the configuration of the server and its handlers on the fly.
DynamicConfigHandler() - Constructor for class sunlabs.brazil.handler.DynamicConfigHandler
 

E

elements() - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Dictionary object.
elements() - Method in class sunlabs.brazil.sunlabs.XmlTree
 
elements() - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Return the actual list items.
elements() - Method in class sunlabs.brazil.util.StringMap
Returns an enumeration of the values in this StringMap.
elements(XmlTree.Node, Vector) - Static method in class sunlabs.brazil.sunlabs.XmlTree
 
EmailTemplate - class sunlabs.brazil.email.EmailTemplate.
The EmailTemplate takes an HTML document with embedded "Email" markup tags in it and evaluates those special tags to produce resulting properties that allow email reading/composing functionality to be embedded within the document.
EmailTemplate() - Constructor for class sunlabs.brazil.email.EmailTemplate
 
encode(byte[]) - Static method in class sunlabs.brazil.util.Base64
base-64 encode a byte array
encode(byte[], int, int) - Static method in class sunlabs.brazil.util.Base64
base-64 encode a byte array
encode(String) - Static method in class sunlabs.brazil.util.Base64
base-64 encode a string
encoding - Variable in class sunlabs.brazil.filter.SessionFilter
 
enqueue(String, String, String, String, boolean, boolean) - Static method in class sunlabs.brazil.template.QueueTemplate
Allow another data to be enqueued from java code.
entrySet() - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Hashtable object.
equals(Object) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Hashtable object.
errorCount - Variable in class sunlabs.brazil.server.Server
Count of errors that occurred so far.
errors - Variable in class sunlabs.brazil.sunlabs.XmlTree.IllegalXmlException
 
ExecFilter - class sunlabs.brazil.filter.ExecFilter.
Filter to Run all content through an external process filter.
ExecFilter() - Constructor for class sunlabs.brazil.filter.ExecFilter
 
ExecTemplate - class sunlabs.brazil.sunlabs.ExecTemplate.
template to exec a program, and return its arguments into request properties .
ExecTemplate() - Constructor for class sunlabs.brazil.sunlabs.ExecTemplate
 
exitOnError - Variable in class sunlabs.brazil.server.ChainHandler
A flag to require the successfull initialization of all handlers.
ExpContentTemplate - class sunlabs.brazil.sunlabs.ExpContentTemplate.
Allow extracted content to be filtered through regular expressions.
ExpContentTemplate() - Constructor for class sunlabs.brazil.sunlabs.ExpContentTemplate
 
ExprProps - class sunlabs.brazil.properties.ExprProps.
ExprProps is a subclass of Properties that is "smart" in the sense that it wraps a Calculator object, passing get and getProperty keys to the Calculator for processing.
ExprProps() - Constructor for class sunlabs.brazil.properties.ExprProps
This constructor creates a Calculator instance with this instance of ExprProps as it's symbol table.
ExprProps(Properties) - Constructor for class sunlabs.brazil.properties.ExprProps
This constructor creates a Calculator instance with this instance of ExprProps as it's symbol table and with the Properties instance referenced by the parameter defaults as it's set of default values.
ExprProps(Request) - Constructor for class sunlabs.brazil.properties.ExprProps
This constructor creates a Calculator instance with request.props as it's symbol table.
ExprProps(Request, Properties) - Constructor for class sunlabs.brazil.properties.ExprProps
This constructor creates a Calculator instance with request.props as it's symbol table and with the Properties instance referenced by the parameter defaults as it's set of default values.
ExprPropsHandler - class sunlabs.brazil.properties.ExprPropsHandler.
The ExprPropsHandler installs an expression evaluator as a "smart properties" into the current request object, enabling arithmetic and logical expression evaluation in property name lookups.
ExprPropsHandler() - Constructor for class sunlabs.brazil.properties.ExprPropsHandler
 
extract() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
 
extract(Properties, String) - Method in class sunlabs.brazil.handler.RePollHandler.Extract
Do the extraction
extractAuth(String) - Static method in class sunlabs.brazil.handler.DigestAuthHandler
Parse an auth header, placing the results into a Properties object.
extractQuery(String, Dictionary) - Static method in class sunlabs.brazil.util.http.HttpUtil
Turns x-www-form-urlencoded form data into a dictionary.
extractUrlHost(String) - Static method in class sunlabs.brazil.util.http.HttpUtil
Get the host portion of a Url String.
extractUrlPath(String) - Static method in class sunlabs.brazil.util.http.HttpUtil
Get the path portion of a Url String.
extractUrlPort(String) - Static method in class sunlabs.brazil.util.http.HttpUtil
Get the port portion of a Url String as a string.
extractUrlProtocol(String) - Static method in class sunlabs.brazil.util.http.HttpUtil
Get the protocol portion of a Url String.

F

fail() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
 
file - Variable in class sunlabs.brazil.handler.LogHandler
 
file2path(Properties, String, String) - Method in class sunlabs.brazil.template.SetTemplate
Convert a file name into a file object.
FileHandler - class sunlabs.brazil.server.FileHandler.
Standard handler for fetching static files.
FileHandler() - Constructor for class sunlabs.brazil.server.FileHandler
 
fillProps(Properties, HttpRequest) - Method in class sunlabs.brazil.handler.RePollHandler
Fill the properties by extracting fields from the response.
fillProps(Properties, HttpRequest) - Method in class sunlabs.brazil.handler.PollHandler
Fill the properties from the input stream
fillProps(Properties, HttpRequest) - Method in class sunlabs.brazil.tcl.TclRePollHandler
Fill the properties from the input stream
filter - Variable in class sunlabs.brazil.proxy.HistoryFilter
 
Filter - interface sunlabs.brazil.filter.Filter.
The Filter interface is used by the FilterHandler to examine and dynamically rewrite the contents of web pages obtained from some source before returning that page to the client.
filter(Regsub, StringBuffer) - Method in interface sunlabs.brazil.util.regexp.Regexp.Filter
Given the current state of the match, generate the replacement string.
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.email.EmailTemplate
 
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.filter.UrlMapFilter
Rewrite all absolute links, if there are any left
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.filter.MD5Filter
Compute digest, add to header.
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.filter.ExecFilter
Run content through filter.
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.filter.CopyContentFilter
Grab the contents, and save as a file (if file doesn't already exist).
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.filter.ReplaceFilter
Grab the template file name, Read in the file, and deliver it as content.
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.filter.SessionFilter
Rewrite all the url's, adding the session id to the end
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.filter.UrlSessionFilter
Rewrite all the url's, adding the session id to the end
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.filter.TemplateFilter
Evaluates the content as html/XML tags, if the file is (or has now been converted to) "text/html".
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.filter.ReFilter
If the content matches the regular expression, do the substitution.
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.filter.PlainFilter
Wrap html around text/plain, converting it to html.
filter(Request, MimeHeaders, byte[]) - Method in interface sunlabs.brazil.filter.Filter
Filters the content generated by the wrapped Handler.
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.proxy.HistoryFilter
Returns the original content, since this filter does not change content.
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.proxy.CookieFilter
Returns the original content, since this filter does not change content; it changes the headers.
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.tcl.TclFilter
 
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.velocity.VelocityFilter
Execute the BeanShell script if it exists and then process the content as a Velocity template.
FilterHandler - class sunlabs.brazil.filter.FilterHandler.
The FilterHandler captures the output of another Handler and allows the ouput to be modified.
FilterHandler() - Constructor for class sunlabs.brazil.filter.FilterHandler
 
filters - Variable in class sunlabs.brazil.filter.FilterHandler
 
firstTime - Variable in class sunlabs.brazil.util.http.HttpSocket
 
flush - Variable in class sunlabs.brazil.handler.LogHandler
 
FLUSH - Static variable in class sunlabs.brazil.handler.ChainSawHandler
 
format - Variable in class sunlabs.brazil.handler.LogHandler
 
Format - class sunlabs.brazil.util.Format.
Format a string by substituting values into it from a properties object.
Format() - Constructor for class sunlabs.brazil.util.Format
 
format(int, String, String) - Static method in class sunlabs.brazil.util.ClockFormat
Formats a time value based on seconds into a human readable string.
formatTable(Dictionary, String) - Static method in class sunlabs.brazil.handler.ReflectHandler
Turn a hash table into html format.
formatTime() - Static method in class sunlabs.brazil.util.http.HttpUtil
Returns a string containing the current time as an HTTP-formatted date.
formatTime(long) - Static method in class sunlabs.brazil.util.http.HttpUtil
Returns a string containing an HTTP-formatted date.
FormClientTemplate - class sunlabs.brazil.template.FormClientTemplate.
[Deprecated, use the FormTemplate and SetTemplate instead]
SAMPLE Template class for substituting Default values into html forms The data is retrieved from the client, and sent back to the client later on.
FormClientTemplate() - Constructor for class sunlabs.brazil.template.FormClientTemplate
 
FormTemplate - class sunlabs.brazil.template.FormTemplate.
Template class for substituting default values into html forms.
FormTemplate() - Constructor for class sunlabs.brazil.template.FormTemplate
 
frame_1 - Variable in class sunlabs.brazil.handler.DialogHandler
 
from - Variable in class sunlabs.brazil.template.QueueTemplate.QueueItem
 

G

GenericProxyHandler - class sunlabs.brazil.handler.GenericProxyHandler.
Handler for implementing a virtual web site.
GenericProxyHandler() - Constructor for class sunlabs.brazil.handler.GenericProxyHandler
 
get(int) - Method in class sunlabs.brazil.template.QueueTemplate.Queue
Return the next item on the queue, waiting for up to "timeout" seconds or for an interrupt.
get(int) - Method in class sunlabs.brazil.util.StringMap
Returns the value at the specified index.
get(Object) - Method in class sunlabs.brazil.properties.SubstPropsHandler.SubstProps
If the key doesn't exist, but the "derived" key and value do exist, then return the substituted value
get(Object) - Method in class sunlabs.brazil.properties.ExprProps
Returns the value to which the specified key is mapped in this Hashtable.
get(Object) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Dictionary object.
get(Object) - Method in class sunlabs.brazil.sunlabs.XmlTree
Given a node description, return the value, if any.
get(Object) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
get(Object) - Method in class sunlabs.brazil.util.StringMap
Performs the same job as get(String).
get(Object, Object) - Static method in class sunlabs.brazil.session.SessionManager
get an object from the session manager.
get(String) - Method in class sunlabs.brazil.handler.HtmlRewriter
Returns the value that the specified case-insensitive key maps to in the attributes for the current tag.
get(String) - Method in class sunlabs.brazil.template.RewriteContext
overwrite "get" to automatically do ${...} substitutions The default is "true".
get(String) - Method in class sunlabs.brazil.util.StringMap
Returns the value that the specified case-insensitive key maps to in this StringMap.
get(String) - Method in class sunlabs.brazil.velocity.VelocityFilter.Vserver
 
get(String) - Method in class sunlabs.brazil.velocity.VelocityFilter.Vrequest
 
get(String, boolean) - Method in class sunlabs.brazil.template.RewriteContext
Get an attribute value, and optionally perform ${...} substitutions.
get(String, int, boolean) - Method in interface sunlabs.brazil.util.http.HttpSocketPool
Returns an HttpSocket that can be used to communicate with the specified port on the named host.
get(String, String) - Method in class sunlabs.brazil.template.RewriteContext
Get a tag attribute, with a default value.
getArgs() - Method in class sunlabs.brazil.handler.HtmlRewriter
Gets the arguments of the current token as a string.
getArgs() - Method in class sunlabs.brazil.util.LexML
Gets the name/value pairs in the body of the current tag as a string.
getAttribute(String) - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
getAttributes() - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
getAttributes() - Method in class sunlabs.brazil.util.LexML
Gets the name/value pairs in the body of the current tag as a table.
getBody() - Method in class sunlabs.brazil.handler.HtmlRewriter
Gets the body of the current token as a string.
getBody() - Method in class sunlabs.brazil.util.LexML
Gets the string making up the current token, not including the angle brackets or comment delimiters, if appropriate.
getCdata() - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
getChild(int) - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
getClosingTags() - Method in class sunlabs.brazil.util.LexHTML
Get the set of HTML tags that have the special body-processing behavior mentioned above.
getContent() - Method in class sunlabs.brazil.util.http.HttpRequest
Return the content as a string.
getContent(Request, File, String) - Method in class sunlabs.brazil.template.TemplateHandler
get the content associated with this template.
getContent(String) - Method in class sunlabs.brazil.util.http.HttpRequest
Get the content as a string.
getContentLength() - Method in class sunlabs.brazil.util.http.HttpRequest
Convenience method to get the "Content-Length" header from the HTTP response.
GetDate(String, Date, String) - Static method in class sunlabs.brazil.util.ClockScan
Scan a human readable date string and construct a Date.
getEncoding() - Method in class sunlabs.brazil.util.http.HttpRequest
 
getError() - Method in class sunlabs.brazil.template.TemplateRunner
Return the last error message generated, or null of no errors have occurred since the last call to "process".
getEx(XmlTree.IllegalXmlException, String, int, String, int, String) - Static method in class sunlabs.brazil.sunlabs.XmlTree.IllegalXmlException
 
getFile(InputStream) - Static method in class sunlabs.brazil.sunlabs.XmlTree
 
getFile(String) - Static method in class sunlabs.brazil.sunlabs.XmlTree
 
getFiles(String, String, Request, String) - Static method in class sunlabs.brazil.template.DirectoryTemplate
Generate properties containing the files and directories in the "current" directory.
getHead() - Method in class sunlabs.brazil.properties.PropertiesList
Returns the PropertiesList object that is the first object on the list of which this object is a member.
getIndex() - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
getInetAddress() - Method in class sunlabs.brazil.servlet.BServletServerSocket
Returns the local address to which this socket is bound.
getInetAddress() - Method in class sunlabs.brazil.servlet.BServletSocket
Returns the address to which the socket is connected.
getInputStream() - Method in class sunlabs.brazil.servlet.BServletSocket
Returns an input stream for this socket.
getInputStream() - Method in class sunlabs.brazil.util.http.HttpRequest
Gets an input stream that can be used to read the body of the HTTP response.
getKeepAlive() - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
getKey(int) - Method in class sunlabs.brazil.util.StringMap
Returns the key at the specified index.
getLocalAddress() - Method in class sunlabs.brazil.servlet.BServletSocket
Returns the local address to which the socket is bound.
getLocalPort() - Method in class sunlabs.brazil.servlet.BServletServerSocket
Returns the local port to which this socket is bound.
getLocalPort() - Method in class sunlabs.brazil.servlet.BServletSocket
Returns the local port to which this socket is bound.
getLocation() - Method in class sunlabs.brazil.util.LexML
Return the current processing location.
getName(XmlTree.Node) - Method in interface sunlabs.brazil.sunlabs.XmlTree.NodeName
 
getName(XmlTree.Node) - Method in class sunlabs.brazil.sunlabs.XmlTree.DefaultNodeName
 
getNestingLevel() - Method in class sunlabs.brazil.template.RewriteContext
Return the current nesting level counter.
getNext() - Method in class sunlabs.brazil.properties.PropertiesList
Returns the PropertiesList object that succedes this object on the list of which this object is a member.
getOutputStream() - Method in class sunlabs.brazil.servlet.BServletSocket
Returns an output stream for this socket.
getOutputStream() - Method in class sunlabs.brazil.util.http.HttpRequest
Gets an output stream that can be used for uploading data to the host.
getParent() - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
getPart(String) - Method in class sunlabs.brazil.sunlabs.XmlTree
Given a node descriptor, return the result.
getPort() - Method in class sunlabs.brazil.servlet.BServletSocket
Returns the remote port to which this socket is connected.
getPrior() - Method in class sunlabs.brazil.properties.PropertiesList
Returns the PropertiesList object that precedes this object on the list of which this object is a member.
getProperty(Properties, String, String) - Static method in class sunlabs.brazil.util.Format
Allow a property name to contain the value of another property, permitting nested variable substitution in attribute values.
getProperty(String) - Method in class sunlabs.brazil.properties.SubstPropsHandler.SubstProps
 
getProperty(String) - Method in class sunlabs.brazil.properties.ExprProps
Searches for the property with the specified key in this property list.
getProperty(String) - Method in class sunlabs.brazil.properties.PropertiesList
Looks up key in the wrapped object.
getProperty(String, String) - Method in class sunlabs.brazil.properties.PropertiesList
Uses getProperty(String) to look up the value associated with the key.
getQ(String) - Static method in class sunlabs.brazil.template.QueueTemplate
Return a Q
getQueryData() - Method in class sunlabs.brazil.server.Request
Retrieves the query data as a hashtable.
getQueryData(Hashtable) - Method in class sunlabs.brazil.server.Request
Retrieves the query data as a hashtable.
getReceiveBufferSize() - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
getRegexp() - Method in class sunlabs.brazil.util.regexp.Regsub
Return the regexp used by this regsub.
getRequest() - Method in class sunlabs.brazil.server.Request
Reads an HTTP request from the socket.
getRequest() - Method in class sunlabs.brazil.servlet.BServletRequest
Converts an HTTP request from the form encapsulated in a servlet request object to the form expected by Brazil handlers.
getRequestHeader(String) - Method in class sunlabs.brazil.server.Request
Returns the value that the given case-insensitive key maps to in the HTTP request headers.
getResourceBytes(Properties, String, String) - Static method in class sunlabs.brazil.handler.ResourceHandler
Find a file blob as a resource in our jar file (experimental).
getResourceStream(Properties, String, String) - Static method in class sunlabs.brazil.handler.ResourceHandler
Look for a file in the filesystem.
getResourceString(Properties, String, String) - Static method in class sunlabs.brazil.handler.ResourceHandler
 
getResponseCode() - Method in class sunlabs.brazil.util.http.HttpRequest
Gets the HTTP response status code.
getResponseHeader(String) - Method in class sunlabs.brazil.util.http.HttpRequest
Gets the value associated with the given case-insensitive header name from the HTTP response.
getReuseCount() - Method in class sunlabs.brazil.server.Request
Return uses of this socket
getSendBufferSize() - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
getSession(Object, Object, Class) - Static method in class sunlabs.brazil.session.SessionManager
Returns the object associated with the given Session ID.
getSocket() - Method in class sunlabs.brazil.server.Request
The socket from which the HTTP request was received, and to where the HTTP response will be written.
getSoLinger() - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
getSoTimeout() - Method in class sunlabs.brazil.servlet.BServletServerSocket
Dummy method, not implemented.
getSoTimeout() - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
getStatus() - Method in class sunlabs.brazil.server.Request
Return the status code.
getStatusPhrase(int) - Static method in class sunlabs.brazil.util.http.HttpUtil
Returns the HTTP error string associated with the integer error code.
getString() - Static method in class sunlabs.brazil.util.Guid
Return a GUID as a string.
getString() - Method in class sunlabs.brazil.util.LexML
Return the string we are currently processing
getTag() - Method in class sunlabs.brazil.handler.HtmlRewriter
Gets the current tag's name.
getTag() - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
getTag() - Method in class sunlabs.brazil.util.LexHTML
Gets the tag name at the begining of the current tag.
getTag() - Method in class sunlabs.brazil.util.LexML
Gets the tag name at the beginning of the current tag.
getTags() - Method in class sunlabs.brazil.sunlabs.XmlTree
 
getTcpNoDelay() - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
getToken() - Method in class sunlabs.brazil.handler.HtmlRewriter
Gets the raw string making up the entire current token, including the angle brackets or comment delimiters, if applicable.
getToken() - Method in class sunlabs.brazil.util.LexML
Gets the string making up the whole current token, including the brackets or comment delimiters, if appropriate.
getType() - Method in class sunlabs.brazil.handler.HtmlRewriter
Gets the type of the current token.
getType() - Method in class sunlabs.brazil.util.LexML
Gets the type of the current token.
getValue(String) - Method in class sunlabs.brazil.util.Calculator
Computes the value of the statement passed in the parameter string and returns a string representation of the result.
getValue(String, Dictionary) - Method in class sunlabs.brazil.util.Calculator
Computes the value of the statement passed in the parameter string and returns a string representation of the result.
getWrapped() - Method in class sunlabs.brazil.properties.PropertiesList
Returns the Dictionary object wrapped by this PropertiesList.
Glob - class sunlabs.brazil.util.Glob.
Glob-style string matching and substring extraction.
GroovyServerTemplate - class sunlabs.brazil.groovy.GroovyServerTemplate.
The GroovyServerTemplate looks for each <groovy> tag in an HTML page and treats the following data up to the next </groovy>) tag as a groovy script to evaluate.
GroovyServerTemplate() - Constructor for class sunlabs.brazil.groovy.GroovyServerTemplate
 
Guid - class sunlabs.brazil.util.Guid.
Utility to generate GUID's (Globally Unique Identifiers).
Guid() - Constructor for class sunlabs.brazil.util.Guid
 

H

handle(Signal) - Method in class sunlabs.brazil.session.SerializableCacheManager
 
handle(Signal) - Method in class sunlabs.brazil.session.SerialPersist
 
handle(Signal) - Method in class sunlabs.brazil.sunlabs.RestartHandler
Restart the server after re-reading the config file
handleEvent(Event) - Method in class sunlabs.brazil.handler.DialogHandler
 
handler - Variable in class sunlabs.brazil.filter.FilterHandler
 
handler - Variable in class sunlabs.brazil.handler.LogHandler
 
handler - Variable in class sunlabs.brazil.server.Server
 
Handler - interface sunlabs.brazil.server.Handler.
The interface for writing HTTP handlers.
handlers - Variable in class sunlabs.brazil.server.ChainHandler
The array of handlers that will be invoked to handle the request.
hashCode() - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Hashtable object.
haveZone(String) - Static method in class sunlabs.brazil.util.ClockFormat
See if a particular timezone is valid
header() - Method in class sunlabs.brazil.handler.PushHandler.Split
Return the header as a string
headers - Variable in class sunlabs.brazil.handler.LogHandler
 
headers - Variable in class sunlabs.brazil.server.Request
The HTTP request headers.
HighlightTemplate - class sunlabs.brazil.template.HighlightTemplate.
Template class for highlighting text that matches a regular expression.
HighlightTemplate() - Constructor for class sunlabs.brazil.template.HighlightTemplate
 
HistoryFilter - class sunlabs.brazil.proxy.HistoryFilter.
The HistoryFilter is both a Handler and a Filter that keeps a record of all pages visited by a given session.
HistoryFilter() - Constructor for class sunlabs.brazil.proxy.HistoryFilter
 
HomeDirHandler - class sunlabs.brazil.handler.HomeDirHandler.
Handler for converting ~username queries.
HomeDirHandler() - Constructor for class sunlabs.brazil.handler.HomeDirHandler
 
host - Variable in class sunlabs.brazil.util.http.HttpSocket
 
host - Variable in class sunlabs.brazil.util.http.HttpRequest
The host extracted from the URL used to construct this HttpRequest.
HOST - Static variable in class sunlabs.brazil.handler.GenericProxyHandler
Handler configuration property host.
hostName - Variable in class sunlabs.brazil.server.Server
The hostname that this Server should use to identify itself in an HTTP Redirect.
htmlEncode(String) - Static method in class sunlabs.brazil.util.http.HttpUtil
Converts a string into a valid HTML fragment.
HtmlRewriter - class sunlabs.brazil.handler.HtmlRewriter.
This class helps with parsing and rewriting an HTML document.
HtmlRewriter(LexHTML) - Constructor for class sunlabs.brazil.handler.HtmlRewriter
Creates a new HtmlRewriter from the given HTML parser.
HtmlRewriter(String) - Constructor for class sunlabs.brazil.handler.HtmlRewriter
Creates a new HtmlRewriter that will operate on the given string.
HttpInputStream - class sunlabs.brazil.util.http.HttpInputStream.
This class is an input stream that provides added methods that are of help when reading the result of an HTTP request.
HttpInputStream(InputStream) - Constructor for class sunlabs.brazil.util.http.HttpInputStream
Creates a new HttpInputStream that reads its input from the specified input stream.
HttpRequest - class sunlabs.brazil.util.http.HttpRequest.
Sends an HTTP request to some target host and gets the answer back.
HttpRequest(String) - Constructor for class sunlabs.brazil.util.http.HttpRequest
Creates a new HttpRequest object that will send an HTTP request to fetch the resource represented by the URL.
HttpRequest(URL) - Constructor for class sunlabs.brazil.util.http.HttpRequest
Creates a new HttpRequest object that will send an HTTP request to fetch the resource represented by the URL.
HttpSocket - class sunlabs.brazil.util.http.HttpSocket.
This class is used as the bag of information kept about a open, idle socket.
HttpSocket(String, int) - Constructor for class sunlabs.brazil.util.http.HttpSocket
 
HttpSocketPool - interface sunlabs.brazil.util.http.HttpSocketPool.
This interface represents a cache of idle sockets.
HttpUtil - class sunlabs.brazil.util.http.HttpUtil.
The HttpUtil class contains methods for performing simple HTTP operations.

I

ID_KEY - Static variable in class sunlabs.brazil.handler.RolesHandler
Handler configuration property SessionID.
ident - Variable in class sunlabs.brazil.handler.CookieSessionHandler
 
ident - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 
in - Variable in class sunlabs.brazil.util.http.HttpSocket
 
IncludeTemplate - class sunlabs.brazil.sunlabs.IncludeTemplate.
Template class for substituting html pages into an html page.
IncludeTemplate - class sunlabs.brazil.template.IncludeTemplate.
Convert the html tag "include" in to text for an included html page.
IncludeTemplate() - Constructor for class sunlabs.brazil.sunlabs.IncludeTemplate
 
IncludeTemplate() - Constructor for class sunlabs.brazil.template.IncludeTemplate
 
incrNestingLevel() - Method in class sunlabs.brazil.template.RewriteContext
Increment the nesting level counter.
indexOf(byte[], int, int, byte[], int, int) - Static method in class sunlabs.brazil.handler.PushHandler
Find the index of dst in src or -1 if not found > This is the byte array equivalent to string.indexOf()
indexOf(byte[], int, int, String) - Static method in class sunlabs.brazil.handler.PushHandler
 
init() - Method in class sunlabs.brazil.handler.DialogHandler
Machine generated code.
init() - Method in class sunlabs.brazil.server.Server
 
init(RewriteContext) - Method in class sunlabs.brazil.beanshell.BeanShellServerTemplate
Called at the beginning of each HTML document that this BeanShellServerTemplate is asked to process.
init(RewriteContext) - Method in class sunlabs.brazil.email.EmailTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.handler.SMTPHandler
 
init(RewriteContext) - Method in class sunlabs.brazil.javascript.JavaScriptTemplate
Called at the beginning of each HTML document that this JavaScriptTemplate is asked to process.
init(RewriteContext) - Method in class sunlabs.brazil.python.PythonServerTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.sql.SqlTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.PlainTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ListTemplate
Clear any left-over lists.
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ExpContentTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.SnarfTemplate
Get the debug flag and reset page.
init(RewriteContext) - Method in class sunlabs.brazil.tcl.TclServerTemplate
Defer setting up the interpreter until its first use.
init(RewriteContext) - Method in class sunlabs.brazil.template.AllowGtTemplate
Replace the "default" parser with our modified one.
init(RewriteContext) - Method in class sunlabs.brazil.template.DeCommentTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.template.MacroTemplate
Read in the inital macros, if needed.
init(RewriteContext) - Method in class sunlabs.brazil.template.DebugTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.template.MultipartSetTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
Chain the session-id properties into the request chain, if there are any.
init(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
This gets called at every page, at the beginning.
init(RewriteContext) - Method in class sunlabs.brazil.template.DirectoryTemplate
Reset at each page
init(RewriteContext) - Method in class sunlabs.brazil.template.UrlNavBarTemplate
Compute a set of properties based on the URL
init(RewriteContext) - Method in class sunlabs.brazil.template.ChangedTemplate
Records that this file has just been accessed.
init(RewriteContext) - Method in class sunlabs.brazil.template.BSLTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.template.TOCTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.template.NoImageTemplate
Save a reference to our request properties We'll use it some day to tailor the image display
init(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.template.FormClientTemplate
Save a reference to our request properties.
init(RewriteContext) - Method in class sunlabs.brazil.template.FormTemplate
Save a reference to our request properties.
init(RewriteContext) - Method in class sunlabs.brazil.template.PropsTemplate
This gets called at every page, at the beginning.
init(RewriteContext) - Method in interface sunlabs.brazil.template.TemplateInterface
Called before this template processes any tags.
init(RewriteContext) - Method in class sunlabs.brazil.template.Template
Called before this template processes any tags.
init(RewriteContext) - Method in class sunlabs.brazil.groovy.GroovyServerTemplate
Initialize the groovy interperter (1st time only) and set the current request object.
init(RuntimeServices) - Method in class sunlabs.brazil.velocity.VelocityFilter
Velocity LogSystem interface implementation.
init(Server, String) - Method in class sunlabs.brazil.beanshell.BeanShellHandler
 
init(Server, String) - Method in class sunlabs.brazil.email.EmailTemplate
 
init(Server, String) - Method in class sunlabs.brazil.filter.UrlMapFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.MD5Filter
Make sure MD5 is available in this VM, or don't start.
init(Server, String) - Method in class sunlabs.brazil.filter.ExecFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.CopyContentFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.ReplaceFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.SessionFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.UrlSessionFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.TemplateFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.ReFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.PlainFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.FilterHandler
Start the handler and filter classes.
init(Server, String) - Method in class sunlabs.brazil.handler.DigestAuthHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.ResourceLimitHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.ChownHandler
set up the Unix user and group.
init(Server, String) - Method in class sunlabs.brazil.handler.RestrictClientHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.LogHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.PropertiesHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.DefaultFileHandler
Remember our profix in the properties table.
init(Server, String) - Method in class sunlabs.brazil.handler.RePollHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.PollHandler
Set up the initial configuration, and kick off a thread to periodically fetch the url.
init(Server, String) - Method in class sunlabs.brazil.handler.DeferredHandler
Remember the server for deferred initialization.
init(Server, String) - Method in class sunlabs.brazil.handler.MultiHostHandler
Initializes the servers for the virtual hosts.
init(Server, String) - Method in class sunlabs.brazil.handler.UrlMapperHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.SMTPHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.ConfigFileHandler
Make sure default properties exist before starting this handler, or that "match" is specified".
init(Server, String) - Method in class sunlabs.brazil.handler.VirtualHostHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.ChainSawHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.PushHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.PublishHandler
Start up the authentication handler.
init(Server, String) - Method in class sunlabs.brazil.handler.DirectoryHandler
Get the url prefix for this handler.
init(Server, String) - Method in class sunlabs.brazil.handler.NotFoundHandler
Extract the handler properties.
init(Server, String) - Method in class sunlabs.brazil.handler.DialogHandler
Do one time initialization.
init(Server, String) - Method in class sunlabs.brazil.handler.SupplyHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.RolesHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.ProxyPropertiesHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.ResourceHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.ReflectHandler
Initialize the handler.
init(Server, String) - Method in class sunlabs.brazil.handler.MultiProxyHandler
Initialize this handler.
init(Server, String) - Method in class sunlabs.brazil.handler.HomeDirHandler
Get and set the configuration parameters.
init(Server, String) - Method in class sunlabs.brazil.handler.GenericProxyHandler
Do one-time setup.
init(Server, String) - Method in class sunlabs.brazil.handler.CgiHandler
One time initialization.
init(Server, String) - Method in class sunlabs.brazil.handler.AclSwitchHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.DynamicConfigHandler
Initializes this DynamicConfigHandler by loading the initial handler.
init(Server, String) - Method in class sunlabs.brazil.handler.SimpleSessionHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.CookieSessionHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.BasicAuthHandler
Initializes this handler.
init(Server, String) - Method in class sunlabs.brazil.properties.SubstPropsHandler
 
init(Server, String) - Method in class sunlabs.brazil.properties.ExprPropsHandler
 
init(Server, String) - Method in class sunlabs.brazil.proxy.JunkBusterHandler
 
init(Server, String) - Method in class sunlabs.brazil.proxy.HistoryFilter
Initializes this filter by reading all its configuration properties.
init(Server, String) - Method in class sunlabs.brazil.proxy.CookieFilter
 
init(Server, String) - Method in class sunlabs.brazil.proxy.ProxyHandler
Do one-time setup.
init(Server, String) - Method in class sunlabs.brazil.server.FileHandler
Initialize the file handler.
init(Server, String) - Method in class sunlabs.brazil.server.ChainHandler
Initializes this ChainHandler by initializing all the "wrapped" handlers in the list of handlers.
init(Server, String) - Method in interface sunlabs.brazil.server.Handler
Initializes the handler.
init(Server, String) - Method in class sunlabs.brazil.session.SerializableCacheManager
 
init(Server, String) - Method in class sunlabs.brazil.session.SerialPersist
 
init(Server, String) - Method in class sunlabs.brazil.session.PropertiesCacheManager
 
init(Server, String) - Method in class sunlabs.brazil.session.CacheManager
Install this class as the session manager.
init(Server, String) - Method in class sunlabs.brazil.ssl.CertHandler
Get the CA's certificate chain.
init(Server, String) - Method in class sunlabs.brazil.ssl.SslHandler
 
init(Server, String) - Method in class sunlabs.brazil.sunlabs.RestartHandler
 
init(Server, String) - Method in class sunlabs.brazil.sunlabs.DelayHandler
 
init(Server, String) - Method in class sunlabs.brazil.sunlabs.StunnelHandler
 
init(Server, String) - Method in class sunlabs.brazil.tcl.TclRePollHandler
Create a tcl interp, extract the properties, and run the init script
init(Server, String) - Method in class sunlabs.brazil.tcl.TclFilter
extract the filter properties.
init(Server, String) - Method in class sunlabs.brazil.tcl.TclHandler
Create a tcl interp, extract the properties, and run the init script
init(Server, String) - Method in class sunlabs.brazil.template.SetTemplate
Get the 2 SessionManager keys, "sessionTable" and "session" (SessionID).
init(Server, String) - Method in class sunlabs.brazil.template.DirectoryTemplate
 
init(Server, String) - Method in class sunlabs.brazil.template.TemplateHandler
 
init(Server, String) - Method in class sunlabs.brazil.velocity.VelocityFilter
 
init(ServletConfig) - Method in class sunlabs.brazil.servlet.BrazilServlet
Called by the servlet container to place the servlet into service.
init(String, Properties) - Method in interface sunlabs.brazil.properties.SubstPropsHandler.Convert
This is called once at creation time to provide this class with configuration information.
init(String, Properties) - Method in class sunlabs.brazil.properties.SubstPropsHandler.LowerCase
 
init(String, Properties) - Method in class sunlabs.brazil.properties.SubstPropsHandler.Html
 
init(String, Properties) - Method in class sunlabs.brazil.properties.SubstPropsHandler.Url
 
init(String, Properties) - Method in class sunlabs.brazil.properties.SubstPropsHandler.Resub
 
initFailure - Variable in class sunlabs.brazil.server.Server
If set, the server will terminate with an initialization failure just before creating the listen socket.
initHandler(Server, String, String) - Static method in class sunlabs.brazil.server.ChainHandler
Helper function that allocates and initializes a new Handler, given its name.
initObject(Server, String) - Static method in class sunlabs.brazil.server.Main
 
initProps(Properties) - Static method in class sunlabs.brazil.server.Main
Initialize a properties file with some standard mime types The FileHandler only delivers files whose suffixes are known to map to mime types.
insert(String, String, int) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Insert a list before position n.
interval - Variable in class sunlabs.brazil.handler.PollHandler
 
isClosed() - Method in class sunlabs.brazil.template.QueueTemplate.Queue
get the closed state
isClosingFor(String) - Method in class sunlabs.brazil.template.RewriteContext
See if the current token is the closing tag for the given string.
isClosingFor(String, boolean) - Method in class sunlabs.brazil.template.RewriteContext
See if the current token is the closing tag for the given string.
isEmpty() - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Dictionary object.
isEmpty() - Method in interface sunlabs.brazil.session.PropertiesCacheManager.Saveable
The current object state is the "default"; "save" does not need to write out any state.
isEmpty() - Method in class sunlabs.brazil.sunlabs.XmlTree
 
isEmpty() - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
isEmpty() - Method in class sunlabs.brazil.util.StringMap
Tests if there are any elements in this StringMap.
isFalse(String) - Static method in class sunlabs.brazil.util.Format
See if a String represents a "false" boolean value, which consists of: "no", "false", "off", or "0", in any case.
isMd5Digest(String) - Static method in class sunlabs.brazil.handler.DigestAuthHandler
See if a string is a valid md5 digest.
isMine(Request) - Method in class sunlabs.brazil.handler.GenericProxyHandler
See if this is one of my requests.
isSingle() - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
isSingleton() - Method in class sunlabs.brazil.handler.HtmlRewriter
See if the current tag a singleton.
isSingleton() - Method in class sunlabs.brazil.util.LexML
A tag is a "singleton" if the closing ">" is preceded by a slash (/).
isTransient() - Method in class sunlabs.brazil.properties.PropertiesList
Sub-classes of PropertiesList can override this to mark themselves "transient", in which case addAfter will skip this list.
isTrue(String) - Method in class sunlabs.brazil.template.RewriteContext
Determine the value of a boolean attribute in the current tag.
isTrue(String) - Static method in class sunlabs.brazil.util.Format
See if a String represents a "true" boolean value, which consists of: "yes", "true", "on", or "1", in any case.
isTrustedPeer(SSLCertificate) - Method in class sunlabs.brazil.ssl.SslHandler
 

J

JavaScriptTemplate - class sunlabs.brazil.javascript.JavaScriptTemplate.
The JavaScriptTemplate looks for each <server language="javascript"> (or <javascript>) tag in an HTML page and treats the following data up to the next </server> (or </javascript>) tag as a JavaScript script to evaluate.
JavaScriptTemplate() - Constructor for class sunlabs.brazil.javascript.JavaScriptTemplate
 
JunkBusterHandler - class sunlabs.brazil.proxy.JunkBusterHandler.
Remove junk images from web pages.
JunkBusterHandler() - Constructor for class sunlabs.brazil.proxy.JunkBusterHandler
 

K

keepAlive - Variable in class sunlabs.brazil.server.Request
true if the client requested a persistent connection, false otherwise.
keys() - Method in class sunlabs.brazil.handler.HtmlRewriter
Returns an enumeration of the keys in the current tag's attributes.
keys() - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Dictionary object.
keys() - Method in class sunlabs.brazil.sunlabs.XmlTree
 
keys() - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Return an enumeration of the "special" keys for this list.
keys() - Method in class sunlabs.brazil.util.StringMap
Returns an enumeration of the keys in this StringMap.
keys(XmlTree.Node, String, String, Vector) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
keySet() - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Hashtable object.
kick() - Method in class sunlabs.brazil.template.QueueTemplate.Queue
Send a notify: for debugging
killToken() - Method in class sunlabs.brazil.handler.HtmlRewriter
Tells this HtmlRewriter not to append the current token to the resultant HTML document.

L

lastIn() - Method in class sunlabs.brazil.template.QueueTemplate.Queue
Return the last time a Q insertion was attempted.
lastOut() - Method in class sunlabs.brazil.template.QueueTemplate.Queue
Return the last time a Q removal was attempted.
lastUsed - Variable in class sunlabs.brazil.util.http.HttpSocket
 
LDAPTemplate - class sunlabs.brazil.ldap.LDAPTemplate.
The LDAPTemplate is invoked to process LDAP tags embedded in a document.
LDAPTemplate() - Constructor for class sunlabs.brazil.ldap.LDAPTemplate
 
length() - Method in class sunlabs.brazil.handler.PushHandler.Split
Return the content length
lex - Variable in class sunlabs.brazil.handler.HtmlRewriter
The parser for the source HTML document.
LexHTML - class sunlabs.brazil.util.LexHTML.
This class breaks up HTML into tokens.
LexHTML(String) - Constructor for class sunlabs.brazil.util.LexHTML
Creates a new HTML parser, which can be used to iterate over the tokens in the given string.
LexML - class sunlabs.brazil.util.LexML.
This class breaks angle-bracket-separated markup languages like SGML, XML, and HTML into tokens.
LexML(String) - Constructor for class sunlabs.brazil.util.LexML
Create a new ML parser, which can be used to iterate over the tokens in the given string.
LINE_LIMIT - Static variable in class sunlabs.brazil.util.http.HttpRequest
Maximum length of a line in the HTTP response headers (sanity check).
list(PrintStream) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Properties object.
list(PrintWriter) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Properties object.
listen - Variable in class sunlabs.brazil.server.Server
The listening socket.
ListTemplate - class sunlabs.brazil.sunlabs.ListTemplate.
Manage lists of strings in a (hopefully) useful way.
ListTemplate.MyList - class sunlabs.brazil.sunlabs.ListTemplate.MyList.
Implement a list of strings.
ListTemplate.MyList() - Constructor for class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
ListTemplate.MyList(String) - Constructor for class sunlabs.brazil.sunlabs.ListTemplate.MyList
Create a named list object.
ListTemplate() - Constructor for class sunlabs.brazil.sunlabs.ListTemplate
 
load(InputStream) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Properties object.
load(InputStream) - Method in interface sunlabs.brazil.session.PropertiesCacheManager.Saveable
Recreate the object from the ascii representation stored as a Properties format file.
load(InputStream) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
load(InputStream) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
load a properties representation of the object, then create the object from it.
loadUrls(Properties, String, String) - Method in class sunlabs.brazil.proxy.JunkBusterHandler
 
log - Static variable in class sunlabs.brazil.handler.MapPage
 
LOG - Static variable in class sunlabs.brazil.handler.ChainSawHandler
 
LOG_DIAGNOSTIC - Static variable in class sunlabs.brazil.server.Server
 
LOG_ERROR - Static variable in class sunlabs.brazil.server.Server
 
LOG_INFORMATIONAL - Static variable in class sunlabs.brazil.server.Server
 
LOG_LOG - Static variable in class sunlabs.brazil.server.Server
 
LOG_WARNING - Static variable in class sunlabs.brazil.server.Server
 
log() - Method in class sunlabs.brazil.server.TestRequest
 
log(int, Object, String) - Method in class sunlabs.brazil.server.TestRequest
 
log(int, Object, String) - Method in class sunlabs.brazil.server.Request
Logs a message by calling Server.log.
log(int, Object, String) - Method in class sunlabs.brazil.server.Server
Logs information about the socket to System.out.
log(int, String) - Method in class sunlabs.brazil.server.Request
Logs a message by calling Server.log.
log(String) - Method in class sunlabs.brazil.handler.MapPage
diagnostic output
LogHandler - class sunlabs.brazil.handler.LogHandler.
Handler for logging information about requests.
LogHandler() - Constructor for class sunlabs.brazil.handler.LogHandler
 
logLevel - Variable in class sunlabs.brazil.server.Server
The diagnostic level.
logVelocityMessage(int, String) - Method in class sunlabs.brazil.velocity.VelocityFilter
 

M

macroTable - Variable in class sunlabs.brazil.template.MacroTemplate
 
MacroTemplate - class sunlabs.brazil.template.MacroTemplate.
Template class for defining macros.
MacroTemplate() - Constructor for class sunlabs.brazil.template.MacroTemplate
 
Main - class sunlabs.brazil.server.Main.
Sample main program for starting an http server.
Main() - Constructor for class sunlabs.brazil.server.Main
 
main(String[]) - Static method in class sunlabs.brazil.handler.DigestAuthHandler
Convert a "plain text" password file into a digested one.
main(String[]) - Static method in class sunlabs.brazil.server.Main
 
main(String[]) - Static method in class sunlabs.brazil.ssl.CertHandler
Generate a sample self-signed server certificate to use for signing client certificate requests.
main(String[]) - Static method in class sunlabs.brazil.sunlabs.XmlTree
 
main(String[]) - Static method in class sunlabs.brazil.template.MacroTemplate
Convert stdin properties format macro definition files to the new template style.
main(String[]) - Static method in class sunlabs.brazil.util.ClockScan
 
main(String[]) - Static method in class sunlabs.brazil.util.ClockFormat
Test main: ClockFormat format ?time? ?zone?
main(String[]) - Static method in class sunlabs.brazil.util.Calculator
A test driver for the calculator.
main(String[]) - Static method in class sunlabs.brazil.util.Base64
Test the decoder and encoder.
main(String[]) - Static method in class sunlabs.brazil.util.regexp.Regexp
 
MAP - Static variable in class sunlabs.brazil.handler.RolesHandler
Handler configuration property mapFile.
map(String) - Method in interface sunlabs.brazil.properties.SubstPropsHandler.Convert
Map the value.
map(String) - Method in class sunlabs.brazil.properties.SubstPropsHandler.LowerCase
 
map(String) - Method in class sunlabs.brazil.properties.SubstPropsHandler.Html
 
map(String) - Method in class sunlabs.brazil.properties.SubstPropsHandler.Url
 
map(String) - Method in class sunlabs.brazil.properties.SubstPropsHandler.Resub
 
mapCount() - Method in class sunlabs.brazil.handler.MapPage
How many tags have been mapped?
mapFile - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 
MapPage - class sunlabs.brazil.handler.MapPage.
Utility class to rewrite links inside of web pages so they appear to come from a different site.
MapPage(String) - Constructor for class sunlabs.brazil.handler.MapPage
Create a site mapper.
match(String) - Method in class sunlabs.brazil.handler.MatchString
See if this is our url.
match(String) - Method in class sunlabs.brazil.sunlabs.XmlTree
Find all nodes that match a glob pattern, starting at the root.
match(String) - Method in class sunlabs.brazil.util.regexp.Regexp
Matches the given string against this regular expression.
match(String, int[]) - Method in class sunlabs.brazil.util.regexp.Regexp
Matches the given string against this regular expression, and computes the set of substrings that matched the parenthesized subexpressions.
match(String, Properties) - Method in class sunlabs.brazil.handler.MatchString
See if this is our url.
match(String, String) - Static method in class sunlabs.brazil.util.Glob
Match a string against a pattern.
match(String, String[]) - Method in class sunlabs.brazil.util.regexp.Regexp
Matches the given string against this regular expression, and computes the set of substrings that matched the parenthesized subexpressions.
match(String, String, String[]) - Static method in class sunlabs.brazil.util.Glob
Match a string against a pattern, and return sub-matches.
match(XmlTree.Node, StringTokenizer, Vector) - Method in class sunlabs.brazil.sunlabs.XmlTree
Find all nodes that match a glob pattern, starting at any node.
matched() - Method in class sunlabs.brazil.util.regexp.Regsub
Returns a substring consisting of the characters that matched the entire regular expression during the last call to nextMatch.
MatchString - class sunlabs.brazil.handler.MatchString.
Utility class for handlers to determine, based on the URL, if the current request should be processed.
MatchString(String) - Constructor for class sunlabs.brazil.handler.MatchString
Create a matcher for per-request URL checking.
MatchString(String, Properties) - Constructor for class sunlabs.brazil.handler.MatchString
Create a matcher for one-time-only checking.
max - Static variable in class sunlabs.brazil.template.QueueTemplate.Queue
 
max(int) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Set the max list size.
maxPost - Variable in class sunlabs.brazil.server.Server
Maximum amout of POST data allowed per request (in bytes) (default = 2Meg).
maxRequests - Variable in class sunlabs.brazil.server.Server
Maximum number of consecutive requests allowed on a single kept-alive socket.
maxThreads - Variable in class sunlabs.brazil.server.Server
The max number of threads allowed for the entire VM (default is 250).
md5Digest(String) - Static method in class sunlabs.brazil.handler.DigestAuthHandler
Compute the md5 digest of a string, returning the digest as a hex string.
MD5Filter - class sunlabs.brazil.filter.MD5Filter.
Filter to compute the MD5 checksum of the content, and generate the appropriate "Content-MD5" http header.
MD5Filter() - Constructor for class sunlabs.brazil.filter.MD5Filter
 
message - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 
message - Variable in class sunlabs.brazil.template.QueueTemplate.QueueItem
 
meta - Variable in class sunlabs.brazil.template.QueueTemplate.QueueItem
 
method - Variable in class sunlabs.brazil.server.Request
The HTTP request method, such as "GET", "POST", or "PUT".
method - Variable in class sunlabs.brazil.util.http.HttpRequest
The HTTP method, such as "GET", "POST", or "HEAD".
MIME - Static variable in class sunlabs.brazil.server.FileHandler
 
MimeHeaders - class sunlabs.brazil.util.http.MimeHeaders.
This class is build on top of the StringMap class and provides added methods that are of help when manipulating MIME headers.
MimeHeaders() - Constructor for class sunlabs.brazil.util.http.MimeHeaders
Creates a new, empty MimeHeaders object.
MimeHeaders(HttpInputStream) - Constructor for class sunlabs.brazil.util.http.MimeHeaders
Creates a new MimeHeaders object and then initializes it by reading MIME headers from the specified input stream.
ModifiedTemplate - class sunlabs.brazil.template.ModifiedTemplate.
Template class for computing last-modified times for content that is processed through templates.
ModifiedTemplate() - Constructor for class sunlabs.brazil.template.ModifiedTemplate
 
modifyContent(Request, byte[]) - Method in class sunlabs.brazil.handler.ProxyPropertiesHandler
 
modifyContent(Request, byte[]) - Method in class sunlabs.brazil.handler.GenericProxyHandler
Rewrite the links in an html file so they resolve correctly in proxy mode.
MultiHostHandler - class sunlabs.brazil.handler.MultiHostHandler.
The MultiHostHandler allows the user to handle a set of host names that are all running on the same IP address.
MultiHostHandler() - Constructor for class sunlabs.brazil.handler.MultiHostHandler
 
MultipartSetTemplate - class sunlabs.brazil.template.MultipartSetTemplate.
Version of the SetTemplate that reflects form/multipart data in Request.props.
MultipartSetTemplate() - Constructor for class sunlabs.brazil.template.MultipartSetTemplate
 
MultiProxyHandler - class sunlabs.brazil.handler.MultiProxyHandler.
Handler for permitting multiple cross connected virtual web sites.
MultiProxyHandler() - Constructor for class sunlabs.brazil.handler.MultiProxyHandler
 
mustExist - Variable in class sunlabs.brazil.handler.CookieSessionHandler
 

N

name - Variable in class sunlabs.brazil.server.Server
The string to return as the value for the "Server:" line in the HTTP response header.
name() - Method in class sunlabs.brazil.handler.PushHandler.Split
get the part name
names - Variable in class sunlabs.brazil.server.ChainHandler
The names of the above handlers as specified by the configuration parameters.
newSocket(String, int) - Method in interface sunlabs.brazil.util.SocketFactory
Creates a new Socket that talks to the specified port on the named host.
nextMatch() - Method in class sunlabs.brazil.util.regexp.Regsub
Searches for the next substring that matches the regular expression.
nextPart() - Method in class sunlabs.brazil.handler.PushHandler.Split
Return true if there is a next part
nextTag() - Method in class sunlabs.brazil.handler.HtmlRewriter
A convenence method built on top of nextToken.
nextToken() - Method in class sunlabs.brazil.handler.HtmlRewriter
Advances to the next token in the source HTML document.
nextToken() - Method in class sunlabs.brazil.util.LexHTML
Advances to the next token, correctly handling HTML tags that have the special body-processing behavior mentioned above.
nextToken() - Method in class sunlabs.brazil.util.LexML
Advances to the next token.
NL - Static variable in class sunlabs.brazil.handler.GenericProxyHandler
 
NoImageTemplate - class sunlabs.brazil.template.NoImageTemplate.
Sample template class for removing all images from a web page, and replacing them with their alt strings.
NoImageTemplate() - Constructor for class sunlabs.brazil.template.NoImageTemplate
 
nosession - Variable in class sunlabs.brazil.proxy.HistoryFilter
 
nosession - Variable in class sunlabs.brazil.proxy.CookieFilter
 
NotFoundHandler - class sunlabs.brazil.handler.NotFoundHandler.
Handler for returning "file not found" errors back to the client.
NotFoundHandler() - Constructor for class sunlabs.brazil.handler.NotFoundHandler
 

O

ok - Variable in class sunlabs.brazil.handler.DialogHandler
 
out - Variable in class sunlabs.brazil.server.Request
The HTTP response to the client is written to this stream.
out - Variable in class sunlabs.brazil.util.http.HttpSocket
 
overlap - Variable in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 

P

parseTime(String) - Static method in class sunlabs.brazil.util.http.HttpUtil
Convert a last-modified date in "standard" format into a time stamp.
patternMap - Variable in class sunlabs.brazil.handler.MapPage
 
persist - Variable in class sunlabs.brazil.filter.SessionFilter
 
persist - Variable in class sunlabs.brazil.handler.CookieSessionHandler
 
PJamaSessionManager - class sunlabs.brazil.session.PJamaSessionManager.
Use pJama to implement persistant sessions.
PJamaSessionManager() - Constructor for class sunlabs.brazil.session.PJamaSessionManager
 
PlainFilter - class sunlabs.brazil.filter.PlainFilter.
Filter to turn text/plain into html.
PlainFilter() - Constructor for class sunlabs.brazil.filter.PlainFilter
 
PlainTemplate - class sunlabs.brazil.sunlabs.PlainTemplate.
Template to turn all markup between and into ordinary text, by escaping all HTML markup.
PlainTemplate() - Constructor for class sunlabs.brazil.sunlabs.PlainTemplate
 
PollHandler - class sunlabs.brazil.handler.PollHandler.
Handler for periodically polling another web site, whose results are (optionally) added to the server's properties.
PollHandler() - Constructor for class sunlabs.brazil.handler.PollHandler
 
pool - Static variable in class sunlabs.brazil.util.http.HttpRequest
The cache of idle sockets.
port - Variable in class sunlabs.brazil.util.http.HttpSocket
 
port - Variable in class sunlabs.brazil.util.http.HttpRequest
The port extracted from the URL used to construct this HttpRequest.
PORT - Static variable in class sunlabs.brazil.handler.GenericProxyHandler
Handler configuration property port.
post - Variable in class sunlabs.brazil.handler.PollHandler
 
postData - Variable in class sunlabs.brazil.server.Request
The uploaded content of this request, usually from a POST.
prefix - Variable in class sunlabs.brazil.handler.MapPage
 
prefix - Variable in class sunlabs.brazil.server.ChainHandler
The prefix used to initialize this ChainHandler, used for logging.
prefix - Variable in class sunlabs.brazil.server.Server
The handler is passed a prefix to identify which items in the properties object are relevent.
prefix - Variable in class sunlabs.brazil.template.RewriteContext
The prefix to use for locating keys in the server or request properties objects.
PREFIX - Static variable in class sunlabs.brazil.handler.GenericProxyHandler
Handler configuration property prefix.
prefix() - Method in class sunlabs.brazil.handler.MatchString
Return our prefix
print(OutputStream) - Method in class sunlabs.brazil.util.http.MimeHeaders
Writes this MimeHeaders object to the given output stream.
print(PrintStream) - Method in class sunlabs.brazil.util.http.MimeHeaders
Writes this MimeHeaders object to the given output stream.
process() - Method in class sunlabs.brazil.template.RewriteContext
Invoke a template on this token, if any template is interested in this token.
process(Request, String, String) - Method in class sunlabs.brazil.template.TemplateRunner
Process an html template file, using the supplied template processing Return the content of the template just processed, or null if there was no template processed.
process(RewriteContext) - Method in class sunlabs.brazil.template.TemplateRunner
Processes the next token in the HTML document represented by the given RewriteContext.
processData(Request) - Method in class sunlabs.brazil.handler.PushHandler
process the data - this doesn't currently do anything useful.
processText(Properties, String) - Method in class sunlabs.brazil.handler.RePollHandler
Process the contents as a string through the regular expressions.
PropertiesCacheManager - class sunlabs.brazil.session.PropertiesCacheManager.
A version of the CacheManager that saves out any session state that is either a "java properties" object, or implements "Saveable" into a directory in the filesystem, one file per entry, then restores them on server startup.
PropertiesCacheManager.Saveable - interface sunlabs.brazil.session.PropertiesCacheManager.Saveable.
This interface allows for persistence of non-properties session objects.
PropertiesCacheManager() - Constructor for class sunlabs.brazil.session.PropertiesCacheManager
 
PropertiesHandler - class sunlabs.brazil.handler.PropertiesHandler.
Handler for returning selected request properties as a text/plain document in java properties format.
PropertiesHandler() - Constructor for class sunlabs.brazil.handler.PropertiesHandler
 
PropertiesList - class sunlabs.brazil.properties.PropertiesList.
A PropertiesList instance is intended to be an element of a doubly linked list consisting of other PropertiesList instances.
PropertiesList() - Constructor for class sunlabs.brazil.properties.PropertiesList
Constructs a new PropertiesList object that wraps an empty new Properties object.
PropertiesList(Dictionary) - Constructor for class sunlabs.brazil.properties.PropertiesList
Constructs a new PropertiesList object that wraps the input Dictionary.
PropertiesList(Dictionary, boolean) - Constructor for class sunlabs.brazil.properties.PropertiesList
Constructs a new PropertiesList object that wraps the input Dictionary.
propertyNames() - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Properties object.
propertyNames(String) - Method in class sunlabs.brazil.properties.PropertiesList
Returns an Enumeration of property names that match a glob pattern.
props - Variable in class sunlabs.brazil.handler.LogHandler
 
props - Variable in class sunlabs.brazil.server.Request
A set of properties local to this request.
props - Variable in class sunlabs.brazil.server.Server
Hashtable containing arbitrary information that may be of interest to a Handler.
propsPrefix - Variable in class sunlabs.brazil.handler.PublishHandler
 
PropsTemplate - class sunlabs.brazil.template.PropsTemplate.
[Deprecated, use the the SetTemplate.]
Template class for substituting request properties into an HTML page.
PropsTemplate() - Constructor for class sunlabs.brazil.template.PropsTemplate
 
protocol - Variable in class sunlabs.brazil.server.Request
The HTTP protocol specified in the request, either "HTTP/1.0" or "HTTP/1.1".
protocol - Variable in class sunlabs.brazil.server.Server
The protocol used to access this resource.
proxies - Static variable in class sunlabs.brazil.handler.MultiProxyHandler
Holds all proxy -> prefix mappings for this server.
PROXY_HOST - Static variable in class sunlabs.brazil.handler.GenericProxyHandler
Handler configuration property proxyHost.
PROXY_HOST - Static variable in class sunlabs.brazil.proxy.ProxyHandler
 
PROXY_PORT - Static variable in class sunlabs.brazil.handler.GenericProxyHandler
Handler configuration property proxyPort.
PROXY_PORT - Static variable in class sunlabs.brazil.proxy.ProxyHandler
 
ProxyHandler - class sunlabs.brazil.proxy.ProxyHandler.
Handler for implementing a web proxy.
ProxyHandler() - Constructor for class sunlabs.brazil.proxy.ProxyHandler
 
proxyHost - Variable in class sunlabs.brazil.proxy.ProxyHandler
The proxy server.
proxyHost - Variable in class sunlabs.brazil.util.http.HttpRequest
If non-null, sends this HTTP request via the specified proxy host and port.
proxyPort - Variable in class sunlabs.brazil.proxy.ProxyHandler
The proxy server's port.
proxyPort - Variable in class sunlabs.brazil.util.http.HttpRequest
The proxy port.
ProxyPropertiesHandler - class sunlabs.brazil.handler.ProxyPropertiesHandler.
Obtain properties format content from remote websites, and add it to the current request properties.
ProxyPropertiesHandler() - Constructor for class sunlabs.brazil.handler.ProxyPropertiesHandler
 
PublishHandler - class sunlabs.brazil.handler.PublishHandler.
Handler for supporting publishing from Communicator.
PublishHandler() - Constructor for class sunlabs.brazil.handler.PublishHandler
 
pushback() - Method in class sunlabs.brazil.handler.HtmlRewriter
Puts the current token back.
PushHandler - class sunlabs.brazil.handler.PushHandler.
Skeleton Handler for uploading files using multipart/form-data.
PushHandler.Split - class sunlabs.brazil.handler.PushHandler.Split.
Split multipart data into its constituent pieces.
PushHandler.Split(byte[]) - Constructor for class sunlabs.brazil.handler.PushHandler.Split
create a new multipart form thingy
PushHandler() - Constructor for class sunlabs.brazil.handler.PushHandler
 
put(int, String) - Method in class sunlabs.brazil.util.StringMap
Maps the key at the given index to the specified value in this StringMap.
put(Object) - Method in class sunlabs.brazil.template.QueueTemplate.Queue
Put an item on the queue if it's open and not full.
put(Object, boolean) - Method in class sunlabs.brazil.template.QueueTemplate.Queue
Put an item on the queue if it's not full.
put(Object, Object) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Dictionary object.
put(Object, Object) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
put(Object, Object) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
This is never used; It's required by the interface
put(Object, Object) - Method in class sunlabs.brazil.util.StringMap
Performs the same job as put(String, String).
put(Object, Object, Object) - Static method in class sunlabs.brazil.session.SessionManager
put an object into the session manager.
put(String, int) - Method in class sunlabs.brazil.util.http.MimeHeaders
Maps the given case-insensitive key to the specified value in this MimeHeaders object, replacing the old value.
put(String, String) - Method in class sunlabs.brazil.handler.HtmlRewriter
Maps the given case-insensitive key to the specified value in the current tag's attributes.
put(String, String) - Method in class sunlabs.brazil.server.TestRequest
 
put(String, String) - Method in class sunlabs.brazil.util.StringMap
Maps the given case-insensitive key to the specified value in this StringMap.
putAll(Map) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Hashtable object.
putAttribute(String, String) - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
putIfNotPresent(String, String) - Method in class sunlabs.brazil.util.http.MimeHeaders
Maps the given case-insensitive key to the specified value if the key does not already exist in this MimeHeaders object.
PythonServerTemplate - class sunlabs.brazil.python.PythonServerTemplate.
The PythonServerTemplate looks for each <server language="python"> (or <python>) tag in an HTML page and treats the following data up to the next </server> (or </python>) tag as a python script to evaluate.
PythonServerTemplate() - Constructor for class sunlabs.brazil.python.PythonServerTemplate
 

Q

Q_ID - Static variable in class sunlabs.brazil.template.QueueTemplate
 
qsort(Object) - Static method in class sunlabs.brazil.util.Sort
Sorts an array of the basic types (ints, floats, bytes, etc.) or Strings.
qsort(Object, Sort.Compare) - Static method in class sunlabs.brazil.util.Sort
Sorts an array.
qsort(Vector) - Static method in class sunlabs.brazil.util.Sort
Sort a vector of strings using the Qsort algorithm.
query - Variable in class sunlabs.brazil.server.Request
The query string specified after the URL, or "" if no query string was specified.
QueueTemplate - class sunlabs.brazil.template.QueueTemplate.
Template class for Managing simple Queues, allowing text communication among sessions.
QueueTemplate.Queue - class sunlabs.brazil.template.QueueTemplate.Queue.
Create an object queue.
QueueTemplate.Queue() - Constructor for class sunlabs.brazil.template.QueueTemplate.Queue
Create a new Q of a maximum possible size
QueueTemplate.QueueItem - class sunlabs.brazil.template.QueueTemplate.QueueItem.
A bag of items to keep on the Q.
QueueTemplate.QueueItem(String, String, String) - Constructor for class sunlabs.brazil.template.QueueTemplate.QueueItem
Add an item to the Q.
QueueTemplate() - Constructor for class sunlabs.brazil.template.QueueTemplate
 
quote(String) - Static method in class sunlabs.brazil.handler.HtmlRewriter
Helper class to quote a attribute's value when the value is being written to the resultant HTML document.

R

read(HttpInputStream) - 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(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.
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(String, String) - Method in class sunlabs.brazil.servlet.BServletRequest
 
RedirectTemplate - class sunlabs.brazil.template.RedirectTemplate.
[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 sunlabs.brazil.filter.ReFilter.
Filter to replace text content via a reqular expression substitution.
ReFilter() - Constructor for class sunlabs.brazil.filter.ReFilter
 
ReflectHandler - class sunlabs.brazil.handler.ReflectHandler.
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 sunlabs.brazil.util.regexp.Regexp.
The Regexp class can be used to match a pattern against a string and optionally replace the matched parts with new strings.
Regexp.Filter - interface sunlabs.brazil.util.regexp.Regexp.Filter.
This interface is used by the Regexp class to generate the replacement string for each pattern match found in the source string.
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.
Regsub - class sunlabs.brazil.util.regexp.Regsub.
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 sunlabs.brazil.sunlabs.RemoteHostTemplate.
Return the remote host name associated with this request.
RemoteHostTemplate() - Constructor for class sunlabs.brazil.sunlabs.RemoteHostTemplate
 
remove() - Method in class sunlabs.brazil.properties.PropertiesList
Remove this object from the list in which it's a member.
remove(int) - Method in class sunlabs.brazil.util.StringMap
 
remove(Object) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Dictionary object.
remove(Object) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
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.util.StringMap
Performs the same job as remove(String).
remove(Object, Object) - Static method in class sunlabs.brazil.session.SessionManager
Remove an object from the session manager.
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(String) - Method in class sunlabs.brazil.util.StringMap
Removes the given case-insensitive key and its corresponding value from this StringMap.
remove(String, String) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Remove items from a list, by name.
removeObj(Object, Object) - Method in class sunlabs.brazil.session.CacheManager
Remove an object from a session table.
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.
removeSharedProps(Dictionary) - Method in class sunlabs.brazil.server.Request
Removes a Dictionary added by addSharedProps.
replace() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
true if the previous replace worked
replace(String) - Method in class sunlabs.brazil.handler.RePollHandler.Extract
Do the substitution
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 sunlabs.brazil.filter.ReplaceFilter.
Filter to replace current content with a static form, or template.
ReplaceFilter() - Constructor for class sunlabs.brazil.filter.ReplaceFilter
 
RePollHandler - class sunlabs.brazil.handler.RePollHandler.
Do regsub processing on content to extract properties.
RePollHandler.Extract - class sunlabs.brazil.handler.RePollHandler.Extract.
A "bag" to store regular expression extraction instructions
RePollHandler() - Constructor for class sunlabs.brazil.handler.RePollHandler
 
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 - Variable in class sunlabs.brazil.template.RewriteContext
The Request object, as passed to a handler's respond method.
Request - class sunlabs.brazil.server.Request.
Represents an HTTP transaction.
Request.HttpOutputStream - class sunlabs.brazil.server.Request.HttpOutputStream.
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.
reset() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
 
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.
ResourceHandler - class sunlabs.brazil.handler.ResourceHandler.
Handler for serving documents out of the jar file.
ResourceHandler() - Constructor for class sunlabs.brazil.handler.ResourceHandler
 
ResourceLimitHandler - class sunlabs.brazil.handler.ResourceLimitHandler.
Handler for server resource management.
ResourceLimitHandler() - Constructor for class sunlabs.brazil.handler.ResourceLimitHandler
 
respond(Request) - Method in class sunlabs.brazil.beanshell.BeanShellHandler
 
respond(Request) - Method in class sunlabs.brazil.email.EmailTemplate
 
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.MD5Filter
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.CopyContentFilter
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.UrlSessionFilter
Extract the cookie out of the URL, rewriting the url as needed.
respond(Request) - Method in class sunlabs.brazil.filter.TemplateFilter
No action before request is made
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.PlainFilter
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.handler.DigestAuthHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.ResourceLimitHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.ChownHandler
Nothing to respond to
respond(Request) - Method in class sunlabs.brazil.handler.RestrictClientHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.LogHandler
Dispatch the request to the handler.
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.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.RePollHandler
Allow The url and post data (if any) to be changed.
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.DeferredHandler
Dispatch to the handler, installing it if needed
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.UrlMapperHandler
If this request matches the expression, rewrite it.
respond(Request) - Method in class sunlabs.brazil.handler.SMTPHandler
 
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.VirtualHostHandler
Either look for host header, tack on front of url, or modify the "root" property
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.PushHandler
Make sure this is one of our requests.
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.DirectoryHandler
Display files in a directory, after being rejected by the FileHandler.
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.DialogHandler
Pop up a dialog box on the server machine.
respond(Request) - Method in class sunlabs.brazil.handler.SupplyHandler
Dispatch and handle the request.
respond(Request) - Method in class sunlabs.brazil.handler.RolesHandler
Dispatch and handle the request.
respond(Request) - Method in class sunlabs.brazil.handler.ProxyPropertiesHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.ResourceHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.ReflectHandler
Dispatch and handle the request.
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.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.CgiHandler
Dispatch and handle the CGI request.
respond(Request) - Method in class sunlabs.brazil.handler.AclSwitchHandler
 
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.SimpleSessionHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.CookieSessionHandler
 
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.properties.SubstPropsHandler
 
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.proxy.JunkBusterHandler
 
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.CookieFilter
 
respond(Request) - Method in class sunlabs.brazil.proxy.ProxyHandler
 
respond(Request) - Method in class sunlabs.brazil.server.FileHandler
Find, read, and deliver via http the requested file.
respond(Request) - Method in class sunlabs.brazil.server.ChainHandler
Calls each of the Handlers in turn until one of them returns true.
respond(Request) - Method in interface sunlabs.brazil.server.Handler
Responds to an HTTP request.
respond(Request) - Method in class sunlabs.brazil.session.SerialPersist
 
respond(Request) - Method in class sunlabs.brazil.session.PropertiesCacheManager
 
respond(Request) - Method in class sunlabs.brazil.session.CacheManager
Don't handle any URL requests (yet)
respond(Request) - Method in class sunlabs.brazil.ssl.CertHandler
 
respond(Request) - Method in class sunlabs.brazil.ssl.SslHandler
Extract client and issuer certificate information.
respond(Request) - Method in class sunlabs.brazil.sunlabs.RestartHandler
 
respond(Request) - Method in class sunlabs.brazil.sunlabs.DelayHandler
Delay before servicing this request.
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.tcl.TclFilter
We don't need to look at the request.
respond(Request) - Method in class sunlabs.brazil.tcl.TclHandler
 
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.DirectoryTemplate
Compute the directory info, and add it to the request properties.
respond(Request) - Method in class sunlabs.brazil.template.TemplateHandler
Process an html template file, using the supplied template processing classes.
respond(Request) - Method in class sunlabs.brazil.velocity.VelocityFilter
This is the request object before the content was fetched
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 sunlabs.brazil.sunlabs.RestartHandler.
Restart the server when a sigHUP is received.
RestartHandler() - Constructor for class sunlabs.brazil.sunlabs.RestartHandler
 
restrict - Variable in class sunlabs.brazil.server.Server
If non-null, restrict connections to just the specified ip addresses.
RestrictClientHandler - class sunlabs.brazil.handler.RestrictClientHandler.
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
 
RewriteContext - class sunlabs.brazil.template.RewriteContext.
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
 
ROLE_KEY - Static variable in class sunlabs.brazil.handler.RolesHandler
Handler configuration property roleName.
RolesHandler - class sunlabs.brazil.handler.RolesHandler.
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.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.

S

save(OutputStream, String) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Properties object.
save(OutputStream, String) - Method in interface sunlabs.brazil.session.PropertiesCacheManager.Saveable
Create an ascii representation of this object in a Java Properties format.
save(OutputStream, String) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
save(OutputStream, String) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
sb - Variable in class sunlabs.brazil.handler.HtmlRewriter
Storage holding the resultant HTML document.
ScriptEvalTemplate - class sunlabs.brazil.template.ScriptEvalTemplate.
Template class for performing ${...} substitutions inside javascript and style tags.
ScriptEvalTemplate() - Constructor for class sunlabs.brazil.template.ScriptEvalTemplate
 
search(String) - Method in class sunlabs.brazil.sunlabs.XmlTree
Find a node in the tree by name, starting at the root.
search(XmlTree.Node, StringTokenizer) - Method in class sunlabs.brazil.sunlabs.XmlTree
Find a node in the tree by name, starting under any node.
sendError(int, String) - Method in class sunlabs.brazil.server.Request
Sends a HTTP error response to the client.
sendError(int, String, String) - Method in class sunlabs.brazil.server.Request
Sends a HTTP error response to the client.
sendFile(Request, File, int, String) - Static method in class sunlabs.brazil.server.FileHandler
Send a file as a response.
sendHeaders(int, String, int) - Method in class sunlabs.brazil.server.Request
Sends the HTTP status line and response headers to the client.
sendHeaders(Request) - Method in class sunlabs.brazil.server.Request.HttpOutputStream
 
sendHeaders(Request) - Method in class sunlabs.brazil.servlet.BServletRequest.HttpOutputStream
If the response content type is text/html, this method interposes a buffer before the response stream that gathers all content for subsequent URI rewriting.
sendReplacementImage(Request) - Method in class sunlabs.brazil.proxy.JunkBusterHandler
 
sendResponse(byte[], String) - Method in class sunlabs.brazil.server.Request
Sends an HTTP response to the client.
sendResponse(InputStream, int, String, int) - Method in class sunlabs.brazil.server.Request
Sends the contents of the given input stream as the HTTP response.
sendResponse(String) - Method in class sunlabs.brazil.server.Request
Convenience method that sends an HTTP response to the client with a "Content-Type" of "text/html" and the default HTTP status code.
sendResponse(String, String) - Method in class sunlabs.brazil.server.Request
Convenience method that sends an HTTP response to the client with the default HTTP status code.
sendResponse(String, String, int) - Method in class sunlabs.brazil.server.Request
Sends an HTTP response to the client.
SerializableCacheManager - class sunlabs.brazil.session.SerializableCacheManager.
Serializable version of the CacheManager.
SerializableCacheManager() - Constructor for class sunlabs.brazil.session.SerializableCacheManager
 
SerialPersist - class sunlabs.brazil.session.SerialPersist.
The SerialPersist class is a SessionManager that uses Java object serialization to make a persistent store of the session information for a server.
SerialPersist() - Constructor for class sunlabs.brazil.session.SerialPersist
 
server - Variable in class sunlabs.brazil.server.Request
 
server - Variable in class sunlabs.brazil.template.RewriteContext
The server object, as passed to a handler's init method.
Server - class sunlabs.brazil.server.Server.
Yet another HTTP/1.1 server.
Server() - Constructor for class sunlabs.brazil.server.Server
Set up the server.
Server(ServerSocket, String, Properties) - Constructor for class sunlabs.brazil.server.Server
Create a server using the provided listener socket.
serverProps - Variable in class sunlabs.brazil.server.Request
A PropertiesList object that wraps server.props.
serverProtocol - Variable in class sunlabs.brazil.server.Request
This is the server's protocol.
serverUrl() - Method in class sunlabs.brazil.server.Request
Returns the server's fully-qualified base URL.
serverUrl() - Method in class sunlabs.brazil.servlet.BServletRequest
Returns the server's fully-qualified base URL.
service(ServletRequest, ServletResponse) - Method in class sunlabs.brazil.servlet.BrazilServlet
Called by the servlet container to allow the servlet to respond to a request.
session - Variable in class sunlabs.brazil.filter.SessionFilter
 
session - Variable in class sunlabs.brazil.filter.UrlSessionFilter
 
session - Variable in class sunlabs.brazil.handler.PublishHandler
 
session - Variable in class sunlabs.brazil.handler.CookieSessionHandler
 
session - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 
session - Variable in class sunlabs.brazil.proxy.HistoryFilter
 
session - Variable in class sunlabs.brazil.proxy.CookieFilter
 
SessionFilter - class sunlabs.brazil.filter.SessionFilter.
Filter to manage browser sessions using browser cookies or URL rewriting as needed.
SessionFilter() - Constructor for class sunlabs.brazil.filter.SessionFilter
 
sessionId - Variable in class sunlabs.brazil.template.RewriteContext
A unique session id, if available.
SessionManager - class sunlabs.brazil.session.SessionManager.
The SessionManager associates an object with a Session ID to give Handlers the ability to maintain state that lasts for the duration of a session instead of just for the duration of a request.
SessionManager() - Constructor for class sunlabs.brazil.session.SessionManager
 
sessionTable - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 
setAttribute(String, String, String) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
setCdata(String) - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
setCdata(String, String) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
setClosed(boolean) - Method in class sunlabs.brazil.template.QueueTemplate.Queue
set the closed state
setComparator(XmlTree.NodeName) - Method in class sunlabs.brazil.sunlabs.XmlTree
Set the class that determines a node's name.
setDelim(String) - Method in class sunlabs.brazil.sunlabs.XmlTree
set the node delimiter.
setDelim(String) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Set the delimiter for returning ranges.
setDflt(String) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
setGuidImpl(Guid) - Static method in class sunlabs.brazil.util.Guid
Allow global replacement of the GUID generator.
setIdent(String) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
setKeepAlive(boolean) - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
setLocalPort(int) - Method in class sunlabs.brazil.servlet.BServletServerSocket
Sets the local port to which this socket is bound.
setMap(Hashtable) - Method in class sunlabs.brazil.handler.MapPage
Set the map table for cross-linked sites.
setMethod(String) - Method in class sunlabs.brazil.util.http.HttpRequest
Sets the HTTP method to the specified value.
setPrefix(String) - Method in class sunlabs.brazil.handler.MapPage
Change the prefix that will replace the leading "/" in a URL.
setPrefix(String) - Method in class sunlabs.brazil.sunlabs.XmlTree
set the name of this tree
setProperty(String, String) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Properties object if it exists.
setProxy(String, int) - Method in class sunlabs.brazil.util.http.HttpRequest
Sets the proxy for this request.
setReceiveBufferSize(int) - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
setRequestHeader(String, String) - Method in class sunlabs.brazil.util.http.HttpRequest
Sets a request header in the HTTP request that will be issued.
setRewriteState(int) - Method in class sunlabs.brazil.template.RewriteContext
Set the given state of this RewriteContext.
setSendBufferSize(int) - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
setSessionManager(SessionManager) - Static method in class sunlabs.brazil.session.SessionManager
Installs the given SessionManager object as the default session manager to be invoked when getSession is called.
setSingle(boolean) - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
setSingleton(boolean) - Method in class sunlabs.brazil.handler.HtmlRewriter
Make the current tag a singleton.
setSocketFactory(SocketImplFactory) - Static method in class sunlabs.brazil.servlet.BServletServerSocket
Dummy method, not implemented.
setSoLinger(boolean, int) - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
setSoTimeout(int) - Method in class sunlabs.brazil.servlet.BServletServerSocket
Dummy method, not implemented.
setSoTimeout(int) - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
setStatus(int) - Method in class sunlabs.brazil.server.Request
Sets the status code of the HTTP response.
setStatus(int) - Method in class sunlabs.brazil.servlet.BServletRequest
Sets response code in the servlet response object.
setTag(String) - Method in class sunlabs.brazil.handler.HtmlRewriter
Changes the current tag's name.
setTag(String) - Method in class sunlabs.brazil.sunlabs.XmlTree
Add an element to the tag process list.
setTags(Hashtable) - Method in class sunlabs.brazil.sunlabs.XmlTree
Set the list of tags to process
setTcpNoDelay(boolean) - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
SetTemplate - class sunlabs.brazil.template.SetTemplate.
Template (and handler) class for setting and getting values to and from the current (or other) request context.
SetTemplate() - Constructor for class sunlabs.brazil.template.SetTemplate
 
setType(int) - Method in class sunlabs.brazil.handler.HtmlRewriter
Sets the type of the current token.
setup(RewriteContext) - Method in class sunlabs.brazil.tcl.TclServerTemplate
Called at the first tcl code in the document TclServerTemplate is asked to process.
setup(ServerSocket, String, Properties) - Method in class sunlabs.brazil.server.Server
 
setupSql(String, Properties) - Method in class sunlabs.brazil.sql.SqlTemplate
Setup a connection to an SQL server.
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.email.EmailTemplate
 
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.UrlMapFilter
Only filter text documents if the MultiProxyHandler was called
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.MD5Filter
Only filter url's that match.
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.ExecFilter
Only filter content types that match
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.CopyContentFilter
Watch every document that passes by.
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.ReplaceFilter
Only replace text documents
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.SessionFilter
We have the results, only filter if html and we're rewriting
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.UrlSessionFilter
We have the results, only filter if html
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.TemplateFilter
Filters all HTML files, or files that are likely to be html files, specifically, those whose "Content-Type" starts with "text/".
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.ReFilter
Only filter text documents
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.PlainFilter
Only filter text/plain documents
shouldFilter(Request, MimeHeaders) - Method in interface sunlabs.brazil.filter.Filter
Gives this Filter the chance to examine the HTTP response headers from the wrapped Handler, before the content has been retrieved.
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.proxy.HistoryFilter
Called when invoked as a Filter.
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.proxy.CookieFilter
Saves all "Set-Cookie" headers from the target in the client's local storage, then removes those headers before allowing the response to go back to the client.
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.tcl.TclFilter
For now, only filter text/html.
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.velocity.VelocityFilter
Only filter text/* documents
shutdownInput() - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
shutdownOutput() - Method in class sunlabs.brazil.servlet.BServletSocket
Dummy method, not implemented.
SimpleSessionHandler - class sunlabs.brazil.handler.SimpleSessionHandler.
Handler for creating browser sessions based on information found in the http request.
SimpleSessionHandler() - Constructor for class sunlabs.brazil.handler.SimpleSessionHandler
 
size() - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Dictionary object.
size() - Method in class sunlabs.brazil.sunlabs.XmlTree
 
size() - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
size() - Method in class sunlabs.brazil.template.QueueTemplate.Queue
How many items are queue'd.
size() - Method in class sunlabs.brazil.util.StringMap
Returns the number of elements in this StringMap.
skipped() - Method in class sunlabs.brazil.util.regexp.Regsub
Returns a substring consisting of all the characters skipped between the end of the last match (or the start of the original search string) and the start of this match.
smtp(String, String, String, String, String, Dictionary) - Static method in class sunlabs.brazil.handler.SMTPHandler
Send an email message via smtp - simple version.
smtp(String, String, String, String, String, Dictionary, Server) - Static method in class sunlabs.brazil.handler.SMTPHandler
 
SMTPHandler - class sunlabs.brazil.handler.SMTPHandler.
Handler (or template) for Sending an email message via SMTP.
SMTPHandler() - Constructor for class sunlabs.brazil.handler.SMTPHandler
 
SnarfTemplate - class sunlabs.brazil.sunlabs.SnarfTemplate.
Template class for extracting content out of <snarf property=xxx> ...
SnarfTemplate() - Constructor for class sunlabs.brazil.sunlabs.SnarfTemplate
 
snarfTillClose(LexML, String) - Static method in class sunlabs.brazil.template.MacroTemplate
Grab all the markup starting from the current tag until the matching closing tag, and return as a string.
sock - Variable in class sunlabs.brazil.server.Request
 
sock - Variable in class sunlabs.brazil.util.http.HttpSocket
 
socketFactory - Static variable in class sunlabs.brazil.util.http.HttpRequest
The factory for constructing new Sockets objects used to connect to remote hosts when issuing HTTP requests.
SocketFactory - interface sunlabs.brazil.util.SocketFactory.
This interface is used as a heap to control the allocation of sockets.
Sort - class sunlabs.brazil.util.Sort.
Placeholder for useful sorting utilities.
Sort.Compare - interface sunlabs.brazil.util.Sort.Compare.
This interface is used by the Sort class to compare elements when an array is being sorted.
sort() - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
SourceTemplate - class sunlabs.brazil.sunlabs.SourceTemplate.
Template class for incorporating the content of a local file.
SourceTemplate() - Constructor for class sunlabs.brazil.sunlabs.SourceTemplate
 
SqlTemplate - class sunlabs.brazil.sql.SqlTemplate.
Sample Template class for running SQL queries via jdbc and placing the results into the request properties for further processing.
SqlTemplate() - Constructor for class sunlabs.brazil.sql.SqlTemplate
 
SslHandler - class sunlabs.brazil.ssl.SslHandler.
Handler for installing SSL into the server.
SslHandler() - Constructor for class sunlabs.brazil.ssl.SslHandler
 
start() - Method in class sunlabs.brazil.handler.PushHandler.Split
return the index into the start of the data for this part
startLine - Variable in class sunlabs.brazil.sunlabs.XmlTree.XmlErrorInfo
 
startMillis - Variable in class sunlabs.brazil.server.Request
Time stamp for start of this request - set, but not used.
startServer(Properties) - Static method in class sunlabs.brazil.server.Main
Start a server using the supplied properties.
startTag - Variable in class sunlabs.brazil.sunlabs.XmlTree.XmlErrorInfo
 
status - Variable in class sunlabs.brazil.util.http.HttpRequest
The status line from the HTTP response.
store(OutputStream, String) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Properties object.
STRING - Static variable in class sunlabs.brazil.util.LexML
The value returned by getType for string tokens
string(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
Gets all text between tags - highlighting it appropriately.
StringMap - class sunlabs.brazil.util.StringMap.
The StringMap class is a substitute for the Hashtable.
StringMap() - Constructor for class sunlabs.brazil.util.StringMap
Creates an empty StringMap.
StunnelHandler - class sunlabs.brazil.sunlabs.StunnelHandler.
Handler to enable proper interaction with a protocol conversion gateway, by rewriting "redirect" directives properly.
StunnelHandler() - Constructor for class sunlabs.brazil.sunlabs.StunnelHandler
 
sub(String, Regexp.Filter) - Method in class sunlabs.brazil.util.regexp.Regexp
 
sub(String, String) - Method in class sunlabs.brazil.util.regexp.Regexp
Matches a string against a regular expression and replaces the first match with the string generated from the substitution parameter.
subAll(String, String) - Method in class sunlabs.brazil.util.regexp.Regexp
Matches a string against a regular expression and replaces all matches with the string generated from the substitution parameter.
submatch(int) - Method in class sunlabs.brazil.util.regexp.Regsub
Returns a substring consisting of the characters that matched the given parenthesized subexpression during the last call to nextMatch.
subspecs() - Method in class sunlabs.brazil.util.regexp.Regexp
Returns the number of parenthesized subexpressions in this regular expression, plus one more for this expression itself.
subst(Dictionary, String) - Static method in class sunlabs.brazil.util.Format
Allow a tag attribute value to contain the value of another property, permitting nested variable substitution in attribute values.
subst(Dictionary, String, boolean) - Static method in class sunlabs.brazil.util.Format
Allow a tag attribute value to contain the value of another property, permitting nested variable substitution in attribute values.
subst(Request, String, long) - Static method in class sunlabs.brazil.handler.LogHandler
Format a string.
SubstAllTemplate - class sunlabs.brazil.sunlabs.SubstAllTemplate.
Template to substitute ${...} for the value of name/value attribute pairs of all html tags that aren't otherwise accounted for by other templates.
SubstAllTemplate() - Constructor for class sunlabs.brazil.sunlabs.SubstAllTemplate
 
SubstPropsHandler - class sunlabs.brazil.properties.SubstPropsHandler.
Handler that performs value conversions on ${...} substitutions.
SubstPropsHandler.Convert - interface sunlabs.brazil.properties.SubstPropsHandler.Convert.
Class that maps strings to strings.
SubstPropsHandler.Html - class sunlabs.brazil.properties.SubstPropsHandler.Html.
HTML escape a value.
SubstPropsHandler.Html() - Constructor for class sunlabs.brazil.properties.SubstPropsHandler.Html
 
SubstPropsHandler.LowerCase - class sunlabs.brazil.properties.SubstPropsHandler.LowerCase.
Convert a value to lowercase.
SubstPropsHandler.LowerCase() - Constructor for class sunlabs.brazil.properties.SubstPropsHandler.LowerCase
 
SubstPropsHandler.Resub - class sunlabs.brazil.properties.SubstPropsHandler.Resub.
Do a regexp substitution on a value.
SubstPropsHandler.Resub() - Constructor for class sunlabs.brazil.properties.SubstPropsHandler.Resub
 
SubstPropsHandler.SubstProps - class sunlabs.brazil.properties.SubstPropsHandler.SubstProps.
This class implements a properties object that knows how to extract the "name" and "filter" from a properly constructed name, and to invoke the filter on the value of the encoded name.
SubstPropsHandler.SubstProps(Request) - Constructor for class sunlabs.brazil.properties.SubstPropsHandler.SubstProps
 
SubstPropsHandler.Url - class sunlabs.brazil.properties.SubstPropsHandler.Url.
URL encode a String.
SubstPropsHandler.Url() - Constructor for class sunlabs.brazil.properties.SubstPropsHandler.Url
 
SubstPropsHandler() - Constructor for class sunlabs.brazil.properties.SubstPropsHandler
 
succeed() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
 
sunlabs.brazil.beanshell - package sunlabs.brazil.beanshell
Provide ways of integrating the Bean Shell scripting language into the Brazil project server.
sunlabs.brazil.email - package sunlabs.brazil.email
Provide ways of integrating Email services into the Brazil project server.
sunlabs.brazil.filter - package sunlabs.brazil.filter
Filters are a type of handler, used by the filterHandler that can modify content after it has been obtained by another handler.
sunlabs.brazil.groovy - package sunlabs.brazil.groovy
Provide ways of integrating the Groovy scripting language into the Brazil project server.
sunlabs.brazil.handler - package sunlabs.brazil.handler
This package contains a collection classes that implement the Handler interface for use with the Server package, along with several support classes.
sunlabs.brazil.javascript - package sunlabs.brazil.javascript
Provide ways of integrating the Javascript scripting language into the Brazil project server.
sunlabs.brazil.ldap - package sunlabs.brazil.ldap
Provide ways of integrating LDAP into the Brazil project server.
sunlabs.brazil.properties - package sunlabs.brazil.properties
Classes for defining and using "smart" properties with Brazil.
sunlabs.brazil.proxy - package sunlabs.brazil.proxy
Handlers, filters, and utilities for using the Brazil project framework as an HTTP proxy.
sunlabs.brazil.python - package sunlabs.brazil.python
Provide ways of integrating the Python scripting language into the Brazil project server.
sunlabs.brazil.server - package sunlabs.brazil.server
Generic http protocol stack, essential handlers and drivers.
sunlabs.brazil.servlet - package sunlabs.brazil.servlet
Run a Brazil application as a Servlet.
sunlabs.brazil.session - package sunlabs.brazil.session
A generic, extensible mechanism for managing session state.
sunlabs.brazil.sql - package sunlabs.brazil.sql
Provide ways of integrating the SQL database query language into the Brazil project server.
sunlabs.brazil.ssl - package sunlabs.brazil.ssl
Provide ways of integrating SSL into the Brazil project server.
sunlabs.brazil.sunlabs - package sunlabs.brazil.sunlabs
Experimental features that are used in the deployment of internal Brazil applications, but not considered part of the standard release.
sunlabs.brazil.tcl - package sunlabs.brazil.tcl
Provide ways of integrating the TCL scripting language into the Brazil project server.
sunlabs.brazil.template - package sunlabs.brazil.template
Template classes for use with TemplateHandler or TemplateFilter for filtering HTML and XML content.
sunlabs.brazil.util - package sunlabs.brazil.util
Utility classes that are generically useful in Java language programs.
sunlabs.brazil.util.http - package sunlabs.brazil.util.http
Utility classes for dealing with the HTTP protocol.
sunlabs.brazil.util.regexp - package sunlabs.brazil.util.regexp
This package contains a converted-to-Java-language version of Henry Spencer's regular expression package contained in TCL version 8.0.
sunlabs.brazil.velocity - package sunlabs.brazil.velocity
Integrates the Velocity template engine with the Brazil project server.
SupplyHandler - class sunlabs.brazil.handler.SupplyHandler.
Sample Handler for dispatching different users to different url's based on a special http authentication header.
SupplyHandler() - Constructor for class sunlabs.brazil.handler.SupplyHandler
 

T

TAG - Static variable in class sunlabs.brazil.util.LexML
The value returned by getType for tag tokens
tag_a(RewriteContext) - Method in class sunlabs.brazil.template.ChangedTemplate
 
tag_abort(RewriteContext) - Method in class sunlabs.brazil.template.BSLTemplate
Handles the "abort" tag.
tag_addheader(RewriteContext) - Method in class sunlabs.brazil.template.AddHeaderTemplate
Process the special addheader tag.
tag_asterisk(RewriteContext) - Method in class sunlabs.brazil.sunlabs.AsteriskTemplate
 
tag_beanshell(RewriteContext) - Method in class sunlabs.brazil.beanshell.BeanShellServerTemplate
Processes the <beanshell> tag.
tag_body(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Grab the "body" attributes, and toss all output to this point.
tag_break(RewriteContext) - Method in class sunlabs.brazil.template.BSLTemplate
Handles the "break" tag.
tag_bsh(RewriteContext) - Method in class sunlabs.brazil.beanshell.BeanShellServerTemplate
Processes the <bsh> tag.
tag_changed(RewriteContext) - Method in class sunlabs.brazil.template.ChangedTemplate
 
tag_content(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
toss everything up to and including here, but turn on content accumulation.
tag_continue(RewriteContext) - Method in class sunlabs.brazil.template.BSLTemplate
Handles the "continue" tag.
tag_date(RewriteContext) - Method in class sunlabs.brazil.sunlabs.DateTemplate
 
tag_debug(RewriteContext) - Method in class sunlabs.brazil.template.DebugTemplate
 
tag_definemacro(RewriteContext) - Method in class sunlabs.brazil.template.MacroTemplate
Define a new macro.
tag_delay(RewriteContext) - Method in class sunlabs.brazil.sunlabs.DelayHandler
pause for "delay" ms
tag_dequeue(RewriteContext) - Method in class sunlabs.brazil.template.QueueTemplate
Remove an item from the queue, and generate the appropriate properties.
tag_digest(RewriteContext) - Method in class sunlabs.brazil.sunlabs.DigestTemplate
 
tag_email(RewriteContext) - Method in class sunlabs.brazil.email.EmailTemplate
Handles the <email> tag.
tag_enqueue(RewriteContext) - Method in class sunlabs.brazil.template.QueueTemplate
Add a text message onto a named queue.
tag_exec(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ExecTemplate
 
tag_extract(RewriteContext) - Method in class sunlabs.brazil.template.BSLTemplate
Handle the [experimental] "extract" tag.
tag_filelist(RewriteContext) - Method in class sunlabs.brazil.template.DirectoryTemplate
Turn on the directory calculator.
tag_folder(RewriteContext) - Method in class sunlabs.brazil.email.EmailTemplate
Handles the <folder> tag.
tag_forcetimeout(RewriteContext) - Method in class sunlabs.brazil.email.EmailTemplate
The <forcetimeout> tag will cause an immediate timeout of the connection to the email server.
tag_foreach(RewriteContext) - Method in class sunlabs.brazil.template.BSLTemplate
Handles the "foreach" tag.
tag_get(RewriteContext) - Method in class sunlabs.brazil.template.MultipartSetTemplate
 
tag_get(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
Replace the tag "get" with the value of the variable specified by the "name" attribute.
tag_groovy(RewriteContext) - Method in class sunlabs.brazil.groovy.GroovyServerTemplate
 
tag_h1(RewriteContext) - Method in class sunlabs.brazil.template.TOCTemplate
Add a name anchor to the H1 tag, so we can go there, and set the request properties:TOC.[anchor] to the text of the H1 tag.
tag_head(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
Don't do highlight inside the following sections
tag_highlight(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
The special entities highlight and nohighlight may be used to turn highlighting on or off in certain areas.
tag_if(RewriteContext) - Method in class sunlabs.brazil.template.BSLTemplate
Handles the "if" tag.
tag_img(RewriteContext) - Method in class sunlabs.brazil.template.NoImageTemplate
Convert the html tag img into text using the alt string
tag_import(RewriteContext) - Method in class sunlabs.brazil.template.MultipartSetTemplate
 
tag_import(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
Import all the data from the named namespace.
tag_include(RewriteContext) - Method in class sunlabs.brazil.sunlabs.IncludeTemplate
 
tag_include(RewriteContext) - Method in class sunlabs.brazil.template.IncludeTemplate
 
tag_input(RewriteContext) - Method in class sunlabs.brazil.template.FormClientTemplate
Look for , and replace the value with the entry in the previously saved client data.
tag_input(RewriteContext) - Method in class sunlabs.brazil.template.FormTemplate
Look for <input name=[x] value=[v]> and replace the value with the entry in the request properties.
tag_javascript(RewriteContext) - Method in class sunlabs.brazil.javascript.JavaScriptTemplate
Processes the <javascript> tag.
tag_ldap(RewriteContext) - Method in class sunlabs.brazil.ldap.LDAPTemplate
Process <ldap> tags.
tag_link(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Extract data out of link tags into the properties.
tag_list(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ListTemplate
Process the list tag.
tag_message(RewriteContext) - Method in class sunlabs.brazil.email.EmailTemplate
Handles the <message> tag.
tag_meta(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Extract data out of meta tags into the properties.
tag_modified(RewriteContext) - Method in class sunlabs.brazil.template.ModifiedTemplate
Set the content transformation modifiy time to NOW
tag_namespace(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
Set the default namespace for "set" and "import".
tag_nohighlight(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_option(RewriteContext) - Method in class sunlabs.brazil.template.FormTemplate
Look at the option tag, set the "selected" attribute as needed.
tag_param(RewriteContext) - Method in class sunlabs.brazil.handler.SMTPHandler
Add an additional email header.
tag_part(RewriteContext) - Method in class sunlabs.brazil.email.EmailTemplate
Handles the <part> tag.
tag_plain(RewriteContext) - Method in class sunlabs.brazil.sunlabs.PlainTemplate
 
tag_property(RewriteContext) - Method in class sunlabs.brazil.template.MultipartSetTemplate
 
tag_property(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
Convert the html tag "property" in to the request's property DEPRECATED - use "get"
tag_property(RewriteContext) - Method in class sunlabs.brazil.template.FormClientTemplate
Convert the html tag "property" in to the request's property.
tag_property(RewriteContext) - Method in class sunlabs.brazil.template.PropsTemplate
Convert the html tag "property" in to the request's property
tag_python(RewriteContext) - Method in class sunlabs.brazil.python.PythonServerTemplate
Processes the <python> tag.
tag_queueinfo(RewriteContext) - Method in class sunlabs.brazil.template.QueueTemplate
Return info about the Q, and optionally clear it.
tag_remotehost(RewriteContext) - Method in class sunlabs.brazil.sunlabs.RemoteHostTemplate
 
tag_script(RewriteContext) - Method in class sunlabs.brazil.template.ScriptEvalTemplate
 
tag_script(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_script(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Append all "script" code while in the head section.
tag_select(RewriteContext) - Method in class sunlabs.brazil.template.FormTemplate
Remember the variable name for the next group of option tags.
tag_sendmail(RewriteContext) - Method in class sunlabs.brazil.email.EmailTemplate
Handles the <sendmail> tag.
tag_sendmail(RewriteContext) - Method in class sunlabs.brazil.handler.SMTPHandler
set-up an email message for sending.
tag_server(RewriteContext) - Method in class sunlabs.brazil.beanshell.BeanShellServerTemplate
Processes the <server> tag.
tag_server(RewriteContext) - Method in class sunlabs.brazil.javascript.JavaScriptTemplate
Processes the <server> tag.
tag_server(RewriteContext) - Method in class sunlabs.brazil.python.PythonServerTemplate
Processes the <server> tag.
tag_server(RewriteContext) - Method in class sunlabs.brazil.tcl.TclServerTemplate
Processes the <server> tag.
tag_server(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_set(RewriteContext) - Method in class sunlabs.brazil.template.MultipartSetTemplate
 
tag_set(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
Set the value of a variable.
tag_slash_body(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
If no content tags are present, use the entire "body" instead.
tag_slash_changed(RewriteContext) - Method in class sunlabs.brazil.template.ChangedTemplate
 
tag_slash_content(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Save the content gathered so far, and turn off content accumulation.
tag_slash_head(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_slash_head(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Mark end of head section.
tag_slash_highlight(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_slash_list(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ListTemplate
remove the most recent list from the current scope.
tag_slash_namespace(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
Clear the default namespace for "set" and "import".
tag_slash_nohighlight(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_slash_script(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_slash_select(RewriteContext) - Method in class sunlabs.brazil.template.FormTemplate
Forget the variable name for the next group of option tags
tag_slash_sendmail(RewriteContext) - Method in class sunlabs.brazil.email.EmailTemplate
Handles the </sendmail> tag.
tag_slash_sendmail(RewriteContext) - Method in class sunlabs.brazil.handler.SMTPHandler
If we haven't sent the mail yet - send it.
tag_slash_server(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_slash_snarf(RewriteContext) - Method in class sunlabs.brazil.sunlabs.SnarfTemplate
Save the content gathered so far.
tag_slash_sql(RewriteContext) - Method in class sunlabs.brazil.sql.SqlTemplate
 
tag_slash_style(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_slash_tag(RewriteContext) - Method in class sunlabs.brazil.template.MultipartSetTemplate
 
tag_slash_tag(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
Insert a literal ">"
tag_slash_tag(RewriteContext) - Method in class sunlabs.brazil.template.FormClientTemplate
 
tag_slash_tag(RewriteContext) - Method in class sunlabs.brazil.template.PropsTemplate
Insert a literal ">"
tag_slash_title(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Gather up the title - no tags allowed between title ....
tag_snarf(RewriteContext) - Method in class sunlabs.brazil.sunlabs.SnarfTemplate
Mark the current location in the document.
tag_source(RewriteContext) - Method in class sunlabs.brazil.sunlabs.SourceTemplate
 
tag_sql(RewriteContext) - Method in class sunlabs.brazil.sql.SqlTemplate
Replace the SQL query with the appropriate request properties.
tag_style(RewriteContext) - Method in class sunlabs.brazil.template.ScriptEvalTemplate
 
tag_style(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_style(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Append all "style" code while in the head section.
tag_subst(RewriteContext) - Method in class sunlabs.brazil.template.FormClientTemplate
Tag to do substitution of previously uploaded data.
tag_tag(RewriteContext) - Method in class sunlabs.brazil.template.MultipartSetTemplate
 
tag_tag(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
Insert a literal "<".
tag_tag(RewriteContext) - Method in class sunlabs.brazil.template.FormClientTemplate
Using the current scheme, there is no easy way to substitute into a tag parameter.
tag_tag(RewriteContext) - Method in class sunlabs.brazil.template.PropsTemplate
Insert a literal "<".
tag_tcl(RewriteContext) - Method in class sunlabs.brazil.tcl.TclServerTemplate
Processes the <tcl> tag.
tag_template(RewriteContext) - Method in class sunlabs.brazil.template.TemplateTemplate
 
tag_title(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Toss everything up to and including this entity.
tag_xmltree(RewriteContext) - Method in class sunlabs.brazil.sunlabs.XmlTreeTemplate
 
tagCount() - Method in class sunlabs.brazil.handler.HtmlRewriter
Return count of tags seen so far
tagMap - Variable in class sunlabs.brazil.beanshell.BeanShellTemplate
 
tagMap - Variable in class sunlabs.brazil.handler.MapPage
Initialized to all tag/attribute pairs whose attribute values are considered for rewriting.
tagsProcessed() - Method in class sunlabs.brazil.template.TemplateRunner
Return the # of tags replaced in the previous call to "process".
tagsSeen() - Method in class sunlabs.brazil.template.TemplateRunner
Return the # of HTML tags seen in the previous call to "process".
tagsSeen() - Method in class sunlabs.brazil.template.RewriteContext
Return the number of HTML tags seen to this point.
TclFilter - class sunlabs.brazil.tcl.TclFilter.
Wrapper for writing FilterHandler filters in TCL.
TclFilter() - Constructor for class sunlabs.brazil.tcl.TclFilter
 
TclHandler - class sunlabs.brazil.tcl.TclHandler.
Handler for writing handlers in tcl.
TclHandler() - Constructor for class sunlabs.brazil.tcl.TclHandler
 
TclRePollHandler - class sunlabs.brazil.tcl.TclRePollHandler.
Post-process all "polled" properties with tcl code.
TclRePollHandler() - Constructor for class sunlabs.brazil.tcl.TclRePollHandler
 
TclServerTemplate - class sunlabs.brazil.tcl.TclServerTemplate.
The TclServerTemplate looks for each <server language="tcl"> (or <"tcl">) tag in an HTML page and treats the following data up to the next </server> tag as a Tcl script to evaluate.
TclServerTemplate() - Constructor for class sunlabs.brazil.tcl.TclServerTemplate
 
Template - class sunlabs.brazil.template.Template.
 
Template() - Constructor for class sunlabs.brazil.template.Template
 
TemplateFilter - class sunlabs.brazil.filter.TemplateFilter.
The TemplateFilter sends HTML content through an Html/XML parser to a set of Templates.
TemplateFilter() - Constructor for class sunlabs.brazil.filter.TemplateFilter
 
TemplateHandler - class sunlabs.brazil.template.TemplateHandler.
The TemplateHandler reads a template file from the document root, based on the URL, and passes the content through one or more template filters.
TemplateHandler() - Constructor for class sunlabs.brazil.template.TemplateHandler
 
TemplateInterface - interface sunlabs.brazil.template.TemplateInterface.
Interface for templates.
templatePrefix - Variable in class sunlabs.brazil.template.RewriteContext
This is the prefix defined by the invoker of a set of templates.
TemplateRunner - class sunlabs.brazil.template.TemplateRunner.
Class for processing html templates.
TemplateRunner(Server, String, String) - Constructor for class sunlabs.brazil.template.TemplateRunner
Process an HTML template with a template processing class.
TemplateTemplate - class sunlabs.brazil.template.TemplateTemplate.
Template class for processing markup through a sequence of template filters.
TemplateTemplate() - Constructor for class sunlabs.brazil.template.TemplateTemplate
 
TestRequest - class sunlabs.brazil.server.TestRequest.
Version of Request for testing purposes.
TestRequest(Server, String) - Constructor for class sunlabs.brazil.server.TestRequest
 
timeout - Variable in class sunlabs.brazil.server.Server
Time in milliseconds before this Server closes an idle socket or in-progress request.
timestamp - Variable in class sunlabs.brazil.template.QueueTemplate.QueueItem
 
timesUsed - Variable in class sunlabs.brazil.util.http.HttpSocket
 
title - Variable in class sunlabs.brazil.handler.LogHandler
 
title - Variable in class sunlabs.brazil.handler.DialogHandler
 
TOCTemplate - class sunlabs.brazil.template.TOCTemplate.
Template class for extracting table of contents information out of an html page by examining the "H1" tags, and setting request properties that can be used to build a table of contents.
TOCTemplate() - Constructor for class sunlabs.brazil.template.TOCTemplate
 
tokenCount() - Method in class sunlabs.brazil.handler.HtmlRewriter
Return count of tokens seen so far
toString() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
 
toString() - Method in class sunlabs.brazil.handler.HtmlRewriter
Returns the "new" rewritten HTML document.
toString() - Method in class sunlabs.brazil.handler.MatchString
print nicely
toString() - Method in class sunlabs.brazil.properties.SubstPropsHandler
 
toString() - Method in class sunlabs.brazil.properties.PropertiesList
Returns a String containing the System.identityHashCodes of this object, the wrapped object, and the preceding and succeding objects on the list of which this object is a member.
toString() - Method in class sunlabs.brazil.server.Request
Returns a string representation of this Request.
toString() - Method in class sunlabs.brazil.servlet.BServletServerSocket
Converts this socket to a String.
toString() - Method in class sunlabs.brazil.servlet.BServletSocket
Converts this socket to a String.
toString() - Method in class sunlabs.brazil.sunlabs.XmlTree
Print a tree
toString() - Method in class sunlabs.brazil.sunlabs.XmlTree.IllegalXmlException
 
toString() - Method in class sunlabs.brazil.sunlabs.XmlTree.DefaultNodeName
 
toString() - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
toString() - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
toString() - Method in class sunlabs.brazil.template.QueueTemplate.QueueItem
 
toString() - Method in class sunlabs.brazil.util.StringMap
Returns a string representation of this StringMap in the form of a set of entries, enclosed in braces and separated by the characters ", ".
toString() - Method in class sunlabs.brazil.util.http.HttpSocket
 
toString() - Method in class sunlabs.brazil.util.regexp.Regexp
Returns a string representation of this compiled regular expression.
toString(XmlTree.Node, StringBuffer, int) - Method in class sunlabs.brazil.sunlabs.XmlTree
 

U

unique() - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Remove all non unique elements of the list.
unsetRewriteState(int) - Method in class sunlabs.brazil.template.RewriteContext
Unset the given state of this RewriteContext.
url - Variable in class sunlabs.brazil.handler.PollHandler
 
url - Variable in class sunlabs.brazil.server.Request
The URL specified in the request, not including any "?" query string.
url - Variable in class sunlabs.brazil.util.http.HttpRequest
The URL used to construct this HttpRequest.
urlDecode(String) - Static method in class sunlabs.brazil.util.http.HttpUtil
Decodes a URL-encoded string by replacing all the "%XX" escape sequences in the string with the corresponding character.
urlEncode(String) - Static method in class sunlabs.brazil.util.http.HttpUtil
Maps a string to be used in a query or post into a form that is acceptable in an URL.
urlMap - Variable in class sunlabs.brazil.handler.MapPage
 
UrlMapFilter - class sunlabs.brazil.filter.UrlMapFilter.
Filter to Map url's from any proxied content.
UrlMapFilter() - Constructor for class sunlabs.brazil.filter.UrlMapFilter
 
UrlMapperHandler - class sunlabs.brazil.handler.UrlMapperHandler.
Handler for mapping or redirecting URLs.
UrlMapperHandler() - Constructor for class sunlabs.brazil.handler.UrlMapperHandler
 
UrlNavBarTemplate - class sunlabs.brazil.template.UrlNavBarTemplate.
Template class for dynamically generating a navigation bar by looking at portions of the url.
UrlNavBarTemplate() - Constructor for class sunlabs.brazil.template.UrlNavBarTemplate
 
urlPrefix - Variable in class sunlabs.brazil.proxy.HistoryFilter
 
urlPrefix - Variable in class sunlabs.brazil.server.FileHandler
 
urlPrefix - Variable in class sunlabs.brazil.server.ChainHandler
The URL prefix that must match for this handler to run
urlSep - Variable in class sunlabs.brazil.filter.SessionFilter
 
UrlSessionFilter - class sunlabs.brazil.filter.UrlSessionFilter.
Sample filter to use url's instead of cookies for sessions.
UrlSessionFilter() - Constructor for class sunlabs.brazil.filter.UrlSessionFilter
 
urlToPath(String) - Static method in class sunlabs.brazil.server.FileHandler
Helper function to convert an url into a pathname.
USE_PROXY - Static variable in class sunlabs.brazil.proxy.ProxyHandler
 
UseProxy - interface sunlabs.brazil.proxy.UseProxy.
This interface is used by the ProxyHandler class to decide whether to issue an HTTP request directly to the specified host, or to issue the request via an HTTP proxy.
useProxy(String, int) - Method in interface sunlabs.brazil.proxy.UseProxy
Determines if the user can issue a direct or proxy request to the specified host and port.

V

value - Variable in class sunlabs.brazil.handler.SimpleSessionHandler
 
values() - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Hashtable object.
VelocityFilter - class sunlabs.brazil.velocity.VelocityFilter.
A filter for processing markup that is a Velocity template.
VelocityFilter.Vrequest - class sunlabs.brazil.velocity.VelocityFilter.Vrequest.
A helper class for Velocity that provides read only access to the public fields of the Request object.
VelocityFilter.Vrequest(Request) - Constructor for class sunlabs.brazil.velocity.VelocityFilter.Vrequest
 
VelocityFilter.Vserver - class sunlabs.brazil.velocity.VelocityFilter.Vserver.
A helper class for Velocity that provides read only access to the public fields of the Server object.
VelocityFilter.Vserver(Server) - Constructor for class sunlabs.brazil.velocity.VelocityFilter.Vserver
 
VelocityFilter() - Constructor for class sunlabs.brazil.velocity.VelocityFilter
 
version - Variable in class sunlabs.brazil.server.Request
Derived from Request.protocol, the version of the HTTP protocol used for this request.
version - Variable in class sunlabs.brazil.util.http.HttpRequest
The HTTP version string.
VirtualHostHandler - class sunlabs.brazil.handler.VirtualHostHandler.
Handler for managing virtual hosts using the same server configuration.
VirtualHostHandler() - Constructor for class sunlabs.brazil.handler.VirtualHostHandler
 

W

wraps(Dictionary) - Method in class sunlabs.brazil.properties.PropertiesList
Find the first PropertiesList object on the list of which this object is a member that wraps the Dictionary parameter.
write(byte) - Method in class sunlabs.brazil.server.Request.HttpOutputStream
 
write(byte[], int, int) - Method in class sunlabs.brazil.server.Request.HttpOutputStream
 
writeBytes(String) - Method in class sunlabs.brazil.server.Request.HttpOutputStream
 

X

XmlTree - class sunlabs.brazil.sunlabs.XmlTree.
Create a tree representation of an xml file whose parts may be referenced as a dictionary.
XmlTree.DefaultNodeName - class sunlabs.brazil.sunlabs.XmlTree.DefaultNodeName.
The node is named by the specified attribute.
XmlTree.DefaultNodeName() - Constructor for class sunlabs.brazil.sunlabs.XmlTree.DefaultNodeName
 
XmlTree.DefaultNodeName(String, String) - Constructor for class sunlabs.brazil.sunlabs.XmlTree.DefaultNodeName
 
XmlTree.IllegalXmlException - exception sunlabs.brazil.sunlabs.XmlTree.IllegalXmlException.
Do some more reasonable error handling.
XmlTree.IllegalXmlException(String) - Constructor for class sunlabs.brazil.sunlabs.XmlTree.IllegalXmlException
 
XmlTree.Node - class sunlabs.brazil.sunlabs.XmlTree.Node.
This describes a node of the XML tree
XmlTree.Node(String, boolean, StringMap, XmlTree.Node, int, int) - Constructor for class sunlabs.brazil.sunlabs.XmlTree.Node
 
XmlTree.NodeName - interface sunlabs.brazil.sunlabs.XmlTree.NodeName.
 
XmlTree.XmlErrorInfo - class sunlabs.brazil.sunlabs.XmlTree.XmlErrorInfo.
 
XmlTree.XmlErrorInfo(int, String, int, String) - Constructor for class sunlabs.brazil.sunlabs.XmlTree.XmlErrorInfo
 
XmlTree() - Constructor for class sunlabs.brazil.sunlabs.XmlTree
Make an empty tree.
XmlTree(String) - Constructor for class sunlabs.brazil.sunlabs.XmlTree
Given an XML string, build the tree.
XmlTreeTemplate - class sunlabs.brazil.sunlabs.XmlTreeTemplate.
Manage a tree representation of an XML document.
XmlTreeTemplate() - Constructor for class sunlabs.brazil.sunlabs.XmlTreeTemplate
 

A B C D E F G H I J K L M N O P Q R S T U V W X
Version 2.1, Generated 12/30/04
Copyright (c) 2001-2004, Sun Microsystems.