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 in sunlabs.brazil.handler
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 exception sunlabs.brazil.sunlabs.XmlTree.IllegalXmlException
 
addEvent(String, String, String, String, String) - Static method in class sunlabs.brazil.asterisk.AsteriskHandler
Java access to adding event registrations.
addEvent(String, String, String, String, String) - Method in class sunlabs.brazil.asterisk.AsteriskHandler.Events
Add an event to the current set of events.
addHeader(String, String) - Method in class sunlabs.brazil.server.Request
Adds a response header to the HTTP response.
addHeader(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 in sunlabs.brazil.template
Template class for adding arbitrary mime headers to a reply.
AddHeaderTemplate() - Constructor for class sunlabs.brazil.template.AddHeaderTemplate
 
addItem(String, String) - Method in class sunlabs.brazil.handler.UrlMapperHandler.MapProperties
 
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
addQ2Event(String, String, String, String, String) - Method in class sunlabs.brazil.asterisk.AsteriskHandler.EventItem
Add a new queue to an existing event.
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.
addTag(String, String) - Method in class sunlabs.brazil.util.http.MapHtmlUrl
Add a tag/attribute pair to be mapped.
admin - Variable in class sunlabs.brazil.proxy.CookieFilter
 
admin - Variable in class sunlabs.brazil.proxy.HistoryFilter
 
AfterTemplate - Class in sunlabs.brazil.sunlabs
Template for running markup after a while.
AfterTemplate() - Constructor for class sunlabs.brazil.sunlabs.AfterTemplate
 
AllowGtTemplate - Class in sunlabs.brazil.template
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
append(StringMap, boolean) - Method in class sunlabs.brazil.util.StringMap
Append another Stringmap onto this one.
appendCdata(String) - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
appendPool(HttpRequest.HttpSocketPool) - Static method in class sunlabs.brazil.util.http.HttpRequest
Append a socket pool to the end of the list.
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.
AsteriskAGIHandler - Class in sunlabs.brazil.asterisk
FAGI (fast AGI) handler and template for Asterisk.
AsteriskAGIHandler() - Constructor for class sunlabs.brazil.asterisk.AsteriskAGIHandler
 
AsteriskHandler - Class in sunlabs.brazil.asterisk
Connect to asterisk manager api.
AsteriskHandler() - Constructor for class sunlabs.brazil.asterisk.AsteriskHandler
 
AsteriskHandler.AmiStringMap - Class in sunlabs.brazil.asterisk
This class is built on top of the StringMap class and adds methods for reading Asterisk ManagerInterface replies.
AsteriskHandler.AmiStringMap() - Constructor for class sunlabs.brazil.asterisk.AsteriskHandler.AmiStringMap
 
AsteriskHandler.AmiStringMap(StringMap) - Constructor for class sunlabs.brazil.asterisk.AsteriskHandler.AmiStringMap
 
AsteriskHandler.EventItem - Class in sunlabs.brazil.asterisk
Keep track of an event listener entry.
AsteriskHandler.EventItem(String, String, String, String, String) - Constructor for class sunlabs.brazil.asterisk.AsteriskHandler.EventItem
 
AsteriskHandler.Events - Class in sunlabs.brazil.asterisk
Class to manage the set of events.
AsteriskHandler.Events() - Constructor for class sunlabs.brazil.asterisk.AsteriskHandler.Events
 
AUTH - Static variable in class sunlabs.brazil.proxy.ProxyHandler
 
auth - Variable in class sunlabs.brazil.proxy.ProxyHandler
The string to send as the value for the "Proxy-Authorization" HTTP header (if needed).
authenticate - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 
authorization - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 

B

Base64 - Class in sunlabs.brazil.util
Utility to base64 encode and decode a string.
BasicAuthHandler - Class in sunlabs.brazil.handler
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
 
BasicSSLHandler - Class in sunlabs.brazil.ssl
Start an "ssl" server.
BasicSSLHandler() - Constructor for class sunlabs.brazil.ssl.BasicSSLHandler
 
BeanShellHandler - Class in sunlabs.brazil.beanshell
The BeanShellHandler permits handlers to be written in "beanshell".
BeanShellHandler() - Constructor for class sunlabs.brazil.beanshell.BeanShellHandler
 
BeanShellServerTemplate - Class in sunlabs.brazil.beanshell
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 in sunlabs.brazil.beanshell
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 in sunlabs.brazil.servlet
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 in sunlabs.brazil.servlet
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 in sunlabs.brazil.servlet
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 in sunlabs.brazil.servlet
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 in sunlabs.brazil.servlet
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 in sunlabs.brazil.template
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 - Static variable in class sunlabs.brazil.handler.ChainSawHandler
 
bufsize - Variable in class sunlabs.brazil.server.Server
Default buffer size for copies to and from client sockets.
bytesWritten - Variable in class sunlabs.brazil.server.Request.HttpOutputStream
Count the number of bytes that are written to this stream

C

CacheManager - Class in sunlabs.brazil.session
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 in sunlabs.brazil.util
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
 
canChunk() - Method in class sunlabs.brazil.server.Request.HttpOutputStream
By default, http/1.1 output streams support chunking.
CgiHandler - Class in sunlabs.brazil.handler
Handler for implementing cgi/1.1 interface.
CgiHandler() - Constructor for class sunlabs.brazil.handler.CgiHandler
 
ChainHandler - Class in sunlabs.brazil.server
Allows multiple handlers to be invoked sequentially for a single HTTP request.
ChainHandler() - Constructor for class sunlabs.brazil.server.ChainHandler
 
ChainSawHandler - Class in sunlabs.brazil.handler
Variant of the chain handler for doing standard logging.
ChainSawHandler() - Constructor for class sunlabs.brazil.handler.ChainSawHandler
 
ChangedTemplate - Class in sunlabs.brazil.template
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.
child(int) - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
 
childCount() - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
 
childCount() - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
ChownHandler - Class in sunlabs.brazil.handler
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.
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.
clearPatterns() - Method in class sunlabs.brazil.handler.MapPage
Clear the pattern map.
ClockFormat - Class in sunlabs.brazil.util
This class implements the "strftime" style clock format command.
ClockFormat() - Constructor for class sunlabs.brazil.util.ClockFormat
 
ClockScan - Class in sunlabs.brazil.util
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.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.servlet.BServletServerSocket
Closes this socket.
close() - Method in class sunlabs.brazil.servlet.BServletSocket
Closes this socket.
close(String) - Method in class sunlabs.brazil.ssh.SshTemplate
 
close() - Method in class sunlabs.brazil.sunlabs.LogTemplate.Logger
 
close() - Method in class sunlabs.brazil.util.http.HttpRequest
Gracefully closes this HTTP request when user is done with it.
close() - Method in class sunlabs.brazil.util.http.HttpRequest.HttpSocket
 
close(HttpRequest.HttpSocket, boolean) - Method in interface sunlabs.brazil.util.http.HttpRequest.HttpSocketPool
Releases an HttpSocket to this pool when it is not in use any more.
close(HttpRequest.HttpSocket, boolean) - Method in class sunlabs.brazil.util.http.HttpRequest.SimpleHttpSocketPool
 
code - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 
commandify(String) - Method in class sunlabs.brazil.asterisk.AsteriskHandler.AmiStringMap
Turn an AmiMap into an asterisk command.
commandify(StringMap, String) - Static method in class sunlabs.brazil.asterisk.AsteriskHandler.AmiStringMap
 
comment(RewriteContext) - Method in class sunlabs.brazil.sunlabs.JSONTemplate
Remove all comments.
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.
COMMENT - Static variable in class sunlabs.brazil.util.LexML
The value returned by getType for comment tokens
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.
computeA2(String, String) - Static method in class sunlabs.brazil.handler.DigestAuthHandler
Compute the A2 parameter as per the RFC.
computeResponse(String, String, String, String, String, String) - Static method in class sunlabs.brazil.handler.DigestAuthHandler
Compute the expected client response attribute value.
ConfigFileHandler - Class in sunlabs.brazil.handler
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 in sunlabs.brazil.template
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
 
convert(RewriteContext, String, String) - Method in class sunlabs.brazil.sunlabs.JSONConverter
 
convert(RewriteContext, String, String) - Method in interface sunlabs.brazil.sunlabs.MiscTemplate.Convert
Convert a string to a string:
convertCSS(String) - Method in class sunlabs.brazil.handler.MapPage
Rewrite URL's in style sheets.
convertCSS(String) - Method in class sunlabs.brazil.util.http.MapHtmlUrl
Rewrite URL's in style sheets.
convertHtml(String) - Method in class sunlabs.brazil.handler.MapPage
Rewrite all the url's in this document.
convertHtml(String) - Method in class sunlabs.brazil.util.http.MapHtmlUrl
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 in sunlabs.brazil.proxy
The CookieFilter keeps a record of all the browser cookies associated with a given session.
CookieFilter() - Constructor for class sunlabs.brazil.proxy.CookieFilter
 
CookieFilter.CookieInfo - Class in sunlabs.brazil.proxy
Store information about a cookie
CookieFilter.CookieInfo(CookieFilter.Url, String) - Constructor for class sunlabs.brazil.proxy.CookieFilter.CookieInfo
Create a cookie object.
CookieFilter.CookieInfo(String, String) - Constructor for class sunlabs.brazil.proxy.CookieFilter.CookieInfo
 
CookieFilter.CookieInfo(String) - Constructor for class sunlabs.brazil.proxy.CookieFilter.CookieInfo
Generate the cookie info from the string representation This is called with the output of toString().
cookieName - Variable in class sunlabs.brazil.filter.SessionFilter
 
cookieName - Variable in class sunlabs.brazil.handler.CookieSessionHandler
 
CookieSessionHandler - Class in sunlabs.brazil.handler
Handler for creating browser sessions using cookies.
CookieSessionHandler() - Constructor for class sunlabs.brazil.handler.CookieSessionHandler
 
CopyContentFilter - Class in sunlabs.brazil.filter
Filter to save content (of an entire site) to a disk file.
CopyContentFilter() - Constructor for class sunlabs.brazil.filter.CopyContentFilter
 
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.
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.
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

data - Variable in class sunlabs.brazil.template.QueueTemplate.QueueItem
 
DataImageTemplate - Class in sunlabs.brazil.sunlabs
Template for including images inline, using data URL's.
DataImageTemplate() - Constructor for class sunlabs.brazil.sunlabs.DataImageTemplate
 
DataImageTemplate.Cache - Class in sunlabs.brazil.sunlabs
Keep a cache of filename/data pairs in LRU order.
DataImageTemplate.Cache(int) - Constructor for class sunlabs.brazil.sunlabs.DataImageTemplate.Cache
 
DateTemplate - Class in sunlabs.brazil.sunlabs
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 in sunlabs.brazil.template
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 in sunlabs.brazil.sunlabs
Template for removing all HTML comments from the markup.
DeCommentTemplate() - Constructor for class sunlabs.brazil.sunlabs.DeCommentTemplate
 
DeCommentTemplate - Class in sunlabs.brazil.template
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.
DEFAULT_CHARSET - Static variable in class sunlabs.brazil.util.http.HttpRequest
 
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.
DefaultFileHandler - Class in sunlabs.brazil.handler
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.
defaultPrefix - Static variable in class sunlabs.brazil.util.MatchString
The default URL prefix.
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.sunlabs.TitleTemplate
 
defaultTag(RewriteContext) - Method in class sunlabs.brazil.template.MacroTemplate
Run the macro, push formal parameters on the stack first.
DeferredHandler - Class in sunlabs.brazil.handler
Wrap another handler, deferring its initialization until request time.
DeferredHandler() - Constructor for class sunlabs.brazil.handler.DeferredHandler
 
deflatten(Properties, String, String) - Static method in class sunlabs.brazil.json.JSONTemplate
Un-Flatten a subset of a properties object into JSON object.
DelayHandler - Class in sunlabs.brazil.sunlabs
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.
delTag(String) - Method in class sunlabs.brazil.util.http.MapHtmlUrl
Remove a tag for mapping
dequeue(String, int) - Static method in class sunlabs.brazil.template.QueueTemplate
Program access to the Q.
deQuote(String) - Static method in class sunlabs.brazil.util.Format
Remove surrounding quotes (" or ') from a string.
DerbyServer - Class in sunlabs.brazil.derby
Template for starting derby in network server mode.
DerbyServer() - Constructor for class sunlabs.brazil.derby.DerbyServer
 
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.
destroyQueue(String) - Static method in class sunlabs.brazil.template.QueueTemplate
Remove a Queue, freeing its resources.
DialogHandler - Class in sunlabs.brazil.handler
Sample handler for popping up a dialog box on the server.
DialogHandler() - Constructor for class sunlabs.brazil.handler.DialogHandler
 
dictionary(String) - Method in class sunlabs.brazil.sunlabs.ScanHtml
 
DigestAuthHandler - Class in sunlabs.brazil.handler
Perform digest authentication.
DigestAuthHandler() - Constructor for class sunlabs.brazil.handler.DigestAuthHandler
 
DigestTemplate - Class in sunlabs.brazil.sunlabs
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 in sunlabs.brazil.handler
This is a bare-bones handler for providing directory listings for web servers.
DirectoryHandler() - Constructor for class sunlabs.brazil.handler.DirectoryHandler
 
DirectoryTemplate - Class in sunlabs.brazil.template
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.
displayHeaders - Variable in class sunlabs.brazil.util.http.HttpRequest
 
doImport(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
See if a remembered namespace is actually in use, and import it.
done(RewriteContext) - Method in class sunlabs.brazil.asterisk.AsteriskAGIHandler
Close the socket connection.
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.json.JSONTemplate
 
done(RewriteContext) - Method in class sunlabs.brazil.sunlabs.DeCommentTemplate
 
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.sunlabs.FormHelpTemplate
 
done(RewriteContext) - Method in class sunlabs.brazil.sunlabs.LockTemplate
 
done(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ScanTemplate
 
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.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.FormTemplate
This is for debugging only !!
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.RedirectTemplate
adjust the response headers to reflect redirection, if supplied.
done(RewriteContext) - Method in class sunlabs.brazil.template.Template
Called after all tags have been processed, one final chance.
done(RewriteContext) - Method in interface sunlabs.brazil.template.TemplateInterface
Called after all tags have been processed, one final chance.
doSQL(Connection, String, String, int) - Method in class sunlabs.brazil.sql.SqlTemplate
 
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.
dumpHeaders(int, Request, MimeHeaders, boolean) - Static method in class sunlabs.brazil.proxy.ProxyHandler
Dump the headers on stderr
DynamicConfigHandler - Class in sunlabs.brazil.handler
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.ListTemplate.MyList
Return the actual list items.
elements() - Method in class sunlabs.brazil.sunlabs.ScanHtml.DictView
 
elements() - Method in class sunlabs.brazil.sunlabs.XmlTree
 
elements(XmlTree.Node, Vector) - Static method in class sunlabs.brazil.sunlabs.XmlTree
 
elements() - Method in class sunlabs.brazil.util.StringMap
Returns an enumeration of the values in this StringMap.
EmailTemplate - Class in sunlabs.brazil.email
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(String) - Static method in class sunlabs.brazil.util.Base64
base-64 encode a string
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
encoding - Variable in class sunlabs.brazil.filter.SessionFilter
 
enqueue(String, String, String, String, boolean, boolean) - Static method in class sunlabs.brazil.template.QueueTemplate
Deprecated.  
enqueue(String, String, Dictionary, boolean, boolean) - Static method in class sunlabs.brazil.template.QueueTemplate
Allow a message 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 exception sunlabs.brazil.sunlabs.XmlTree.IllegalXmlException
 
ExecFilter - Class in sunlabs.brazil.filter
Filter to Run all content through an external process filter.
ExecFilter() - Constructor for class sunlabs.brazil.filter.ExecFilter
 
ExecTemplate - Class in sunlabs.brazil.sunlabs
template to exec a program, and return its arguments into request properties .
ExecTemplate() - Constructor for class sunlabs.brazil.sunlabs.ExecTemplate
 
EXIFTemplate - Class in sunlabs.brazil.exif
Template for extracting EXIF data out of JPEG image files.
EXIFTemplate() - Constructor for class sunlabs.brazil.exif.EXIFTemplate
 
exitOnError - Variable in class sunlabs.brazil.server.ChainHandler
A flag to require the successfull initialization of all handlers.
ExpContentTemplate - Class in sunlabs.brazil.sunlabs
Allow extracted content to be filtered through regular expressions.
ExpContentTemplate() - Constructor for class sunlabs.brazil.sunlabs.ExpContentTemplate
 
ExprProps - Class in sunlabs.brazil.properties
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 in sunlabs.brazil.properties
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
 
expTime(String) - Static method in class sunlabs.brazil.proxy.CookieFilter.CookieInfo
 
extract(Properties, String) - Method in class sunlabs.brazil.handler.RePollHandler.Extract
Do the extraction
extract() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
 
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
 
FastCgiHandler - Class in sunlabs.brazil.sunlabs
Handler for implementing Fast cgi/1.1 interface.
FastCgiHandler() - Constructor for class sunlabs.brazil.sunlabs.FastCgiHandler
 
FetchTemplate - Class in sunlabs.brazil.sunlabs
Template class for substituting html pages into an html page.
FetchTemplate() - Constructor for class sunlabs.brazil.sunlabs.FetchTemplate
 
file - Variable in class sunlabs.brazil.handler.LogHandler
 
file2path(Properties, String, String) - Static method in class sunlabs.brazil.template.SetTemplate
Convert a file name into a file object.
FileHandler - Class in sunlabs.brazil.server
Standard handler for fetching static files.
FileHandler() - Constructor for class sunlabs.brazil.server.FileHandler
 
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.handler.RePollHandler
Fill the properties by extracting fields from the response.
fillProps(Properties, HttpURLConnection) - Method in class sunlabs.brazil.ssl.SslPollHandler
Fill the properties from the Url Connection
fillProps(Properties, HttpRequest) - Method in class sunlabs.brazil.tcl.TclRePollHandler
Fill the properties from the input stream
filter(Request, MimeHeaders, byte[]) - Method in class sunlabs.brazil.email.EmailTemplate
 
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.ExecFilter
Run content through filter.
Filter - Interface in sunlabs.brazil.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(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.filter.HighlightFilter
 
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.PhoneFilter
 
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 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.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.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.UrlMapFilter
Rewrite all absolute links, if there are any left
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.proxy.CookieFilter
Returns the original content, since this filter does not change content; it changes the headers.
filter - Variable in class sunlabs.brazil.proxy.HistoryFilter
 
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.tcl.TclFilter
 
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.velocity.VelocityFilter
Execute the BeanShell script if it exists and then process the content as a Velocity template.
FilterHandler - Class in sunlabs.brazil.filter
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
 
find(String) - Method in class sunlabs.brazil.sunlabs.ScanHtml
Return a unique String name for a node
find(StringTokenizer) - Method in class sunlabs.brazil.sunlabs.ScanHtml
Return a unique String name for a node
flatten(String, String, Properties, Object) - Static method in class sunlabs.brazil.json.JSONTemplate
.
FLUSH - Static variable in class sunlabs.brazil.handler.ChainSawHandler
 
flush - Variable in class sunlabs.brazil.handler.LogHandler
 
format - Variable in class sunlabs.brazil.handler.LogHandler
 
format(int, String, String) - Static method in class sunlabs.brazil.util.ClockFormat
Formats a time value based on seconds into a human readable string.
Format - Class in sunlabs.brazil.util
Format a string by substituting values into it from a properties object.
Format() - Constructor for class sunlabs.brazil.util.Format
 
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 in sunlabs.brazil.template
[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
 
FormHelpTemplate - Class in sunlabs.brazil.sunlabs
Template class for adding field help to the FormTemplate.
FormHelpTemplate() - Constructor for class sunlabs.brazil.sunlabs.FormHelpTemplate
 
FormTemplate - Class in sunlabs.brazil.template
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
 
fromAlpha(String) - Static method in class sunlabs.brazil.sunlabs.MiscTemplate
Convert an alpha-only string to an integer.

G

GenericProxyHandler - Class in sunlabs.brazil.handler
Handler for implementing a virtual web site.
GenericProxyHandler() - Constructor for class sunlabs.brazil.handler.GenericProxyHandler
 
GenericProxyHandler.Cookie - Class in sunlabs.brazil.handler
 
GenericProxyHandler.Cookie(String) - Constructor for class sunlabs.brazil.handler.GenericProxyHandler.Cookie
Turn cookie parameters into a String Map
genResponseHeader(String, String, String, String, String, String, String) - Static method in class sunlabs.brazil.handler.DigestAuthHandler
Given the "WWW-Authenticate" header value and additional client info, generate the value of the "Authorization" header.
get(String) - Method in class sunlabs.brazil.handler.GenericProxyHandler.Cookie
 
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(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.properties.SubstPropsHandler.SubstProps
If the key doesn't exist, but the "derived" key and value do exist, then return the substituted value
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.sunlabs.DataImageTemplate.Cache
Get the item out of the cache, move to front, if it exists.
get(Object) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
get(Object) - Method in class sunlabs.brazil.sunlabs.ScanHtml.DictView
Attempt to flatten a node (or nodes) of a tree.
get(Object) - Method in class sunlabs.brazil.sunlabs.XmlTree
Given a node description, return the value, if any.
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(String) - Method in class sunlabs.brazil.template.RewriteContext
overwrite "get" to automatically do ${...} substitutions The default is "true".
get(String, boolean) - Method in class sunlabs.brazil.template.RewriteContext
Get an attribute value, and optionally perform ${...} substitutions.
get(String, String) - Method in class sunlabs.brazil.template.RewriteContext
Get a tag attribute, with a default value.
get(String, int, boolean) - Method in interface sunlabs.brazil.util.http.HttpRequest.HttpSocketPool
Returns an HttpSocket that can be used to communicate with the specified port on the named host.
get(String, int, boolean) - Method in class sunlabs.brazil.util.http.HttpRequest.SimpleHttpSocketPool
Get a potentially "pooled" target object.
get(int) - Method in class sunlabs.brazil.util.StringMap
Returns the value at the specified index.
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, String) - Method in class sunlabs.brazil.util.StringMap
Returns the value that the specified case-insensitive key maps to in this StringMap.
get(Object) - Method in class sunlabs.brazil.util.StringMap
Performs the same job as get(String).
get(String) - Method in class sunlabs.brazil.velocity.VelocityFilter.Vrequest
 
get(String) - Method in class sunlabs.brazil.velocity.VelocityFilter.Vserver
 
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.ScanHtml.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.ScanHtml.Node
Return the n'th child 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(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.
getContent() - Method in class sunlabs.brazil.util.http.HttpRequest
Return 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.
getCreated() - Method in class sunlabs.brazil.template.QueueTemplate.Queue
Return creation time (ms since epoch).
GetDate(String, Date, String) - Static method in class sunlabs.brazil.util.ClockScan
Scan a human readable date string and construct a Date.
getDefaultPort() - Method in interface sunlabs.brazil.util.http.HttpRequest.HttpSocketPool
Return the default port (this doesn't belong here)
getDefaultPort() - Method in class sunlabs.brazil.util.http.HttpRequest.SimpleHttpSocketPool
 
getEncoding() - Method in class sunlabs.brazil.util.http.HttpRequest
Get the ISO character encoding (if any) associated with this text stream, or the default http charset if none found.
getEncoding(MimeHeaders) - Static 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 exception sunlabs.brazil.sunlabs.XmlTree.IllegalXmlException
 
getExpires() - Method in class sunlabs.brazil.template.QueueTemplate.Queue
Get the expiration period of the Queue (in ms).
getFile(String) - Static method in class sunlabs.brazil.sunlabs.XmlTree
 
getFile(InputStream) - 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.
getFirst() - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
return the first sibling
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.
getLast() - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
return the last sibling
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.
getMap() - Method in class sunlabs.brazil.handler.HtmlRewriter
Return a copy of the StringMap of attributes.
getMap() - Method in class sunlabs.brazil.util.http.MapHtmlUrl
Return our mapper instance
getMapper() - Method in class sunlabs.brazil.handler.GenericProxyHandler
Return a reference to our page mapper, to allow futzing with the page maps from the outside
getMax() - Method in class sunlabs.brazil.template.QueueTemplate.Queue
Maximum Q size
getMimeType(String, Properties, String) - Static method in class sunlabs.brazil.server.FileHandler
Get the mime type based on the suffix of a String.
getMimeType(String, Properties, String, boolean) - Static method in class sunlabs.brazil.server.FileHandler
If "strict" is set, only return types that specifically match properties with this handlers prefix.
getName() - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
get node name
getName(XmlTree.Node) - Method in class sunlabs.brazil.sunlabs.XmlTree.DefaultNodeName
 
getName(XmlTree.Node) - Method in interface sunlabs.brazil.sunlabs.XmlTree.NodeName
 
getNamespaceProperties() - Method in class sunlabs.brazil.template.RewriteContext
Get the proper properties table based on the "namespace" attribute.
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.
getNext() - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
return the next sibling (if any)
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.ScanHtml.Node
Return my parent.
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.
getPrior() - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
return the previous sibling (if any)
getProperty(String, String) - Method in class sunlabs.brazil.handler.UrlMapperHandler.MapProperties
 
getProperty(String) - Method in class sunlabs.brazil.handler.UrlMapperHandler.MapProperties
 
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.
getProperty(String) - Method in class sunlabs.brazil.properties.SubstPropsHandler.SubstProps
 
getProperty(String) - Method in class sunlabs.brazil.sunlabs.MiscTemplate.GlobProperties
 
getProperty(String) - Method in class sunlabs.brazil.sunlabs.ValidateTemplate.GlobProperties
 
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.
getProtocol() - Method in class sunlabs.brazil.server.Request
Return the protocol for this request.
getQ(String, boolean) - Static method in class sunlabs.brazil.template.QueueTemplate
Return a Q.
getQ(String) - Static method in class sunlabs.brazil.template.QueueTemplate
 
getQueryData(Hashtable) - Method in class sunlabs.brazil.server.Request
Retrieves the query data as a hashtable.
getQueryData() - Method in class sunlabs.brazil.server.Request
Retrieves the query data as a hashtable.
getRe(String) - Static method in class sunlabs.brazil.filter.PhoneFilter
Turn a "phone" regular expression into a real RE.
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.
getRequest(URL) - Static method in class sunlabs.brazil.util.http.HttpRequest
Create a HttpRequest object.
getRequest(String) - Static method in class sunlabs.brazil.util.http.HttpRequest
 
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
getRoot() - Method in class sunlabs.brazil.sunlabs.ScanHtml
 
getRoot() - Method in class sunlabs.brazil.sunlabs.XmlTree
 
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.ScanHtml
 
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.sunlabs.ScanHtml.Node
get entire token (wrong!)
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.
getTree() - Method in class sunlabs.brazil.sunlabs.ScanHtml.DictView
 
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 in sunlabs.brazil.util
Glob-style string matching and substring extraction.
GroovyServerTemplate - Class in sunlabs.brazil.groovy
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 in sunlabs.brazil.util
Utility to generate GUID's (Globally Unique Identifiers).
Guid() - Constructor for class sunlabs.brazil.util.Guid
 

H

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 - Interface in sunlabs.brazil.server
The interface for writing HTTP handlers.
handler - Variable in class sunlabs.brazil.server.Server
 
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.
HighlightFilter - Class in sunlabs.brazil.filter
Rewrite text between markup (and not in links) based on re sub's.
HighlightFilter() - Constructor for class sunlabs.brazil.filter.HighlightFilter
 
HighlightTemplate - Class in sunlabs.brazil.template
Template class for highlighting text that matches a regular expression.
HighlightTemplate() - Constructor for class sunlabs.brazil.template.HighlightTemplate
 
HistoryFilter - Class in sunlabs.brazil.proxy
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 in sunlabs.brazil.handler
Handler for converting ~username queries.
HomeDirHandler() - Constructor for class sunlabs.brazil.handler.HomeDirHandler
 
HOST - Static variable in class sunlabs.brazil.handler.GenericProxyHandler
Handler configuration property host.
host - Variable in class sunlabs.brazil.util.http.HttpRequest
The host extracted from the URL used to construct this HttpRequest.
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 in sunlabs.brazil.handler
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 in sunlabs.brazil.util.http
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 in sunlabs.brazil.util.http
Sends an HTTP request to some target host and gets the answer back.
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.
HttpRequest(String) - Constructor for class sunlabs.brazil.util.http.HttpRequest
Deprecated. Use the static getRequest method instead
HttpRequest.HttpSocket - Class in sunlabs.brazil.util.http
This class is used as the bag of information kept about a open, idle socket.
HttpRequest.HttpSocket(String, int, Socket) - Constructor for class sunlabs.brazil.util.http.HttpRequest.HttpSocket
 
HttpRequest.HttpSocketPool - Interface in sunlabs.brazil.util.http
This interface represents a cache of idle sockets.
HttpRequest.SimpleHttpSocketPool - Class in sunlabs.brazil.util.http
 
HttpRequest.SimpleHttpSocketPool(int, int, int) - Constructor for class sunlabs.brazil.util.http.HttpRequest.SimpleHttpSocketPool
Create a socket pool.
HttpRequest.SimpleHttpSocketPool() - Constructor for class sunlabs.brazil.util.http.HttpRequest.SimpleHttpSocketPool
Use the default pool settings
HttpRequest.TimeoutException - Exception in sunlabs.brazil.util.http
Timeout occured waiting for a socket response
HttpRequest.TimeoutException(String) - Constructor for exception sunlabs.brazil.util.http.HttpRequest.TimeoutException
 
HttpUtil - Class in sunlabs.brazil.util.http
The HttpUtil class contains methods for performing simple HTTP operations.

I

id() - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
Return a unique name for me in the tree.
ID_KEY - Static variable in class sunlabs.brazil.handler.RolesHandler
Handler configuration property SessionID.
ident - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 
ident - Variable in class sunlabs.brazil.handler.CookieSessionHandler
 
ignoreUnknownTags(boolean) - Method in class sunlabs.brazil.sunlabs.XmlTree
set unknown tag disposition
IMTemplate - Class in sunlabs.brazil.xmpp
XMPP client template.
IMTemplate() - Constructor for class sunlabs.brazil.xmpp.IMTemplate
 
IMTemplate.MessageRelay - Class in sunlabs.brazil.xmpp
Listen for XMP packets, turn the results into name/value pairs, and forward the "map" to the proper Queue.
IMTemplate.MessageRelay(XMPPConnection, String, String) - Constructor for class sunlabs.brazil.xmpp.IMTemplate.MessageRelay
 
IncludeTemplate - Class in sunlabs.brazil.template
Convert the html tag "include" in to text for an included html page.
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(Server, String) - Method in class sunlabs.brazil.asterisk.AsteriskAGIHandler
Start a Listening socket thread, and wait for AGI connections.
init(RewriteContext) - Method in class sunlabs.brazil.asterisk.AsteriskAGIHandler
Open the socket's streams at top of page.
init(Server, String) - Method in class sunlabs.brazil.asterisk.AsteriskHandler
Remember the host, port, id, and password for an asterisk manager connection.
init(Server, String) - Method in class sunlabs.brazil.beanshell.BeanShellHandler
 
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(Server, String) - Method in class sunlabs.brazil.derby.DerbyServer
 
init(RewriteContext) - Method in class sunlabs.brazil.email.EmailTemplate
 
init(Server, String) - Method in class sunlabs.brazil.email.EmailTemplate
 
init(Server, String) - Method in class sunlabs.brazil.filter.CopyContentFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.ExecFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.FilterHandler
Start the handler and filter classes.
init(Server, String) - Method in class sunlabs.brazil.filter.HighlightFilter
 
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.PhoneFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.PlainFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.ReFilter
 
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.TemplateFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.UrlMapFilter
 
init(Server, String) - Method in class sunlabs.brazil.filter.UrlSessionFilter
 
init(RewriteContext) - Method in class sunlabs.brazil.groovy.GroovyServerTemplate
Initialize the groovy interperter (1st time only) and set the current request object.
init(Server, String) - Method in class sunlabs.brazil.handler.AclSwitchHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.BasicAuthHandler
Initializes this handler.
init(Server, String) - Method in class sunlabs.brazil.handler.CgiHandler
One time initialization.
init(Server, String) - Method in class sunlabs.brazil.handler.ChainSawHandler
 
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.ConfigFileHandler
Make sure default properties exist before starting this handler, or that "match" is specified".
init(Server, String) - Method in class sunlabs.brazil.handler.CookieSessionHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.DefaultFileHandler
Remember our prefix in the properties table.
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.DialogHandler
Do one time initialization.
init() - Method in class sunlabs.brazil.handler.DialogHandler
Machine generated code.
init(Server, String) - Method in class sunlabs.brazil.handler.DigestAuthHandler
 
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.DynamicConfigHandler
Initializes this DynamicConfigHandler by loading the initial handler.
init(Server, String) - Method in class sunlabs.brazil.handler.GenericProxyHandler
Do one-time setup.
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.LogHandler
 
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.MultiProxyHandler
Initialize 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.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.PropertiesHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.ProxyPropertiesHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.PublishHandler
Start up the authentication handler.
init(Server, String) - Method in class sunlabs.brazil.handler.PushHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.ReflectHandler
Initialize the handler.
init(Server, String) - Method in class sunlabs.brazil.handler.RePollHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.ResourceHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.ResourceLimitHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.RestrictClientHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.RolesHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.SimpleSessionHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.SMTPHandler
 
init(RewriteContext) - Method in class sunlabs.brazil.handler.SMTPHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.SupplyHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.UrlMapperHandler
 
init(Server, String) - Method in class sunlabs.brazil.handler.VirtualHostHandler
 
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.json.JSONTemplate
 
init(Server, String) - Method in class sunlabs.brazil.properties.ExprPropsHandler
 
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.Html
 
init(Server, String) - Method in class sunlabs.brazil.properties.SubstPropsHandler
 
init(String, Properties) - Method in class sunlabs.brazil.properties.SubstPropsHandler.LowerCase
 
init(String, Properties) - Method in class sunlabs.brazil.properties.SubstPropsHandler.Resub
 
init(String, Properties) - Method in class sunlabs.brazil.properties.SubstPropsHandler.Url
 
init(Server, String) - Method in class sunlabs.brazil.proxy.CookieFilter
 
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.JunkBusterHandler
 
init(Server, String) - Method in class sunlabs.brazil.proxy.ProxyHandler
Do one-time setup.
init(RewriteContext) - Method in class sunlabs.brazil.python.PythonServerTemplate
 
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 class sunlabs.brazil.server.FileHandler
Initialize the file handler.
init(Server, String) - Method in interface sunlabs.brazil.server.Handler
Initializes the handler.
init() - Method in class sunlabs.brazil.server.Server
 
init(ServletConfig) - Method in class sunlabs.brazil.servlet.BrazilServlet
Called by the servlet container to place the servlet into service.
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.session.PropertiesCacheManager
 
init(RewriteContext) - Method in class sunlabs.brazil.sql.SqlTemplate
Gather up all the databases and their credentials.
init(Server, String) - Method in class sunlabs.brazil.ssl.BasicSSLHandler
 
init(Server, String) - Method in class sunlabs.brazil.ssl.SslPollHandler
Set up the initial configuration, and kick off a thread to periodically fetch the url.
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.DataImageTemplate
Initialize the cache (if any) on the first page load.
init(Server, String) - Method in class sunlabs.brazil.sunlabs.DelayHandler
 
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ExpContentTemplate
 
init(Server, String) - Method in class sunlabs.brazil.sunlabs.FastCgiHandler
Try to contact the server, issue a warning upon failure.
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.FormHelpTemplate
 
init(Server, String) - Method in class sunlabs.brazil.sunlabs.InitTemplatesHandler
 
init(Server, String) - Method in class sunlabs.brazil.sunlabs.InstallHttpsHandler
 
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ListTemplate
Clear any left-over lists.
init(String, int) - Method in class sunlabs.brazil.sunlabs.LogTemplate.Logger
 
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MapHrefTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.PlainTemplate
 
init(Server, String) - Method in class sunlabs.brazil.sunlabs.PutHandler
 
init(Server, String) - Method in class sunlabs.brazil.sunlabs.RestartHandler
 
init(Server, String) - Method in class sunlabs.brazil.sunlabs.RoundRobinSessionHandler
 
init(Server, String) - Method in class sunlabs.brazil.sunlabs.ScriptHandler
 
init(Server, String) - Method in class sunlabs.brazil.sunlabs.ScriptServerTemplate
Install as handler to insure required script engines are available before startin the server.
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ScriptServerTemplate
Make sure all markup between <interp>...</interp> is captured.
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.SnarfTemplate
Get the debug flag and reset page.
init(Server, String) - Method in class sunlabs.brazil.sunlabs.StunnelHandler
 
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.TitleTemplate
 
init(Server, String) - Method in class sunlabs.brazil.sunlabs.TrustMeHandler
 
init(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ValidateTemplate
 
init(Server, String) - Method in class sunlabs.brazil.sunlabs.WebMountHandler
Remember the mounts
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.tcl.TclRePollHandler
Create a tcl interp, extract the properties, and run the init script
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.BSLTemplate
 
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.ContentTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.template.DebugTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.template.DeCommentTemplate
 
init(Server, String) - Method in class sunlabs.brazil.template.DirectoryTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.template.DirectoryTemplate
Reset at each page
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.HighlightTemplate
This gets called at every page, at the beginning.
init(RewriteContext) - Method in class sunlabs.brazil.template.MacroTemplate
Read in the inital macros, if needed.
init(RewriteContext) - Method in class sunlabs.brazil.template.MultipartSetTemplate
 
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.PropsTemplate
This gets called at every page, at the beginning.
init(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
Chain the session-id properties into the request chain, if there are any.
init(Server, String) - Method in class sunlabs.brazil.template.SetTemplate
Get the 2 SessionManager keys, "sessionTable" and "session" (SessionID).
init(RewriteContext) - Method in class sunlabs.brazil.template.Template
Called before this template processes any tags.
init(Server, String) - Method in class sunlabs.brazil.template.TemplateHandler
 
init(RewriteContext) - Method in interface sunlabs.brazil.template.TemplateInterface
Called before this template processes any tags.
init(RewriteContext) - Method in class sunlabs.brazil.template.TOCTemplate
 
init(RewriteContext) - Method in class sunlabs.brazil.template.UrlNavBarTemplate
Compute a set of properties based on the URL
init(Hashtable) - Static method in class sunlabs.brazil.util.http.MapHtmlUrl
Create a hashtable containing all the standard tag/attribute pairs in HTML whose values are URL's.
init(Server, String) - Method in class sunlabs.brazil.velocity.VelocityFilter
 
init(RuntimeServices) - Method in class sunlabs.brazil.velocity.VelocityFilter
Velocity LogSystem interface implementation.
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.
InitTemplatesHandler - Class in sunlabs.brazil.sunlabs
Process a template file during server startup.
InitTemplatesHandler() - Constructor for class sunlabs.brazil.sunlabs.InitTemplatesHandler
 
insert(String, String) - Method in class sunlabs.brazil.sunlabs.DataImageTemplate.Cache
Put the item in the cache, move to front.
insert(String, String, int) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Insert a list before position n.
insert(ScanHtml, ScanHtml.Node, boolean, boolean) - Method in class sunlabs.brazil.sunlabs.ScanHtml
Insert another tree at specified node.
insert(ScanHtml.Node) - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
Insert this node at end of parent
insertAt(ScanHtml.Node, ScanHtml.Node, boolean) - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
XXX needs work - only (parent,null,true) is used.
InstallHttpsHandler - Class in sunlabs.brazil.sunlabs
Handler to add the "https" protocol to HttpRequest.
InstallHttpsHandler() - Constructor for class sunlabs.brazil.sunlabs.InstallHttpsHandler
 
interval - Variable in class sunlabs.brazil.handler.PollHandler
 
interval - Variable in class sunlabs.brazil.ssl.SslPollHandler
 
isCdata() - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
 
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.ListTemplate.MyList
 
isEmpty() - Method in class sunlabs.brazil.sunlabs.ScanHtml.DictView
 
isEmpty() - Method in class sunlabs.brazil.sunlabs.XmlTree
 
isEmpty() - Method in class sunlabs.brazil.util.StringMap
Tests if there are any elements in this StringMap.
isEquals(CookieFilter.CookieInfo) - Method in class sunlabs.brazil.proxy.CookieFilter.CookieInfo
See if cookies match
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.
isInitialized() - Method in class sunlabs.brazil.sunlabs.LogTemplate.Logger
 
isMatch(CookieFilter.Url) - Method in class sunlabs.brazil.proxy.CookieFilter.CookieInfo
See if url matches this cookie
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.
isMine - Variable in class sunlabs.brazil.server.ChainHandler
The URL that must match for this handler to run
isMine(URL) - Method in interface sunlabs.brazil.util.http.HttpRequest.HttpSocketPool
Return true if this is one of the url's my pool can handle
isMine(URL) - Method in class sunlabs.brazil.util.http.HttpRequest.SimpleHttpSocketPool
 
isReady(NetworkServerControl) - Static method in class sunlabs.brazil.derby.DerbyServer
 
isSingle() - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
 
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 (/).
isTag() - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
 
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.

J

JavaScriptTemplate - Class in sunlabs.brazil.javascript
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
 
JSONConverter - Class in sunlabs.brazil.sunlabs
String converter for MiscTemplate to do JSON escaping.
JSONConverter() - Constructor for class sunlabs.brazil.sunlabs.JSONConverter
 
JSONTemplate - Class in sunlabs.brazil.json
Template for generating (or extracting) JSON format data.
JSONTemplate() - Constructor for class sunlabs.brazil.json.JSONTemplate
 
JSONTemplate - Class in sunlabs.brazil.sunlabs
Template for generating formatted JSON output.
JSONTemplate() - Constructor for class sunlabs.brazil.sunlabs.JSONTemplate
 
JunkBusterHandler - Class in sunlabs.brazil.proxy
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.ListTemplate.MyList
Return an enumeration of the "special" keys for this list.
keys() - Method in class sunlabs.brazil.sunlabs.ScanHtml.DictView
 
keys() - Method in class sunlabs.brazil.sunlabs.XmlTree
 
keys(XmlTree.Node, String, String, Vector) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
keys() - Method in class sunlabs.brazil.util.StringMap
Returns an enumeration of the keys in this StringMap.
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.
LDAPTemplate - Class in sunlabs.brazil.ldap
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 in sunlabs.brazil.util
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 in sunlabs.brazil.util
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 in sunlabs.brazil.sunlabs
Manage lists of strings in a (hopefully) useful way.
ListTemplate() - Constructor for class sunlabs.brazil.sunlabs.ListTemplate
 
ListTemplate.MyList - Class in sunlabs.brazil.sunlabs
Implement a list of strings.
ListTemplate.MyList(String) - Constructor for class sunlabs.brazil.sunlabs.ListTemplate.MyList
Create a named list object.
ListTemplate.MyList() - Constructor for class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
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.ListTemplate.MyList
load a properties representation of the object, then create the object from it.
load(InputStream) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
load(Properties, RewriteContext, String) - Static method in class sunlabs.brazil.template.SetTemplate
load a namespace from a java properties file
loadUrls(Properties, String, String) - Method in class sunlabs.brazil.proxy.JunkBusterHandler
 
LockTemplate - Class in sunlabs.brazil.sunlabs
Template to lock a resource.
LockTemplate() - Constructor for class sunlabs.brazil.sunlabs.LockTemplate
 
LOG - Static variable in class sunlabs.brazil.handler.ChainSawHandler
 
log - Static variable in class sunlabs.brazil.handler.MapPage
 
log(String) - Method in class sunlabs.brazil.handler.MapPage
diagnostic output
log(int, 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.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() - Method in class sunlabs.brazil.server.TestRequest
 
log(int, Object, String) - Method in class sunlabs.brazil.server.TestRequest
 
log(String) - Method in class sunlabs.brazil.sunlabs.LogTemplate.Logger
 
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
 
LogHandler - Class in sunlabs.brazil.handler
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.
LogTemplate - Class in sunlabs.brazil.sunlabs
Template for logging to files.
LogTemplate() - Constructor for class sunlabs.brazil.sunlabs.LogTemplate
 
LogTemplate.Logger - Class in sunlabs.brazil.sunlabs
 
LogTemplate.Logger() - Constructor for class sunlabs.brazil.sunlabs.LogTemplate.Logger
Use a no-argument constructor for use with the session manager.
logVelocityMessage(int, String) - Method in class sunlabs.brazil.velocity.VelocityFilter
 

M

macroTable - Variable in class sunlabs.brazil.template.MacroTemplate
 
MacroTemplate - Class in sunlabs.brazil.template
Template class for defining macros.
MacroTemplate() - Constructor for class sunlabs.brazil.template.MacroTemplate
 
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.handler.MapPage
test this stuff out, sort of.
Main - Class in sunlabs.brazil.server
Sample main program for starting an http server.
Main() - Constructor for class sunlabs.brazil.server.Main
 
main(String[]) - Static method in class sunlabs.brazil.server.Main
 
main(String[]) - Static method in class sunlabs.brazil.sunlabs.InstallHttpsHandler
 
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.Base64
Test the decoder and encoder.
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.ClockFormat
Test main: ClockFormat format ?time? ?zone?
main(String[]) - Static method in class sunlabs.brazil.util.ClockScan
 
main(String[]) - Static method in class sunlabs.brazil.util.http.HttpRequest
Grab http document(s) and save them in the filesystem.
main(String[]) - Static method in class sunlabs.brazil.util.http.MapHtmlUrl
test this stuff out, sort of.
main(String[]) - Static method in class sunlabs.brazil.util.regexp.Regexp
 
main(String[]) - Static method in class sunlabs.brazil.xmpp.IMTemplate
command line interface?.
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.Html
 
map(String) - Method in class sunlabs.brazil.properties.SubstPropsHandler.LowerCase
 
map(String) - Method in class sunlabs.brazil.properties.SubstPropsHandler.Resub
 
map(String) - Method in class sunlabs.brazil.properties.SubstPropsHandler.Url
 
mapCount() - Method in class sunlabs.brazil.handler.MapPage
How many tags have been mapped?
mapFile - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 
MapHrefTemplate - Class in sunlabs.brazil.sunlabs
Template for regexp mapping href attributes in <a> tags.
MapHrefTemplate() - Constructor for class sunlabs.brazil.sunlabs.MapHrefTemplate
 
MapHtmlUrl - Class in sunlabs.brazil.util.http
Utility class to systematically rewrite links inside of html pages and/or stylesheets.
MapHtmlUrl(MapHtmlUrl.Map, boolean) - Constructor for class sunlabs.brazil.util.http.MapHtmlUrl
Create a url mapper with the supplied url rewriter.
MapHtmlUrl.Map - Interface in sunlabs.brazil.util.http
Every URL calls this to map the string.
MapPage - Class in sunlabs.brazil.handler
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.
mapUrl(String, boolean) - Method in interface sunlabs.brazil.util.http.MapHtmlUrl.Map
Map a url.
match(String) - Method in class sunlabs.brazil.sunlabs.XmlTree
Find all nodes that match a glob pattern, starting at the root.
match(XmlTree.Node, StringTokenizer, Vector) - Method in class sunlabs.brazil.sunlabs.XmlTree
Find all nodes that match a glob pattern, starting at any node.
match(String, String) - Static method in class sunlabs.brazil.util.Glob
Match a string against a pattern.
match(String, String, String[]) - Static method in class sunlabs.brazil.util.Glob
Match a string against a pattern, and return sub-matches.
match(String) - Method in class sunlabs.brazil.util.MatchString
See if this is our url.
match(String, Properties) - Method in class sunlabs.brazil.util.MatchString
See if this is our url.
match(String) - Method in class sunlabs.brazil.util.regexp.Regexp
Matches the given string against this regular expression.
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, 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.
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 in sunlabs.brazil.util
Utility class for handlers to determine, based on the URL, if the current request should be processed.
MatchString(String) - Constructor for class sunlabs.brazil.util.MatchString
Create a matcher for per-request URL checking.
MatchString(String, Properties) - Constructor for class sunlabs.brazil.util.MatchString
Create a matcher for one-time-only checking.
max(int) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Set the max list size.
max - Static variable in class sunlabs.brazil.template.QueueTemplate.Queue
 
MAX_BLANKS - Static variable in class sunlabs.brazil.server.Request
Maximum number of blank lines allowed between requests before aborting the connecion.
MAX_LINE - Static variable in class sunlabs.brazil.util.http.MimeHeaders
 
MAX_LINES - Static variable in class sunlabs.brazil.util.http.MimeHeaders
 
maxAge - Variable in class sunlabs.brazil.util.http.HttpRequest.SimpleHttpSocketPool
 
maxIdle - Variable in class sunlabs.brazil.util.http.HttpRequest.SimpleHttpSocketPool
 
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 in sunlabs.brazil.filter
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
 
merge(JSONObject, JSONObject) - Static method in class sunlabs.brazil.json.JSONTemplate
Merge two json objects.
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 in sunlabs.brazil.util.http
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.
MiscTemplate - Class in sunlabs.brazil.sunlabs
Template for misc string manipulation functions.
MiscTemplate() - Constructor for class sunlabs.brazil.sunlabs.MiscTemplate
 
MiscTemplate.Convert - Interface in sunlabs.brazil.sunlabs
Interface for dynamically loaded String converters.
MiscTemplate.GlobProperties - Class in sunlabs.brazil.sunlabs
Special version of a properties that uses the sub expresions of the supplied glob pattern and name to define the keys 1-9.
MiscTemplate.GlobProperties(Properties, String, String, String) - Constructor for class sunlabs.brazil.sunlabs.MiscTemplate.GlobProperties
 
ModifiedTemplate - Class in sunlabs.brazil.template
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.GenericProxyHandler
Rewrite the links in an html file so they resolve correctly in proxy mode.
modifyContent(Request, byte[]) - Method in class sunlabs.brazil.handler.ProxyPropertiesHandler
 
modifyContent(Request, byte[]) - Method in class sunlabs.brazil.sunlabs.WebMountHandler
Rewrite the links in an html or css file so they resolve correctly
MultiHostHandler - Class in sunlabs.brazil.handler
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 in sunlabs.brazil.template
Version of the SetTemplate that reflects form/multipart data in Request.props.
MultipartSetTemplate() - Constructor for class sunlabs.brazil.template.MultipartSetTemplate
 
MultiProxyHandler - Class in sunlabs.brazil.handler
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() - Method in class sunlabs.brazil.handler.PushHandler.Split
get the part name
name - Variable in class sunlabs.brazil.server.Server
The string to return as the value for the "Server:" line in the HTTP response header.
names - Variable in class sunlabs.brazil.server.ChainHandler
The names of the above handlers as specified by the configuration parameters.
names(String) - Method in class sunlabs.brazil.sunlabs.ScanHtml
Return a list of names for this tree
names(String, StringBuffer) - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
Return the list of all my childrens names.
names(String, StringBuffer, ScanHtml.Selector) - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
 
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 in sunlabs.brazil.template
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.CookieFilter
 
nosession - Variable in class sunlabs.brazil.proxy.HistoryFilter
 
NotFoundHandler - Class in sunlabs.brazil.handler
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.
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
 
PhoneFilter - Class in sunlabs.brazil.filter
Rewrite text between markup (and not in links) based on re sub's
re regular 'phone' expression.
PhoneFilter() - Constructor for class sunlabs.brazil.filter.PhoneFilter
 
PipeTemplate - Class in sunlabs.brazil.sunlabs
Template to run a program, in a pipe, feed data to its stdin, and get data back from its stdout.
PipeTemplate() - Constructor for class sunlabs.brazil.sunlabs.PipeTemplate
 
PlainFilter - Class in sunlabs.brazil.filter
Filter to turn text/plain into html.
PlainFilter() - Constructor for class sunlabs.brazil.filter.PlainFilter
 
PlainTemplate - Class in sunlabs.brazil.sunlabs
Template to turn all markup between <plain> and </plain> into ordinary text, by escaping all HTML markup.
PlainTemplate() - Constructor for class sunlabs.brazil.sunlabs.PlainTemplate
 
PollHandler - Class in sunlabs.brazil.handler
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
 
PORT - Static variable in class sunlabs.brazil.handler.GenericProxyHandler
Handler configuration property port.
port - Variable in class sunlabs.brazil.util.http.HttpRequest
The port extracted from the URL used to construct this HttpRequest.
post - Variable in class sunlabs.brazil.handler.PollHandler
 
post - Variable in class sunlabs.brazil.ssl.SslPollHandler
 
postData - Variable in class sunlabs.brazil.server.Request
The uploaded content of this request, usually from a POST.
PREFIX - Static variable in class sunlabs.brazil.handler.GenericProxyHandler
Handler configuration property prefix.
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() - Method in class sunlabs.brazil.util.MatchString
Return our prefix
prependPool(HttpRequest.HttpSocketPool) - Static method in class sunlabs.brazil.util.http.HttpRequest
Prepend a socket pool to the end of the list.
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.
processEvents(Dictionary) - Method in class sunlabs.brazil.asterisk.AsteriskHandler.Events
Send the event to all the proper Q's.
processPacket(Packet) - Method in class sunlabs.brazil.xmpp.IMTemplate.MessageRelay
 
processText(Properties, String) - Method in class sunlabs.brazil.handler.RePollHandler
Process the contents as a string through the regular expressions.
PropertiesCacheManager - Class in sunlabs.brazil.session
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() - Constructor for class sunlabs.brazil.session.PropertiesCacheManager
 
PropertiesCacheManager.Saveable - Interface in sunlabs.brazil.session
This interface allows for persistence of non-properties session objects.
PropertiesHandler - Class in sunlabs.brazil.handler
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 in sunlabs.brazil.properties
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 in sunlabs.brazil.template
[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 in sunlabs.brazil.proxy
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 in sunlabs.brazil.handler
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 in sunlabs.brazil.handler
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 in sunlabs.brazil.handler
Skeleton Handler for uploading files using multipart/form-data.
PushHandler() - Constructor for class sunlabs.brazil.handler.PushHandler
 
PushHandler.Split - Class in sunlabs.brazil.handler
Split multipart data into its constituent pieces.
PushHandler.Split(byte[]) - Constructor for class sunlabs.brazil.handler.PushHandler.Split
create a new multipart form thingy
put(String, String) - Method in class sunlabs.brazil.handler.GenericProxyHandler.Cookie
 
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(Object, Object) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Dictionary object.
put(String, String) - Method in class sunlabs.brazil.server.TestRequest
 
put(Object, Object, Object) - Static method in class sunlabs.brazil.session.SessionManager
put an object into the session manager.
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.sunlabs.ScanHtml.DictView
Play with put.
put(Object, Object) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
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(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(int, String) - Method in class sunlabs.brazil.util.StringMap
Maps the key at the given index to the specified value in this StringMap.
put(String, String) - Method in class sunlabs.brazil.util.StringMap
Maps the given case-insensitive key to the specified value in this StringMap.
put(Object, Object) - Method in class sunlabs.brazil.util.StringMap
Performs the same job as put(String, String).
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
 
PutHandler - Class in sunlabs.brazil.sunlabs
Simple PUT and DELETE method handler.
PutHandler() - Constructor for class sunlabs.brazil.sunlabs.PutHandler
 
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 in sunlabs.brazil.python
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(Vector) - Static method in class sunlabs.brazil.util.Sort
Sort a vector of strings using the Qsort algorithm.
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.
query - Variable in class sunlabs.brazil.server.Request
The query string specified after the URL, or "" if no query string was specified.
QueueTemplate - Class in sunlabs.brazil.template
Template class for Managing simple Queues, allowing text communication among sessions.
QueueTemplate() - Constructor for class sunlabs.brazil.template.QueueTemplate
 
QueueTemplate.Queue - Class in sunlabs.brazil.template
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 in sunlabs.brazil.template
A bag of items to keep on the Q.
QueueTemplate.QueueItem(String, Dictionary) - Constructor for class sunlabs.brazil.template.QueueTemplate.QueueItem
 
QueueTemplate.QueueItem(String, String, String) - Constructor for class sunlabs.brazil.template.QueueTemplate.QueueItem
Deprecated. Use the other constructor instead
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.asterisk.AsteriskHandler.AmiStringMap
 
read(HttpInputStream) - Method in class sunlabs.brazil.util.http.MimeHeaders
Reads MIME headers from the specified input stream.
read(HttpInputStream, boolean) - Method in class sunlabs.brazil.util.http.MimeHeaders
Reads MIME headers from the specified input stream.
readFully(byte[]) - Method in class sunlabs.brazil.util.http.HttpInputStream
Reads buf.length bytes from the input stream.
readFully(byte[], int, int) - Method in class sunlabs.brazil.util.http.HttpInputStream
Reads the specified number of bytes from the input stream.
readLine() - Method in class sunlabs.brazil.util.http.HttpInputStream
Reads the next line of text from the input stream.
readLine(int) - Method in class sunlabs.brazil.util.http.HttpInputStream
Reads the next line of text from the input stream, up to the limit specified.
realm - Variable in class sunlabs.brazil.handler.BasicAuthHandler
 
reapInterval - Variable in class sunlabs.brazil.util.http.HttpRequest.SimpleHttpSocketPool
 
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
 
redirect(RewriteContext) - Method in class sunlabs.brazil.template.RedirectTemplate
Look for a redirect tag, change it to an HREF, and remember where to redirect to (e.g.
RedirectTemplate - Class in sunlabs.brazil.template
[Deprecated, use the AddHeaderTemplate instead.]
Template class for redirecting an html page This class is used by the TemplateHandler
RedirectTemplate() - Constructor for class sunlabs.brazil.template.RedirectTemplate
 
redirectToken - Variable in class sunlabs.brazil.filter.SessionFilter
 
ReFilter - Class in sunlabs.brazil.filter
Filter to replace text content via a reqular expression substitution.
ReFilter() - Constructor for class sunlabs.brazil.filter.ReFilter
 
ReflectHandler - Class in sunlabs.brazil.handler
Handler for reflecting query data back to the client.
ReflectHandler() - Constructor for class sunlabs.brazil.handler.ReflectHandler
 
regexp - Variable in class sunlabs.brazil.handler.SimpleSessionHandler
 
Regexp - Class in sunlabs.brazil.util.regexp
The Regexp class can be used to match a pattern against a string and optionally replace the matched parts with new strings.
Regexp(String) - Constructor for class sunlabs.brazil.util.regexp.Regexp
Compiles a new Regexp object from the given regular expression pattern.
Regexp(String, boolean) - Constructor for class sunlabs.brazil.util.regexp.Regexp
Compiles a new Regexp object from the given regular expression pattern.
Regexp.Filter - Interface in sunlabs.brazil.util.regexp
This interface is used by the Regexp class to generate the replacement string for each pattern match found in the source string.
Regsub - Class in sunlabs.brazil.util.regexp
The Regsub class provides an iterator-like object to extract the matched and unmatched portions of a string with respect to a given regular expression.
Regsub(Regexp, String) - Constructor for class sunlabs.brazil.util.regexp.Regsub
Construct a new Regsub that can be used to step through the given string, finding each substring that matches the given regular expression.
RemoteHostTemplate - Class in sunlabs.brazil.sunlabs
Return the remote host name associated with this request.
RemoteHostTemplate() - Constructor for class sunlabs.brazil.sunlabs.RemoteHostTemplate
 
remove(String) - Method in class sunlabs.brazil.handler.GenericProxyHandler.Cookie
 
remove(String) - Method in class sunlabs.brazil.handler.HtmlRewriter
Removes the given case-insensitive key and its corresponding value from the current tag's attributes.
remove() - Method in class sunlabs.brazil.properties.PropertiesList
Remove this object from the list in which it's a member.
remove(Object) - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Dictionary object.
remove(Object, Object) - Static method in class sunlabs.brazil.session.SessionManager
Remove an object from the session manager.
remove(String) - Method in class sunlabs.brazil.sunlabs.DataImageTemplate.Cache
Remove an item from the cache.
remove(String, String) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Remove items from a list, by name.
remove(Object) - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
We should never call this; it's required by the interface.
remove(Object) - Method in class sunlabs.brazil.sunlabs.ScanHtml.DictView
 
remove() - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
Remove this node from my parent (if any)
remove(Object) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
remove(String) - Method in class sunlabs.brazil.util.StringMap
Removes the given case-insensitive key and its corresponding value from this StringMap.
remove(int) - Method in class sunlabs.brazil.util.StringMap
 
remove(Object) - Method in class sunlabs.brazil.util.StringMap
Performs the same job as remove(String).
removeEvents(String, String, String) - Method in class sunlabs.brazil.asterisk.AsteriskHandler.Events
Remove events.
removeEvents(String, String, String) - Static method in class sunlabs.brazil.asterisk.AsteriskHandler
java access to removing event registrations.
removeObj(Object, Object) - Method in class sunlabs.brazil.session.CacheManager
Remove an object from a session table.
removePointToPointHeaders(MimeHeaders, boolean) - Static method in class sunlabs.brazil.util.http.HttpRequest
Removes all the point-to-point (hop-by-hop) headers from the given mime headers.
removeProperty(String, boolean) - Method in class sunlabs.brazil.properties.PropertiesList
Remove a property from a a chain of properties lists.
removeProperty(String) - Method in class sunlabs.brazil.properties.PropertiesList
Remove the key and its associated value from the first properties object in the chain that contains this key.
removeSharedProps(Dictionary) - Method in class sunlabs.brazil.server.Request
Removes a Dictionary added by addSharedProps.
remQEvent(String, String, String) - Method in class sunlabs.brazil.asterisk.AsteriskHandler.EventItem
Remove an exp/Q pair.
replace(String) - Method in class sunlabs.brazil.handler.RePollHandler.Extract
Do the substitution
replace() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
true if the previous replace worked
replace(String) - Method in class sunlabs.brazil.sunlabs.XmlTree
Replace the XmlTree with new markup.
replace(String) - Method in class sunlabs.brazil.util.LexHTML
Changes the string that this LexHTML is parsing.
replace(String) - Method in class sunlabs.brazil.util.LexML
Changes the string that this LexML is parsing.
ReplaceFilter - Class in sunlabs.brazil.filter
Filter to replace current content with a static form, or template.
ReplaceFilter() - Constructor for class sunlabs.brazil.filter.ReplaceFilter
 
replaceHeader(String, String) - Method in class sunlabs.brazil.server.Request
 
RePollHandler - Class in sunlabs.brazil.handler
Do regsub processing on content to extract properties.
RePollHandler() - Constructor for class sunlabs.brazil.handler.RePollHandler
 
RePollHandler.Extract - Class in sunlabs.brazil.handler
A "bag" to store regular expression extraction instructions
report - Variable in class sunlabs.brazil.server.ChainHandler
The name (if any) of the property to receive the name of the handler that handled the request.
Request - Class in sunlabs.brazil.server
Represents an HTTP transaction.
request - Variable in class sunlabs.brazil.template.RewriteContext
The Request object, as passed to a handler's respond method.
Request.HttpOutputStream - Class in sunlabs.brazil.server
The HttpOutputStream provides the convenience method writeBytes for writing the byte representation of a string, without bringing in the overhead and the deprecated warnings associated with a java.io.DataOutputStream.
Request.HttpOutputStream(OutputStream) - Constructor for class sunlabs.brazil.server.Request.HttpOutputStream
 
requestCount - Variable in class sunlabs.brazil.server.Server
Count of HTTP requests received so far.
requestHeaders - Variable in class sunlabs.brazil.util.http.HttpRequest
The headers for the HTTP request.
reset() - Method in class sunlabs.brazil.handler.HtmlRewriter
Forgets all the tokens that have been appended to the resultant HTML document so far, including the current token.
reset() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
 
reset(String, String) - Method in class sunlabs.brazil.sunlabs.ScanHtml
Reset the tree
ResourceHandler - Class in sunlabs.brazil.handler
Handler for serving documents out of the jar file.
ResourceHandler() - Constructor for class sunlabs.brazil.handler.ResourceHandler
 
ResourceLimitHandler - Class in sunlabs.brazil.handler
Handler for server resource management.
ResourceLimitHandler() - Constructor for class sunlabs.brazil.handler.ResourceLimitHandler
 
respond(Request) - Method in class sunlabs.brazil.asterisk.AsteriskAGIHandler
We don't handle any "normal" requests.
respond(Request) - Method in class sunlabs.brazil.asterisk.AsteriskHandler
The handler only registers * servers.
respond(Request) - Method in class sunlabs.brazil.beanshell.BeanShellHandler
 
respond(Request) - Method in class sunlabs.brazil.derby.DerbyServer
 
respond(Request) - Method in class sunlabs.brazil.email.EmailTemplate
 
respond(Request) - Method in class sunlabs.brazil.filter.CopyContentFilter
This is the request object before the content was fetched
respond(Request) - Method in class sunlabs.brazil.filter.ExecFilter
This is the request object before the content was fetched
respond(Request) - Method in class sunlabs.brazil.filter.FilterHandler
Responds to an HTTP request by the forwarding the request to the wrapped Handler and filtering the output of that Handler before sending the output to the client.
respond(Request) - Method in class sunlabs.brazil.filter.HighlightFilter
 
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.PhoneFilter
Remove any accept-encoding headers so we don't have do decode them ourselves.
respond(Request) - Method in class sunlabs.brazil.filter.PlainFilter
This is the request object before the content was fetched
respond(Request) - Method in class sunlabs.brazil.filter.ReFilter
This is the request object before the content was fetched
respond(Request) - Method in class sunlabs.brazil.filter.ReplaceFilter
This is the request object before the content was fetched
respond(Request) - Method in class sunlabs.brazil.filter.SessionFilter
This is called by the filterHandler before the content generation step.
respond(Request) - Method in class sunlabs.brazil.filter.TemplateFilter
No action before request is made.
respond(Request) - Method in class sunlabs.brazil.filter.UrlMapFilter
This is the request object before the content was fetched
respond(Request) - Method in class sunlabs.brazil.filter.UrlSessionFilter
Extract the cookie out of the URL, rewriting the url as needed.
respond(Request) - Method in class sunlabs.brazil.handler.AclSwitchHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.BasicAuthHandler
Looks up the credentials for this request, and insert them into the request stream.
respond(Request) - Method in class sunlabs.brazil.handler.CgiHandler
Dispatch and handle the CGI request.
respond(Request) - Method in class sunlabs.brazil.handler.ChainSawHandler
Run the chain-handler, counting the # of bytes of output generated by its chained handlers.
respond(Request) - Method in class sunlabs.brazil.handler.ChownHandler
Nothing to respond to
respond(Request) - Method in class sunlabs.brazil.handler.ConfigFileHandler
Extract the session state into the request object, optionally modifying the properties.
respond(Request) - Method in class sunlabs.brazil.handler.CookieSessionHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.DefaultFileHandler
If the url ends with a "/" look around in the corrosponding directory to find a suitable default file, and then change the url.
respond(Request) - Method in class sunlabs.brazil.handler.DeferredHandler
Dispatch to the handler, installing it if needed
respond(Request) - Method in class sunlabs.brazil.handler.DialogHandler
Pop up a dialog box on the server machine.
respond(Request) - Method in class sunlabs.brazil.handler.DigestAuthHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.DirectoryHandler
Display files in a directory, after being rejected by the FileHandler.
respond(Request) - Method in class sunlabs.brazil.handler.DynamicConfigHandler
Responds to an HTTP request by examining the "Host:" request header and dispatching to the main handler of the server that handles that virtual host.
respond(Request) - Method in class sunlabs.brazil.handler.GenericProxyHandler
If this is one of "our" url's, fetch the document from the destination server, and return it as if it was local.
respond(Request) - Method in class sunlabs.brazil.handler.HomeDirHandler
If this is a ~user request, modify the root and url properties of the request object.
respond(Request) - Method in class sunlabs.brazil.handler.LogHandler
Dispatch the request to the handler.
respond(Request) - Method in class sunlabs.brazil.handler.MultiHostHandler
Responds to an HTTP request by examining the "Host:" request header and dispatching to the main handler of the server that handles that virtual host.
respond(Request) - Method in class sunlabs.brazil.handler.MultiProxyHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.NotFoundHandler
Look for and deliver the "not found" file Look in the current directory first, then in the doc root.
respond(Request) - Method in class sunlabs.brazil.handler.PollHandler
This might allow control over the polling via requests at a later date.
respond(Request) - Method in class sunlabs.brazil.handler.PropertiesHandler
If this is one of our URL's, look through each request property, and selct those that match the Select property.
respond(Request) - Method in class sunlabs.brazil.handler.ProxyPropertiesHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.PublishHandler
Make sure this is one of our "PUT" requests.
respond(Request) - Method in class sunlabs.brazil.handler.PushHandler
Make sure this is one of our requests.
respond(Request) - Method in class sunlabs.brazil.handler.ReflectHandler
Dispatch and handle the request.
respond(Request) - Method in class sunlabs.brazil.handler.RePollHandler
Allow The url and post data (if any) to be changed.
respond(Request) - Method in class sunlabs.brazil.handler.ResourceHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.ResourceLimitHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.RestrictClientHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.RolesHandler
Dispatch and handle the request.
respond(Request) - Method in class sunlabs.brazil.handler.SimpleSessionHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.SMTPHandler
 
respond(Request) - Method in class sunlabs.brazil.handler.SupplyHandler
Dispatch and handle the request.
respond(Request) - Method in class sunlabs.brazil.handler.UrlMapperHandler
If this request matches the expression, rewrite it.
respond(Request) - Method in class sunlabs.brazil.handler.VirtualHostHandler
Either look for host header, tack on front of url, or modify the "root" property
respond(Request) - Method in class sunlabs.brazil.properties.ExprPropsHandler
Creates an instance of ExprProps that uses request.props for the wrapped Calculator's symbol table.
respond(Request) - Method in class sunlabs.brazil.properties.SubstPropsHandler
 
respond(Request) - Method in class sunlabs.brazil.proxy.CookieFilter
 
respond(Request) - Method in class sunlabs.brazil.proxy.HistoryFilter
If the admin prefix is seen, store the history information associated with the session in the request properties.
respond(Request) - Method in class sunlabs.brazil.proxy.JunkBusterHandler
 
respond(Request) - Method in class sunlabs.brazil.proxy.ProxyHandler
 
respond(Request) - Method in class sunlabs.brazil.server.ChainHandler
Calls each of the Handlers in turn until one of them returns true.
respond(Request) - Method in class sunlabs.brazil.server.FileHandler
Find, read, and deliver via http the requested file.
respond(Request) - Method in interface sunlabs.brazil.server.Handler
Responds to an HTTP request.
respond(Request) - Method in class sunlabs.brazil.session.CacheManager
Don't handle any URL requests (yet)
respond(Request) - Method in class sunlabs.brazil.session.PropertiesCacheManager
 
respond(Request) - Method in class sunlabs.brazil.ssl.BasicSSLHandler
 
respond(Request) - Method in class sunlabs.brazil.ssl.SslPollHandler
This might allow control over the polling via requests at a later date.
respond(Request) - Method in class sunlabs.brazil.sunlabs.DelayHandler
Delay before servicing this request.
respond(Request) - Method in class sunlabs.brazil.sunlabs.FastCgiHandler
Fetch fast-cgi content.
respond(Request) - Method in class sunlabs.brazil.sunlabs.InitTemplatesHandler
 
respond(Request) - Method in class sunlabs.brazil.sunlabs.InstallHttpsHandler
 
respond(Request) - Method in class sunlabs.brazil.sunlabs.PutHandler
 
respond(Request) - Method in class sunlabs.brazil.sunlabs.RestartHandler
 
respond(Request) - Method in class sunlabs.brazil.sunlabs.RoundRobinSessionHandler
 
respond(Request) - Method in class sunlabs.brazil.sunlabs.ScriptHandler
Run the file or resource associated with the URL through the script interpreter implied by the mime type.
respond(Request) - Method in class sunlabs.brazil.sunlabs.ScriptServerTemplate
 
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.sunlabs.TrustMeHandler
 
respond(Request) - Method in class sunlabs.brazil.sunlabs.WebMountHandler
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.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.DirectoryTemplate
Compute the directory info, and add it to the request properties.
respond(Request) - Method in class sunlabs.brazil.template.SetTemplate
Chain a SessionManager entries onto the request properties, and optionally allow setting of request props from query parameters.
respond(Request) - Method in class sunlabs.brazil.template.TemplateHandler
Process an html template file, using the supplied template processing classes.
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 in sunlabs.brazil.sunlabs
Restart the server when a sigHUP is received.
RestartHandler() - Constructor for class sunlabs.brazil.sunlabs.RestartHandler
 
RestartingMultiHostHandler - Class in sunlabs.brazil.handler
Allow the configuration for one virtual host to be restarted.
RestartingMultiHostHandler() - Constructor for class sunlabs.brazil.handler.RestartingMultiHostHandler
 
restrict - Variable in class sunlabs.brazil.server.Server
If non-null, restrict connections to just the specified ip addresses.
RestrictClientHandler - Class in sunlabs.brazil.handler
Simple access control hander based on source ip addresses.
RestrictClientHandler() - Constructor for class sunlabs.brazil.handler.RestrictClientHandler
 
result() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
 
result() - Method in class sunlabs.brazil.server.TestRequest
 
RewriteContext - Class in sunlabs.brazil.template
A variant containing instance variables that may be referenced by rewriting filters.
RewriteContext(Server, String, Request, String, String, TemplateRunner, Vector) - Constructor for class sunlabs.brazil.template.RewriteContext
 
rewriteStyleAttributes(boolean) - Method in class sunlabs.brazil.handler.MapPage
Look for url's in style attributes.
ROLE_KEY - Static variable in class sunlabs.brazil.handler.RolesHandler
Handler configuration property roleName.
RolesHandler - Class in sunlabs.brazil.handler
Handler for associating roles with an id.
RolesHandler() - Constructor for class sunlabs.brazil.handler.RolesHandler
 
ROOT - Static variable in class sunlabs.brazil.server.FileHandler
 
RoundRobinSessionHandler - Class in sunlabs.brazil.sunlabs
Handler to implement a pool of sessions.
RoundRobinSessionHandler() - Constructor for class sunlabs.brazil.sunlabs.RoundRobinSessionHandler
 
run() - Method in class sunlabs.brazil.asterisk.AsteriskAGIHandler
Either start a listening socket or handle an AGI request.
run() - Method in class sunlabs.brazil.handler.PollHandler
Periodically poll the url, and copy the results into the server properties.
run() - Method in class sunlabs.brazil.server.Server
Loops, accepting socket connections and replying to HTTP requests.
run() - Method in class sunlabs.brazil.ssl.SslPollHandler
Periodically poll the url, and copy the results into the server properties.
run() - Method in class sunlabs.brazil.util.http.HttpRequest.SimpleHttpSocketPool
 

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.ListTemplate.MyList
 
save(OutputStream, String) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
sb - Variable in class sunlabs.brazil.handler.HtmlRewriter
Storage holding the resultant HTML document.
ScanHtml - Class in sunlabs.brazil.sunlabs
Create a tree representation of an html file whose parts may be referenced as a dictionary.
ScanHtml(String, String) - Constructor for class sunlabs.brazil.sunlabs.ScanHtml
 
ScanHtml.DictView - Class in sunlabs.brazil.sunlabs
View the tree as a set of properties
ScanHtml.DictView(String, ScanHtml) - Constructor for class sunlabs.brazil.sunlabs.ScanHtml.DictView
 
ScanHtml.Node - Class in sunlabs.brazil.sunlabs
A node in the tree
ScanHtml.Node(int, String, String, boolean, StringMap) - Constructor for class sunlabs.brazil.sunlabs.ScanHtml.Node
Create a node for a tag
ScanHtml.Node(String) - Constructor for class sunlabs.brazil.sunlabs.ScanHtml.Node
Create a node for Cdata
ScanHtml.Selector - Class in sunlabs.brazil.sunlabs
Select a node to return.
ScanHtml.Selector() - Constructor for class sunlabs.brazil.sunlabs.ScanHtml.Selector
 
ScanHtml.Viewer - Class in sunlabs.brazil.sunlabs
How to view a node.
ScanHtml.Viewer() - Constructor for class sunlabs.brazil.sunlabs.ScanHtml.Viewer
 
ScanTemplate - Class in sunlabs.brazil.sunlabs
Template for managing ScanHTML things: a tree representation of an *ml file based on a supplied list of tags.
ScanTemplate() - Constructor for class sunlabs.brazil.sunlabs.ScanTemplate
 
ScriptEvalTemplate - Class in sunlabs.brazil.template
Template class for performing ${...} substitutions inside javascript and style tags.
ScriptEvalTemplate() - Constructor for class sunlabs.brazil.template.ScriptEvalTemplate
 
ScriptHandler - Class in sunlabs.brazil.sunlabs
Interpret a file or resource as a script and run it through The proper interpreter, replacing the content with the output of the script.
ScriptHandler() - Constructor for class sunlabs.brazil.sunlabs.ScriptHandler
 
ScriptServerTemplate - Class in sunlabs.brazil.sunlabs
Run a script using the specified language: <interp language="xxx" [eval=true|false]> ...
ScriptServerTemplate() - Constructor for class sunlabs.brazil.sunlabs.ScriptServerTemplate
 
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.
select(ScanHtml.Node) - Method in class sunlabs.brazil.sunlabs.ScanHtml.Selector
 
send2Q(Dictionary) - Method in class sunlabs.brazil.asterisk.AsteriskHandler.EventItem
Send an event to the q's if there is a match.
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(Request) - Method in class sunlabs.brazil.server.Request.HttpOutputStream
 
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.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(String, String, int) - Method in class sunlabs.brazil.server.Request
Sends an HTTP response to the client.
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(InputStream, int, String, int) - Method in class sunlabs.brazil.server.Request
Sends the contents of the given input stream as the HTTP response.
server - Variable in class sunlabs.brazil.server.Request
The server that initiated this request.
Server - Class in sunlabs.brazil.server
Yet another HTTP/1.1 server.
Server(ServerSocket, String, Properties) - Constructor for class sunlabs.brazil.server.Server
Create a server using the provided listener socket.
Server() - Constructor for class sunlabs.brazil.server.Server
Set up the server.
server - Variable in class sunlabs.brazil.template.RewriteContext
The server object, as passed to a handler's init method.
serverProps - Variable in class sunlabs.brazil.server.Request
A PropertiesList object that wraps server.props.
ServerPropsTemplate - Class in sunlabs.brazil.sunlabs
Template to change intrinsic server properties.
ServerPropsTemplate() - Constructor for class sunlabs.brazil.sunlabs.ServerPropsTemplate
 
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.BasicAuthHandler
 
session - Variable in class sunlabs.brazil.handler.CookieSessionHandler
 
session - Variable in class sunlabs.brazil.handler.PublishHandler
 
session - Variable in class sunlabs.brazil.proxy.CookieFilter
 
session - Variable in class sunlabs.brazil.proxy.HistoryFilter
 
SessionFilter - Class in sunlabs.brazil.filter
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 in sunlabs.brazil.session
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.ListTemplate.MyList
Set the delimiter for returning ranges.
setDelim(String) - Method in class sunlabs.brazil.sunlabs.XmlTree
set the node delimiter.
setDflt(String) - Method in class sunlabs.brazil.sunlabs.XmlTree
 
setExpires(long) - Method in class sunlabs.brazil.template.QueueTemplate.Queue
Set the expiration period of the Queue (in ms).
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.
setModified(Properties, long) - Static method in class sunlabs.brazil.server.FileHandler
Set the "lastModified" request property.
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(String) - Method in class sunlabs.brazil.sunlabs.ScanHtml
Set the tags we care about, ignoring the rest.
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 in sunlabs.brazil.template
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
 
setTimeout(int) - Method in class sunlabs.brazil.util.http.HttpRequest
Set the timeout for getting a remote response.
setToken(String) - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
Replace the token (CDATA nodes only)
setType(int) - Method in class sunlabs.brazil.handler.HtmlRewriter
Sets the type of the current token.
setup(ServerSocket, String, Properties) - Method in class sunlabs.brazil.server.Server
 
setup(RewriteContext) - Method in class sunlabs.brazil.tcl.TclServerTemplate
Called at the first tcl code in the document TclServerTemplate is asked to process.
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.email.EmailTemplate
 
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.ExecFilter
Only filter content types that match
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.filter.HighlightFilter
 
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.MD5Filter
Filter everything
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.PhoneFilter
Only filter html files
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.PlainFilter
Only filter text/plain documents
shouldFilter(Request, MimeHeaders) - Method in class sunlabs.brazil.filter.ReFilter
Only filter text documents
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.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.UrlMapFilter
Only filter text documents if the MultiProxyHandler was called
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.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.proxy.HistoryFilter
Called when invoked as a Filter.
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 in sunlabs.brazil.handler
Handler for creating browser sessions based on information found in the http request.
SimpleSessionHandler() - Constructor for class sunlabs.brazil.handler.SimpleSessionHandler
 
simplify(Object) - Static method in class sunlabs.brazil.json.JSONTemplate
Recursively turn any array like objects into arrays.
size() - Method in class sunlabs.brazil.asterisk.AsteriskHandler.EventItem
 
size() - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Dictionary object.
size() - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
size() - Method in class sunlabs.brazil.sunlabs.ScanHtml.DictView
 
size() - Method in class sunlabs.brazil.sunlabs.XmlTree
 
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, StringMap) - Static method in class sunlabs.brazil.handler.SMTPHandler
Send an email message via smtp - simple version.
smtp(String, String, String, String, String, StringMap, Server) - Static method in class sunlabs.brazil.handler.SMTPHandler
 
SMTPHandler - Class in sunlabs.brazil.handler
Handler (or template) for Sending an email message via SMTP.
SMTPHandler() - Constructor for class sunlabs.brazil.handler.SMTPHandler
 
SnarfTemplate - Class in sunlabs.brazil.sunlabs
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.
snarfTillClose() - Method in class sunlabs.brazil.template.RewriteContext
Grab all the markup between the current tag, and the corrosponding closing tag.
sock - Variable in class sunlabs.brazil.server.Request
Our connection to the client.
socketPools - Static variable in class sunlabs.brazil.util.http.HttpRequest
A list of socketPools.
sort() - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
Sort - Class in sunlabs.brazil.util
Placeholder for useful sorting utilities.
Sort.Compare - Interface in sunlabs.brazil.util
This interface is used by the Sort class to compare elements when an array is being sorted.
SourceTemplate - Class in sunlabs.brazil.sunlabs
Template class for incorporating the content of a local file into the current document.
SourceTemplate() - Constructor for class sunlabs.brazil.sunlabs.SourceTemplate
 
SqlTemplate - Class in sunlabs.brazil.sql
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
 
SshTemplate - Class in sunlabs.brazil.ssh
Template to start an ssh connecton to a server.
SshTemplate() - Constructor for class sunlabs.brazil.ssh.SshTemplate
 
SslPollHandler - Class in sunlabs.brazil.ssl
Handler for periodically polling another web site, whose results are (optionally) added to the server's properties.
SslPollHandler() - Constructor for class sunlabs.brazil.ssl.SslPollHandler
 
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.
store(Properties, RewriteContext, String, String) - Static method in class sunlabs.brazil.template.SetTemplate
Store a namespace into a java properties file
string(RewriteContext) - Method in class sunlabs.brazil.sunlabs.JSONTemplate
Remove all text between tags.
string(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
Gets all text between tags - highlighting it appropriately.
STRING - Static variable in class sunlabs.brazil.util.LexML
The value returned by getType for string tokens
StringMap - Class in sunlabs.brazil.util
The StringMap class is a substitute for the Hashtable.
StringMap() - Constructor for class sunlabs.brazil.util.StringMap
Creates an empty StringMap.
stringsValid(boolean) - Method in class sunlabs.brazil.util.Calculator
Normally, variables whose values are "on", "yes", or "true" and converted to "1.0", while the values "off", "no", and "false" are converted to "0.0".
stringToInt(String, int) - Static method in class sunlabs.brazil.util.Format
Convert a string to an integer; use a default value if the conversion fails.
StunnelHandler - Class in sunlabs.brazil.sunlabs
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, 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.
sub(String, Regexp.Filter) - Method in class sunlabs.brazil.util.regexp.Regexp
 
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(Request, String, long) - Static method in class sunlabs.brazil.handler.LogHandler
Format a string.
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.
SubstAllTemplate - Class in sunlabs.brazil.sunlabs
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
 
substAttributeValues() - Method in class sunlabs.brazil.template.RewriteContext
Substitute all attribute values.
SubstPropsHandler - Class in sunlabs.brazil.properties
Handler that performs value conversions on ${...} substitutions.
SubstPropsHandler() - Constructor for class sunlabs.brazil.properties.SubstPropsHandler
 
SubstPropsHandler.Convert - Interface in sunlabs.brazil.properties
Class that maps strings to strings.
SubstPropsHandler.Html - Class in sunlabs.brazil.properties
HTML escape a value.
SubstPropsHandler.Html() - Constructor for class sunlabs.brazil.properties.SubstPropsHandler.Html
 
SubstPropsHandler.LowerCase - Class in sunlabs.brazil.properties
Convert a value to lowercase.
SubstPropsHandler.LowerCase() - Constructor for class sunlabs.brazil.properties.SubstPropsHandler.LowerCase
 
SubstPropsHandler.Resub - Class in sunlabs.brazil.properties
Do a regexp substitution on a value.
SubstPropsHandler.Resub() - Constructor for class sunlabs.brazil.properties.SubstPropsHandler.Resub
 
SubstPropsHandler.SubstProps - Class in sunlabs.brazil.properties
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 in sunlabs.brazil.properties
URL encode a String.
SubstPropsHandler.Url() - Constructor for class sunlabs.brazil.properties.SubstPropsHandler.Url
 
succeed() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
 
sunlabs.brazil.asterisk - package sunlabs.brazil.asterisk
Provide ways of integrating the the Brazil project server into the Asterisk PBX.
sunlabs.brazil.beanshell - package sunlabs.brazil.beanshell
Provide ways of integrating the Bean Shell scripting language into the Brazil project server.
sunlabs.brazil.derby - package sunlabs.brazil.derby
Provide ways of integrating the Derby (aka cloudscape) database 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.exif - package sunlabs.brazil.exif
This package provides ways to extract EXIF data out of (mostly jpeg) images using: metadata-extractor-2.3.1.jar from here.
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.json - package sunlabs.brazil.json
Integration of JSON, the JavaScipt Object Notation 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.ssh - package sunlabs.brazil.ssh
Allow ssh (client) sessions to be manipulated via *ml tags.
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.
sunlabs.brazil.xmpp - package sunlabs.brazil.xmpp
Integration with Smack XMPP client library.
SupplyHandler - Class in sunlabs.brazil.handler
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.sunlabs.MapHrefTemplate
 
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_after(RewriteContext) - Method in class sunlabs.brazil.sunlabs.AfterTemplate
 
tag_agi(RewriteContext) - Method in class sunlabs.brazil.asterisk.AsteriskAGIHandler
Provide the 'agi' tag.
tag_amicommand(RewriteContext) - Method in class sunlabs.brazil.asterisk.AsteriskHandler
Issue a synchronous command to the Asterisk AMI interface.
tag_append(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
Append a value to a property, with an optional delimeter.
tag_array(RewriteContext) - Method in class sunlabs.brazil.json.JSONTemplate
 
tag_array(RewriteContext) - Method in class sunlabs.brazil.sunlabs.JSONTemplate
Begin a JSON array <array> <element...
tag_asterisk(RewriteContext) - Method in class sunlabs.brazil.asterisk.AsteriskHandler
This only emits diagnostic information to stdout.
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 "ms" ms and/or "sec" seconds.
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_element(RewriteContext) - Method in class sunlabs.brazil.sunlabs.JSONTemplate
A JSON array element .
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_eval(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
Evaluate the contents of a variable as a template, as if it was "inline" here.
tag_exec(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ExecTemplate
 
tag_exif(RewriteContext) - Method in class sunlabs.brazil.exif.EXIFTemplate
 
tag_expr(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
Set a variable to the result of an arithmetic expression <expr [name=nnn] value="expr" [format="..." ] [namespace="..."]> sets name to "NaN" if the expression was invalid.
tag_extract(RewriteContext) - Method in class sunlabs.brazil.template.BSLTemplate
Handle the [experimental] "extract" tag.
tag_fetch(RewriteContext) - Method in class sunlabs.brazil.sunlabs.FetchTemplate
Alternate name so we can use both the Include and Fetch templates in the same page.
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_form(RewriteContext) - Method in class sunlabs.brazil.sunlabs.FormHelpTemplate
Look for a "help" attribute, remember its value, then remove it .
tag_form(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MapHrefTemplate
 
tag_form(RewriteContext) - Method in class sunlabs.brazil.template.FormTemplate
Look for a "prepend" attrubute, remember its value, then remove it from the 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_im(RewriteContext) - Method in class sunlabs.brazil.xmpp.IMTemplate
<im command=login id=xx server=xx user=xx pass=xx [host=xx port=nn prepend=xxx] [subscribe=reject|decide] [qid=xx] > Log into an XMPP server.
tag_img(RewriteContext) - Method in class sunlabs.brazil.sunlabs.DataImageTemplate
Replace "src=xxx" with the "data" url equivalent, if appropriate.
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.FetchTemplate
 
tag_include(RewriteContext) - Method in class sunlabs.brazil.template.IncludeTemplate
 
tag_increment(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
Increment the value of a variable.
tag_inline(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
Set a variable to all the markup 'till the /inline tag.
tag_input(RewriteContext) - Method in class sunlabs.brazil.sunlabs.FormHelpTemplate
Look for a "help" attribute, remember its value, then remove it .
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_interp(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ScriptServerTemplate
Grab all markup 'till the closing tag, and run it through the proper language engine.
tag_item(RewriteContext) - Method in class sunlabs.brazil.json.JSONTemplate
If this is a singleton, then the name must be defined if in the context of an "object", and "value" must be defined in in the context of an "array".
tag_item(RewriteContext) - Method in class sunlabs.brazil.sunlabs.JSONTemplate
A Json Item.
tag_javascript(RewriteContext) - Method in class sunlabs.brazil.javascript.JavaScriptTemplate
Processes the <javascript> tag.
tag_json(RewriteContext) - Method in class sunlabs.brazil.json.JSONTemplate
This tag is used to map a set of properties to a JSON object.
tag_json(RewriteContext) - Method in class sunlabs.brazil.sunlabs.JSONTemplate
Stop accumulating tokens.
tag_json2props(RewriteContext) - Method in class sunlabs.brazil.json.JSONTemplate
Turn a JSON object into a set of properties.
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_lock(RewriteContext) - Method in class sunlabs.brazil.sunlabs.LockTemplate
Acquire a lock, preventing any other session from accessing the same locked section of markup.
tag_log(RewriteContext) - Method in class sunlabs.brazil.sunlabs.LogTemplate
 
tag_mapnames(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
Map a set of properties from one namespace to another, and (optionally) change their names and values.
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_object(RewriteContext) - Method in class sunlabs.brazil.json.JSONTemplate
 
tag_object(RewriteContext) - Method in class sunlabs.brazil.sunlabs.JSONTemplate
Begin a JSON object <object> ...
tag_option(RewriteContext) - Method in class sunlabs.brazil.sunlabs.FormHelpTemplate
Needed to retain parent functionality.
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_pipe(RewriteContext) - Method in class sunlabs.brazil.sunlabs.PipeTemplate
 
tag_plain(RewriteContext) - Method in class sunlabs.brazil.sunlabs.PlainTemplate
 
tag_pop(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
Treat a variable as a stack, and pop a value from it.
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.MultipartSetTemplate
 
tag_property(RewriteContext) - Method in class sunlabs.brazil.template.PropsTemplate
Convert the html tag "property" in to the request's property
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_push(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
Treat a variable as a stack, and push a value onto it.
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 or remove it.
tag_random(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
 
tag_register(RewriteContext) - Method in class sunlabs.brazil.asterisk.AsteriskHandler
Register an event.
tag_remotehost(RewriteContext) - Method in class sunlabs.brazil.sunlabs.RemoteHostTemplate
 
tag_replace(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
Regular expression replacement.
tag_scancombine(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ScanTemplate
Add one scan onto another.
tag_scancreate(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ScanTemplate
Create a "scan" object.
tag_scandelete(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ScanTemplate
Delete a portion of a scan.
tag_scanedit(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ScanTemplate
Edit some portion of the scan insitu.
tag_script(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Append all "script" code while in the head section.
tag_script(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_script(RewriteContext) - Method in class sunlabs.brazil.template.ScriptEvalTemplate
 
tag_select(RewriteContext) - Method in class sunlabs.brazil.sunlabs.FormHelpTemplate
Look for a "help" attribute, remember its value, then remove it .
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_sequence(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
Generate a (mostly) numeric sequence.
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_serverprops(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ServerPropsTemplate
Change an intrinsic server property.
tag_set(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ScanTemplate
Steal the "set" tag away from the SetTemplate for my id prefixs! This is an experiment.
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_array(RewriteContext) - Method in class sunlabs.brazil.json.JSONTemplate
 
tag_slash_array(RewriteContext) - Method in class sunlabs.brazil.sunlabs.JSONTemplate
 
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_form(RewriteContext) - Method in class sunlabs.brazil.sunlabs.FormHelpTemplate
Forget about the "help" action.
tag_slash_form(RewriteContext) - Method in class sunlabs.brazil.template.FormTemplate
Forget about the "prepend" value
tag_slash_head(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Mark end of head section.
tag_slash_head(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_slash_highlight(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_slash_item(RewriteContext) - Method in class sunlabs.brazil.json.JSONTemplate
We finished our item: pop and add to our parent (which must be an object)
tag_slash_item(RewriteContext) - Method in class sunlabs.brazil.sunlabs.JSONTemplate
 
tag_slash_json(RewriteContext) - Method in class sunlabs.brazil.sunlabs.JSONTemplate
Reset token accumulation
tag_slash_list(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ListTemplate
remove the most recent list from the current scope.
tag_slash_lock(RewriteContext) - Method in class sunlabs.brazil.sunlabs.LockTemplate
Release the previosly named lock.
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_object(RewriteContext) - Method in class sunlabs.brazil.json.JSONTemplate
 
tag_slash_object(RewriteContext) - Method in class sunlabs.brazil.sunlabs.JSONTemplate
 
tag_slash_script(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_slash_select(RewriteContext) - Method in class sunlabs.brazil.sunlabs.FormHelpTemplate
Needed to retain parent functionality.
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.FormClientTemplate
 
tag_slash_tag(RewriteContext) - Method in class sunlabs.brazil.template.MultipartSetTemplate
 
tag_slash_tag(RewriteContext) - Method in class sunlabs.brazil.template.PropsTemplate
Insert a literal ">"
tag_slash_tag(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
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_ssh(RewriteContext) - Method in class sunlabs.brazil.ssh.SshTemplate
Simple version: one connection per session, no port forwarding.
tag_sshcommand(RewriteContext) - Method in class sunlabs.brazil.ssh.SshTemplate
Run a command synchronously from an existing ssh connection.
tag_stringlength(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
Compute string length from "value" , return in "name"
tag_stringop(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
String manipulation functions.
tag_style(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Append all "style" code while in the head section.
tag_style(RewriteContext) - Method in class sunlabs.brazil.template.HighlightTemplate
 
tag_style(RewriteContext) - Method in class sunlabs.brazil.template.ScriptEvalTemplate
 
tag_subst(RewriteContext) - Method in class sunlabs.brazil.sunlabs.MiscTemplate
Do ${...} substitutions in the current context.
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.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.MultipartSetTemplate
 
tag_tag(RewriteContext) - Method in class sunlabs.brazil.template.PropsTemplate
Insert a literal "<".
tag_tag(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
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_textarea(RewriteContext) - Method in class sunlabs.brazil.sunlabs.FormHelpTemplate
Look for a "help" attribute, remember its value, then remove it .
tag_title(RewriteContext) - Method in class sunlabs.brazil.template.ContentTemplate
Toss everything up to and including this entity.
tag_unimport(RewriteContext) - Method in class sunlabs.brazil.template.SetTemplate
Un-import a previously imported namespace.
tag_unregister(RewriteContext) - Method in class sunlabs.brazil.asterisk.AsteriskHandler
Unregister an event (or events).
tag_validate(RewriteContext) - Method in class sunlabs.brazil.sunlabs.ValidateTemplate
 
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.RewriteContext
Return the number of HTML tags seen to this point.
tagsSeen() - Method in class sunlabs.brazil.template.TemplateRunner
Return the # of HTML tags seen in the previous call to "process".
TclFilter - Class in sunlabs.brazil.tcl
Wrapper for writing FilterHandler filters in TCL.
TclFilter() - Constructor for class sunlabs.brazil.tcl.TclFilter
 
TclHandler - Class in sunlabs.brazil.tcl
Handler for writing handlers in tcl.
TclHandler() - Constructor for class sunlabs.brazil.tcl.TclHandler
 
TclRePollHandler - Class in sunlabs.brazil.tcl
Post-process all "polled" properties with tcl code.
TclRePollHandler() - Constructor for class sunlabs.brazil.tcl.TclRePollHandler
 
TclServerTemplate - Class in sunlabs.brazil.tcl
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 in sunlabs.brazil.template
 
Template() - Constructor for class sunlabs.brazil.template.Template
 
TemplateFilter - Class in sunlabs.brazil.filter
The TemplateFilter sends HTML content through an Html/XML parser to a set of Templates.
TemplateFilter() - Constructor for class sunlabs.brazil.filter.TemplateFilter
 
templateFromTag(String) - Method in class sunlabs.brazil.template.RewriteContext
Get the template that will process the supplied tag (if any).
TemplateHandler - Class in sunlabs.brazil.template
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 in sunlabs.brazil.template
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 in sunlabs.brazil.template
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 in sunlabs.brazil.template
Template class for processing markup through a sequence of template filters.
TemplateTemplate() - Constructor for class sunlabs.brazil.template.TemplateTemplate
 
TestRequest - Class in sunlabs.brazil.server
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
 
title - Variable in class sunlabs.brazil.handler.DialogHandler
 
title - Variable in class sunlabs.brazil.handler.LogHandler
 
TitleTemplate - Class in sunlabs.brazil.sunlabs
Template to look up "title" attributes in a database, and rewrite them.
TitleTemplate() - Constructor for class sunlabs.brazil.sunlabs.TitleTemplate
 
toAlpha(int) - Static method in class sunlabs.brazil.sunlabs.MiscTemplate
 
TOCTemplate - Class in sunlabs.brazil.template
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.asterisk.AsteriskHandler.EventItem
 
toString(String, String) - Method in class sunlabs.brazil.asterisk.AsteriskHandler.EventItem
Machine readable version
toString() - Method in class sunlabs.brazil.asterisk.AsteriskHandler.Events
 
toString() - Method in class sunlabs.brazil.handler.GenericProxyHandler.Cookie
 
toString() - Method in class sunlabs.brazil.handler.HtmlRewriter
Returns the "new" rewritten HTML document.
toString() - Method in class sunlabs.brazil.handler.RePollHandler.Extract
 
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.properties.SubstPropsHandler
 
toString() - Method in class sunlabs.brazil.proxy.CookieFilter.CookieInfo
Generate string representation - convertable back into a cookie
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.DataImageTemplate.Cache
 
toString() - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
 
toString() - Method in class sunlabs.brazil.sunlabs.ScanHtml.DictView
 
toString() - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
 
toString(StringBuffer) - Method in class sunlabs.brazil.sunlabs.ScanHtml.Node
Recursively generate the markup for this node
toString(ScanHtml.Node) - Method in class sunlabs.brazil.sunlabs.ScanHtml
 
toString() - Method in class sunlabs.brazil.sunlabs.ScanHtml
 
toString() - Method in class sunlabs.brazil.sunlabs.XmlTree.DefaultNodeName
 
toString() - Method in exception sunlabs.brazil.sunlabs.XmlTree.IllegalXmlException
 
toString() - Method in class sunlabs.brazil.sunlabs.XmlTree.Node
 
toString() - Method in class sunlabs.brazil.sunlabs.XmlTree
 
toString(XmlTree.Node, StringBuffer, int) - Method in class sunlabs.brazil.sunlabs.XmlTree
Print a tree
toString() - Method in class sunlabs.brazil.template.QueueTemplate.Queue
 
toString() - Method in class sunlabs.brazil.template.QueueTemplate.QueueItem
 
toString() - Method in class sunlabs.brazil.util.http.HttpRequest.HttpSocket
 
toString() - Method in class sunlabs.brazil.util.http.HttpRequest.SimpleHttpSocketPool
 
toString() - Method in class sunlabs.brazil.util.MatchString
print nicely
toString() - Method in class sunlabs.brazil.util.regexp.Regexp
Returns a string representation of this compiled regular expression.
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(String) - 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 supplied argument string.
TrustMeHandler - Class in sunlabs.brazil.sunlabs
Handler for trusting all SSL servers.
TrustMeHandler() - Constructor for class sunlabs.brazil.sunlabs.TrustMeHandler
 

U

unique() - Method in class sunlabs.brazil.sunlabs.ListTemplate.MyList
Remove all non unique elements of the list.
UNKNOWN - Static variable in class sunlabs.brazil.server.FileHandler
 
unsetRewriteState(int) - Method in class sunlabs.brazil.template.RewriteContext
Unset the given state of this RewriteContext.
unsubst(String) - Static method in class sunlabs.brazil.util.Format
Make an html string suitable for including as an attribute value.
update() - Method in class sunlabs.brazil.proxy.CookieFilter.CookieInfo
 
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.ssl.SslPollHandler
 
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 in sunlabs.brazil.filter
Filter to Map url's from any proxied content.
UrlMapFilter() - Constructor for class sunlabs.brazil.filter.UrlMapFilter
 
UrlMapperHandler - Class in sunlabs.brazil.handler
Handler for mapping URL's or HTTP headers, or redirecting URLs based on the contents of the current HTTP request.
UrlMapperHandler() - Constructor for class sunlabs.brazil.handler.UrlMapperHandler
 
UrlMapperHandler.MapProperties - Class in sunlabs.brazil.handler
Look in a dictionary first, then the provided properties.
UrlMapperHandler.MapProperties(Properties, Dictionary) - Constructor for class sunlabs.brazil.handler.UrlMapperHandler.MapProperties
 
UrlNavBarTemplate - Class in sunlabs.brazil.template
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
 
urlSep - Variable in class sunlabs.brazil.filter.SessionFilter
 
UrlSessionFilter - Class in sunlabs.brazil.filter
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 in sunlabs.brazil.proxy
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

ValidateTemplate - Class in sunlabs.brazil.sunlabs
The ValidateTemplate is designed to validate HTML forms.
ValidateTemplate() - Constructor for class sunlabs.brazil.sunlabs.ValidateTemplate
 
ValidateTemplate.GlobFormat - Class in sunlabs.brazil.sunlabs
Special version of a format that uses uses the previously defined GlobProperties.
ValidateTemplate.GlobFormat() - Constructor for class sunlabs.brazil.sunlabs.ValidateTemplate.GlobFormat
 
ValidateTemplate.GlobProperties - Class in sunlabs.brazil.sunlabs
Special version of a properties that uses the sub expresions of the supplied glob pattern and type to define the keys 1-9.
ValidateTemplate.GlobProperties(Properties, String, String) - Constructor for class sunlabs.brazil.sunlabs.ValidateTemplate.GlobProperties
 
value(String, StringTokenizer, ScanHtml.Node) - Method in class sunlabs.brazil.sunlabs.ScanHtml.Viewer
return a tring representation of "name" for "node".
value(ScanHtml.Node) - Method in class sunlabs.brazil.sunlabs.ScanHtml.Viewer
For simple stuff.
values() - Method in class sunlabs.brazil.properties.PropertiesList
Invokes the same method on the wrapped Hashtable object.
values - Static variable in class sunlabs.brazil.sunlabs.ScanHtml
 
valueTemplate - Variable in class sunlabs.brazil.handler.SimpleSessionHandler
 
vcardFields - Static variable in class sunlabs.brazil.xmpp.IMTemplate
 
VelocityFilter - Class in sunlabs.brazil.velocity
A filter for processing markup that is a Velocity template.
VelocityFilter() - Constructor for class sunlabs.brazil.velocity.VelocityFilter
 
VelocityFilter.Vrequest - Class in sunlabs.brazil.velocity
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 in sunlabs.brazil.velocity
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
 
version - Variable in class sunlabs.brazil.server.Request
Derived from Request.protocol, the version of the HTTP protocol used for this request.
version - Static variable in class sunlabs.brazil.server.Server
Server version string.
version - Variable in class sunlabs.brazil.util.http.HttpRequest
The HTTP version string.
VirtualHostHandler - Class in sunlabs.brazil.handler
Handler for managing virtual hosts using the same server configuration.
VirtualHostHandler() - Constructor for class sunlabs.brazil.handler.VirtualHostHandler
 

W

WebMountHandler - Class in sunlabs.brazil.sunlabs
Handler for implementing "mounted" web sites.
WebMountHandler() - Constructor for class sunlabs.brazil.sunlabs.WebMountHandler
 
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 in sunlabs.brazil.sunlabs
Create a tree representation of an xml file whose parts may be referenced as a dictionary.
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.
XmlTree.DefaultNodeName - Class in sunlabs.brazil.sunlabs
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 in sunlabs.brazil.sunlabs
Do some more reasonable error handling.
XmlTree.IllegalXmlException(String) - Constructor for exception sunlabs.brazil.sunlabs.XmlTree.IllegalXmlException
 
XmlTree.Node - Class in sunlabs.brazil.sunlabs
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 in sunlabs.brazil.sunlabs
 
XmlTree.XmlErrorInfo - Class in sunlabs.brazil.sunlabs
 
XmlTree.XmlErrorInfo(int, String, int, String) - Constructor for class sunlabs.brazil.sunlabs.XmlTree.XmlErrorInfo
 
XmlTreeTemplate - Class in sunlabs.brazil.sunlabs
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 Kenai-svn-r24, Generated 08/18/09
Copyright (c) 2001-2009, Sun Microsystems.