Brazil project: Index
A B C D E F G H I J K L M N O P Q R S T U V W
A
acceptCount -
Variable in class sunlabs.brazil.server.Server
Count of accepted connections so far.
accumulate(boolean) -
Method in class sunlabs.brazil.handler.HtmlRewriter
Turns on or off the automatic accumulation of each token.
AclSwitchHandler - class sunlabs.brazil.handler.AclSwitchHandler .Simple access control hander based on url prefixes. 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.
addHeader(String) -
Method in class sunlabs.brazil.server.Request
Adds a response header to the HTTP response.
addHeader(String, String) -
Method in class sunlabs.brazil.server.Request
Adds a response header to the HTTP response.
AddHeaderTemplate - class sunlabs.brazil.template.AddHeaderTemplate .SAMPLE Template class for adding arbitrary mime headers to a reply
This class is used by the TemplateHandler AddHeaderTemplate() -
Constructor for class sunlabs.brazil.template.AddHeaderTemplate
addMap(MapPage) -
Method in class sunlabs.brazil.handler.GenericProxyHandler
for subclassing
addMap(MapPage) -
Method in class sunlabs.brazil.handler.MultiProxyHandler
this gets called by the parent class.
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
addTag(String, String) -
Method in class sunlabs.brazil.handler.MapPage
add a tag/attribute pair to the rewrite list.
admin -
Variable in class sunlabs.brazil.proxy.CookieFilter
admin -
Variable in class sunlabs.brazil.proxy.HistoryFilter
ALLOW -
Static variable in class sunlabs.brazil.server.FileHandler
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.
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.
auth -
Variable in class sunlabs.brazil.proxy.ProxyHandler
The string to send as the value for the "Proxy-Authorization"
HTTP header (if needed).
AUTH -
Static variable in class sunlabs.brazil.proxy.ProxyHandler
authenticate -
Variable in class sunlabs.brazil.handler.BasicAuthHandler
authorization -
Variable in class sunlabs.brazil.handler.BasicAuthHandler
B
Base64 - class sunlabs.brazil.util.Base64 .Utility to base64 encode a string
I'll write the decoder when I need it. Base64() -
Constructor for class sunlabs.brazil.util.Base64
BasicAuthHandler - class sunlabs.brazil.handler.BasicAuthHandler .The BasicAuthHandler obtains a Session ID by performing
"basic" authentication, using either the "Authorization" or the
"Proxy-Authorization" headers. BasicAuthHandler() -
Constructor for class sunlabs.brazil.handler.BasicAuthHandler
BSLTemplate - class sunlabs.brazil.template.BSLTemplate .The BSLTemplate takes an HTML document with embedded "BSL"
markup tags in it and evaluates those special tags to produce a
standard HTML document. BSLTemplate() -
Constructor for class sunlabs.brazil.template.BSLTemplate
bufsize -
Variable in class sunlabs.brazil.server.Server
Default buffer size for copies to and from client sockets.
BUFSIZE -
Static variable in class sunlabs.brazil.handler.ChainSawHandler
bytesWritten -
Variable in class sunlabs.brazil.server.Request.HttpOutputStream
Count the number of bytes that are written to this stream
C
cancel -
Variable in class sunlabs.brazil.handler.DialogHandler
CgiHandler - class sunlabs.brazil.handler.CgiHandler .Handler for implementing cgi/1.1 interface. CgiHandler() -
Constructor for class sunlabs.brazil.handler.CgiHandler
ChainHandler - class sunlabs.brazil.server.ChainHandler .Allows multiple handlers to be invoked sequentially for a single HTTP
request. ChainHandler() -
Constructor for class sunlabs.brazil.server.ChainHandler
ChainSawHandler - class sunlabs.brazil.handler.ChainSawHandler .Variant of the chain handler for doing standard logging. ChainSawHandler() -
Constructor for class sunlabs.brazil.handler.ChainSawHandler
ChangedTemplate - class sunlabs.brazil.template.ChangedTemplate .This Template adds an icon to HREFs to indicate when the
file being referred to is new, changed, or unchanged with respect
to the user's session. ChangedTemplate() -
Constructor for class sunlabs.brazil.template.ChangedTemplate
clear() -
Method in class sunlabs.brazil.util.StringMap
Removes all the keys and values from this StringMap.
close() -
Method in class sunlabs.brazil.server.Server
Stop the server, and kill all pending requests
close() -
Method in class sunlabs.brazil.util.http.HttpRequest
Gracefully closes this HTTP request when user is done with it.
close(HttpSocket, boolean) -
Method in interface sunlabs.brazil.util.http.HttpSocketPool
Releases an HttpSocket to this pool when it is not
in use any more.
code -
Variable in class sunlabs.brazil.handler.BasicAuthHandler
COMMENT -
Static variable in class sunlabs.brazil.util.LexML
The value returned by getType for comment tokens
comment(RewriteContext) -
Method in class sunlabs.brazil.template.IncludeTemplate
Treat comments of the form:
<!#include ...> as if they were include tags.
compare(Object, int, int) -
Method in interface sunlabs.brazil.util.Sort.Compare
Compare two elements in the given array.
complain(Request, String) -
Method in class sunlabs.brazil.handler.BasicAuthHandler
Authentication failed.
ConfigFileHandler - class sunlabs.brazil.handler.ConfigFileHandler .Handler for manipulating per-user session state that can be
represented as ASCII name/value pairs. ConfigFileHandler() -
Constructor for class sunlabs.brazil.handler.ConfigFileHandler
connect() -
Method in class sunlabs.brazil.util.http.HttpRequest
Connect to the target host (or proxy), send the request, and read the
response headers.
connectionHeader -
Variable in class sunlabs.brazil.server.Request
The header "Connection" usually controls whether the client
connection will be of type "Keep-Alive" or "close".
content() -
Method in class sunlabs.brazil.handler.PushHandler.Split
Get the content as a string
ContentTemplate - class sunlabs.brazil.template.ContentTemplate .Template class for extracting content out of remote html page
This class is used by the TemplateHandler, and is intented for extracting
the "content" out of html documents for later integration with
a look-and-feel template using one or more of:
PropsTemplate ,
BSLTemplate ,
or
ReplaceFilter ,
The plan is to snag the title and the content, and put them into
request properties. ContentTemplate() -
Constructor for class sunlabs.brazil.template.ContentTemplate
convertHtml(String) -
Method in class sunlabs.brazil.handler.MapPage
Rewrite all the url's in this document.
convertString(String) -
Method in class sunlabs.brazil.handler.MapPage
Rewrite a url inside a tag parameter.
CookieFilter - class sunlabs.brazil.proxy.CookieFilter .The CookieFilter keeps a
record of all the browser cookies associated with a given session. CookieFilter() -
Constructor for class sunlabs.brazil.proxy.CookieFilter
cookieName -
Variable in class sunlabs.brazil.handler.CookieSessionHandler
CookieSessionHandler - class sunlabs.brazil.handler.CookieSessionHandler .Handler for creating browser sessions using cookies. CookieSessionHandler() -
Constructor for class sunlabs.brazil.handler.CookieSessionHandler
CopyContentFilter - class sunlabs.brazil.filter.CopyContentFilter .Filter to save content (of an entire site) to a disk file. CopyContentFilter() -
Constructor for class sunlabs.brazil.filter.CopyContentFilter
copyTo(MimeHeaders) -
Method in class sunlabs.brazil.util.http.MimeHeaders
Copies the contents of this MimeHeaders object,
adding all the other's keys and values to the other.
copyTo(OutputStream) -
Method in class sunlabs.brazil.util.http.HttpInputStream
Copies bytes from this input stream to the specified output stream
until end of the input stream is reached.
copyTo(OutputStream, int) -
Method in class sunlabs.brazil.util.http.HttpInputStream
Copies bytes from this input stream to the specified output stream
until the specified number of bytes are copied or the end of the
input stream is reached.
copyTo(OutputStream, int, byte[]) -
Method in class sunlabs.brazil.util.http.HttpInputStream
Copies bytes from this input stream to the specified output stream
until the specified number of bytes are copied or the end of the
input stream is reached.
count -
Variable in class sunlabs.brazil.handler.MapPage
D
DEFAULT -
Static variable in class sunlabs.brazil.server.FileHandler
defaultBufsize -
Static variable in class sunlabs.brazil.util.http.HttpInputStream
The default size of the temporary buffer used when copying from an
input stream to an output stream.
defaultFactory -
Static variable in interface sunlabs.brazil.util.SocketFactory
The default socket factory.
defaultHTTPVersion -
Static variable in class sunlabs.brazil.util.http.HttpRequest
The default HTTP version string to send to the remote host when
issuing requests.
defaultProxyHost -
Static variable in class sunlabs.brazil.util.http.HttpRequest
The default proxy host for HTTP requests.
defaultProxyPort -
Static variable in class sunlabs.brazil.util.http.HttpRequest
The default proxy port for HTTP requests.
DeferredHandler - class sunlabs.brazil.handler.DeferredHandler .Wrap another handler, deferring its initialization until request time. DeferredHandler() -
Constructor for class sunlabs.brazil.handler.DeferredHandler
DialogHandler - class sunlabs.brazil.handler.DialogHandler .Sample handler for popping up a dialog box on the server. DialogHandler() -
Constructor for class sunlabs.brazil.handler.DialogHandler
DirectoryHandler - class sunlabs.brazil.handler.DirectoryHandler .Handler for directory lists. DirectoryHandler() -
Constructor for class sunlabs.brazil.handler.DirectoryHandler
DirectoryTemplate - class sunlabs.brazil.template.DirectoryTemplate .Put current directory information (based on the URL) into the
request properties. DirectoryTemplate() -
Constructor for class sunlabs.brazil.template.DirectoryTemplate
disconnect() -
Method in class sunlabs.brazil.util.http.HttpRequest
Interrupts this HTTP request.
dismiss(boolean) -
Method in class sunlabs.brazil.handler.DialogHandler
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.Template
Called after all tags have been processed, one final chance.
done(RewriteContext) -
Method in class sunlabs.brazil.template.RedirectTemplate
adjust the response headers to reflect redirection, if supplied.
done(RewriteContext) -
Method in class sunlabs.brazil.template.FormTemplate
This is for debugging only !!
done(RewriteContext) -
Method in class sunlabs.brazil.template.ChangedTemplate
done(RewriteContext) -
Method in class sunlabs.brazil.template.ContentTemplate
extract useful properties out of the mime headers too
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.
DynamicConfigHandler - class sunlabs.brazil.handler.DynamicConfigHandler .The DynamicConfigHandler allows the user to change the
configuration of the server and its handlers on the fly. DynamicConfigHandler() -
Constructor for class sunlabs.brazil.handler.DynamicConfigHandler
E
elements() -
Method in class sunlabs.brazil.util.StringMap
Returns an enumeration of the values in this StringMap.
encode(String) -
Static method in class sunlabs.brazil.util.Base64
base-64 encode a string
errorCount -
Variable in class sunlabs.brazil.server.Server
Count of errors that occurred so far.
extractQuery(String, Dictionary) -
Static method in class sunlabs.brazil.util.http.HttpUtil
Turns x-www-form-urlencoded form data into a dictionary.
F
FileHandler - class sunlabs.brazil.server.FileHandler .Standard handler for fetching static files. FileHandler() -
Constructor for class sunlabs.brazil.server.FileHandler
filter -
Variable in class sunlabs.brazil.proxy.HistoryFilter
Filter - interface sunlabs.brazil.filter.Filter .The Filter interface is used by the
FilterHandler
to examine and dynamically rewrite the contents of web pages obtained from
some source before returning that page to the client. filter(Regsub, StringBuffer) -
Method in interface sunlabs.brazil.util.regexp.Regexp.Filter
Given the current state of the match, generate the replacement
string.
filter(Request, MimeHeaders, byte[]) -
Method in class sunlabs.brazil.filter.PlainFilter
Wrap html around text/plain, converting it to html.
filter(Request, MimeHeaders, byte[]) -
Method in class sunlabs.brazil.filter.UrlSessionFilter
Rewrite all the url's, adding the session id to the end
filter(Request, MimeHeaders, byte[]) -
Method in class sunlabs.brazil.filter.TemplateFilter
Evaluates the content as html/XML tags, if the file is (or has now been
converted to) "text/html".
filter(Request, MimeHeaders, byte[]) -
Method in interface sunlabs.brazil.filter.Filter
Filters the content generated by the wrapped Handler.
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.CopyContentFilter
Grab the contents, and save as a file (if file doesn't already exist).
filter(Request, MimeHeaders, byte[]) -
Method in class sunlabs.brazil.proxy.CookieFilter
Returns the original content, since this filter does not change
content; it changes the headers.
filter(Request, MimeHeaders, byte[]) -
Method in class sunlabs.brazil.proxy.HistoryFilter
Returns the original content, since this filter does not change
content.
filter(Request, MimeHeaders, byte[]) -
Method in class sunlabs.brazil.tcl.TclFilter
FilterHandler - class sunlabs.brazil.filter.FilterHandler .The FilterHandler captures the output of some
Handler and then applies an number of
Filters to change that output
before it is returned to the client. FilterHandler() -
Constructor for class sunlabs.brazil.filter.FilterHandler
firstTime -
Variable in class sunlabs.brazil.util.http.HttpSocket
FLUSH -
Static variable in class sunlabs.brazil.handler.ChainSawHandler
fmt(String, Object[]) -
Static method in class sunlabs.brazil.util.Format
Foreach instance of %i (i = 1...9) in the format parameter,
replace it with the value of ith element of the
array, by calling its toString method.
fmt(String, Object[], Properties) -
Static method in class sunlabs.brazil.util.Format
fmt(String, Properties) -
Static method in class sunlabs.brazil.util.Format
Foreach instance of %key% in the format parameter,
replace it with the value of key in the properties, or the
empty string if key is not found.
Format - class sunlabs.brazil.util.Format .Format a string by substituting values into it,
either from an array of strings, or 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.
FormTemplate - class sunlabs.brazil.template.FormTemplate .SAMPLE Template class for substituting Default values into html forms
This class is used by the TemplateHandler. FormTemplate() -
Constructor for class sunlabs.brazil.template.FormTemplate
frame_1 -
Variable in class sunlabs.brazil.handler.DialogHandler
G
GenericProxyHandler - class sunlabs.brazil.handler.GenericProxyHandler .Handler for implementing a virtual web site. GenericProxyHandler() -
Constructor for class sunlabs.brazil.handler.GenericProxyHandler
get(int) -
Method in class sunlabs.brazil.util.StringMap
Returns the value at the specified index.
get(Object) -
Method in class sunlabs.brazil.util.StringMap
Performs the same job as get(String).
get(String) -
Method in class sunlabs.brazil.handler.HtmlRewriter
Returns the value that the specified case-insensitive key maps
to in the attributes for the current tag.
get(String) -
Method in class sunlabs.brazil.util.StringMap
Returns the value that the specified case-insensitive key maps to
in this StringMap.
get(String, int, boolean) -
Method in interface sunlabs.brazil.util.http.HttpSocketPool
Returns an HttpSocket that can be used to communicate
with the specified port on the named host.
getArgs() -
Method in class sunlabs.brazil.handler.HtmlRewriter
getArgs() -
Method in class sunlabs.brazil.util.LexML
Gets the name/value pairs in the body of the current tag as a
string.
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.
getClosingTags() -
Method in class sunlabs.brazil.util.LexHTML
Get the set of HTML tags that have the special body-processing
behavior mentioned above .
getContent() -
Method in class sunlabs.brazil.template.TemplateRunner
Return the content of the template just processed, or null if
there was no template processed.
getContent(Request, File) -
Method in class sunlabs.brazil.template.TemplateHandler
get the content associated with this template.
getContentLength() -
Method in class sunlabs.brazil.util.http.HttpRequest
Convenience method to get the "Content-Length" header from the
HTTP response.
getDefaults() -
Method in class sunlabs.brazil.server.Request.RechainableProperties
Return the current "default" properties for this object.
getError() -
Method in class sunlabs.brazil.template.TemplateRunner
Return the last error message generated, or null of no
errors have occurred sunce the last call to "process".
getFiles(Request, String) -
Method in class sunlabs.brazil.template.DirectoryTemplate
Generate properties containing the files and directories in
the "current" directory.
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.
getKey(int) -
Method in class sunlabs.brazil.util.StringMap
Returns the key at the specified index.
getOutputStream() -
Method in class sunlabs.brazil.util.http.HttpRequest
Gets an output stream that can be used for uploading data to the
host.
getProperty(Properties, String, String) -
Static method in class sunlabs.brazil.template.PropsTemplate
Allow a property name to contain the value of another
property, permitting nested variable substitution in attribute
values.
getQueryData() -
Method in class sunlabs.brazil.server.Request
Retrieves the query data as a hashtable.
getQueryData(Hashtable) -
Method in class sunlabs.brazil.server.Request
Retrieves the query data as a hashtable.
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.
getSession(Object, Object, Class) -
Static method in class sunlabs.brazil.session.SessionManager
Returns the object associated with the given Session ID.
getSessionObject(Object, Object, Class) -
Method in class sunlabs.brazil.session.SessionManager
Returns the object associated with the given Session ID and ident.
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.
getStatusPhrase(int) -
Static method in class sunlabs.brazil.util.http.HttpUtil
Returns the HTTP error string associated with the integer error code.
getTag() -
Method in class sunlabs.brazil.handler.HtmlRewriter
Gets the current tag's name.
getTag() -
Method in class sunlabs.brazil.util.LexML
Gets the tag name at the beginning of the current tag.
getTag() -
Method in class sunlabs.brazil.util.LexHTML
Gets the tag name at the begining of the current tag.
getToken() -
Method in class sunlabs.brazil.handler.HtmlRewriter
Gets the raw string making up the entire current token, including
the angle brackets or comment delimiters, if applicable.
getToken() -
Method in class sunlabs.brazil.util.LexML
Gets the string making up the whole current token, including the
brackets or comment delimiters, if appropriate.
getType() -
Method in class sunlabs.brazil.handler.HtmlRewriter
Gets the type of the current token.
getType() -
Method in class sunlabs.brazil.util.LexML
Gets the type of the current token.
Glob - class sunlabs.brazil.util.Glob .Glob-style string matching and substring extraction.
H
handle(Signal) -
Method in class sunlabs.brazil.session.SerialPersist
handleEvent(Event) -
Method in class sunlabs.brazil.handler.DialogHandler
handler -
Variable in class sunlabs.brazil.server.Server
Handler - interface sunlabs.brazil.server.Handler .The interface for writing HTTP handlers. handlers -
Variable in class sunlabs.brazil.server.ChainHandler
The array of handlers that will be invoked to handle
the request.
header() -
Method in class sunlabs.brazil.handler.PushHandler.Split
Return the header as a string
headers -
Variable in class sunlabs.brazil.server.Request
The HTTP request headers.
HistoryFilter - class sunlabs.brazil.proxy.HistoryFilter .The HistoryFilter is both a Handler and a
Filter that keeps a record of all pages visited by a
given session. HistoryFilter() -
Constructor for class sunlabs.brazil.proxy.HistoryFilter
HomeDirHandler - class sunlabs.brazil.handler.HomeDirHandler .Handler for converting ~username queries. HomeDirHandler() -
Constructor for class sunlabs.brazil.handler.HomeDirHandler
host -
Variable in class sunlabs.brazil.handler.GenericProxyHandler
host -
Variable in class sunlabs.brazil.util.http.HttpSocket
host -
Variable in class sunlabs.brazil.util.http.HttpRequest
The host extracted from the URL used to construct this
HttpRequest.
HOST -
Static variable in class sunlabs.brazil.handler.GenericProxyHandler
Handler configuration property host .
hostName -
Variable in class sunlabs.brazil.server.Server
The hostname that this Server should use to identify itself in
an HTTP Redirect.
htmlEncode(String) -
Static method in class sunlabs.brazil.util.http.HttpUtil
Converts a string into a valid HTML fragment.
HtmlRewriter - class sunlabs.brazil.handler.HtmlRewriter .This class helps with parsing and rewriting an HTML document. HtmlRewriter(LexHTML) -
Constructor for class sunlabs.brazil.handler.HtmlRewriter
Creates a new HtmlRewriter from the given HTML parser.
HtmlRewriter(String) -
Constructor for class sunlabs.brazil.handler.HtmlRewriter
Creates a new HtmlRewriter that will operate on the given
string.
HttpInputStream - class sunlabs.brazil.util.http.HttpInputStream .This class is an input stream that provides added methods that are
of help when reading the result of an HTTP request. HttpInputStream(InputStream) -
Constructor for class sunlabs.brazil.util.http.HttpInputStream
Creates a new HttpInputStream that reads its input from the
specified input stream.
HttpRequest - class sunlabs.brazil.util.http.HttpRequest .Sends an HTTP request to some target host and gets the answer back. HttpRequest(String) -
Constructor for class sunlabs.brazil.util.http.HttpRequest
Creates a new HttpRequest object that will send an
HTTP request to fetch the resource represented by the URL.
HttpRequest(URL) -
Constructor for class sunlabs.brazil.util.http.HttpRequest
Creates a new HttpRequest object that will send an
HTTP request to fetch the resource represented by the URL.
HttpSocket - class sunlabs.brazil.util.http.HttpSocket .This class is used as the bag of information kept about a open, idle
socket. HttpSocket(String, int) -
Constructor for class sunlabs.brazil.util.http.HttpSocket
HttpSocketPool - interface sunlabs.brazil.util.http.HttpSocketPool .This interface represents a cache of idle sockets. HttpUtil - class sunlabs.brazil.util.http.HttpUtil .The HttpUtil class contains methods for performing simple
HTTP operations.
I
ID_KEY -
Static variable in class sunlabs.brazil.handler.RolesHandler
Handler configuration property SessionID .
ident -
Variable in class sunlabs.brazil.handler.CookieSessionHandler
ident -
Variable in class sunlabs.brazil.handler.BasicAuthHandler
in -
Variable in class sunlabs.brazil.util.http.HttpSocket
IncludeTemplate - class sunlabs.brazil.template.IncludeTemplate .Template class for substituting html pages into an html page. IncludeTemplate() -
Constructor for class sunlabs.brazil.template.IncludeTemplate
indexOf(byte[], int, int, byte[], int, int) -
Static method in class sunlabs.brazil.handler.PushHandler
Find the index of dst in src or -1 if not found >
This is the byte array equivalent to string.indexOf()
indexOf(byte[], int, int, String) -
Static method in class sunlabs.brazil.handler.PushHandler
init() -
Method in class sunlabs.brazil.handler.DialogHandler
Machine generated code.
init(RewriteContext) -
Method in class sunlabs.brazil.tcl.TclServerTemplate
Called at the beginning of each HTML document that this
TclServerTemplate is asked to process.
init(RewriteContext) -
Method in class sunlabs.brazil.template.Template
Called before this template processes any tags.
init(RewriteContext) -
Method in class sunlabs.brazil.template.UrlNavBarTemplate
Compute a set of properties based on the URL
init(RewriteContext) -
Method in class sunlabs.brazil.template.FormTemplate
Save a reference to our request properties.
init(RewriteContext) -
Method in class sunlabs.brazil.template.TOCTemplate
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.PropsTemplate
This gets called at every page, at the beginning.
init(RewriteContext) -
Method in class sunlabs.brazil.template.SqlTemplate
init(RewriteContext) -
Method in class sunlabs.brazil.template.DirectoryTemplate
Reset at each page
init(RewriteContext) -
Method in class sunlabs.brazil.template.BSLTemplate
Called at the beginning of each HTML document that this
BSLTemplate is asked to process.
init(Server, String) -
Method in class sunlabs.brazil.filter.PlainFilter
init(Server, String) -
Method in class sunlabs.brazil.filter.FilterHandler
Start the handler and filter classes.
init(Server, String) -
Method in class sunlabs.brazil.filter.UrlSessionFilter
init(Server, String) -
Method in class sunlabs.brazil.filter.TemplateFilter
init(Server, String) -
Method in class sunlabs.brazil.filter.ReplaceFilter
init(Server, String) -
Method in class sunlabs.brazil.filter.CopyContentFilter
init(Server, String) -
Method in class sunlabs.brazil.handler.CookieSessionHandler
init(Server, String) -
Method in class sunlabs.brazil.handler.CgiHandler
One time initialization.
init(Server, String) -
Method in class sunlabs.brazil.handler.DialogHandler
Do one time initialization.
init(Server, String) -
Method in class sunlabs.brazil.handler.AclSwitchHandler
init(Server, String) -
Method in class sunlabs.brazil.handler.RolesHandler
init(Server, String) -
Method in class sunlabs.brazil.handler.ReflectHandler
Initialize the handler.
init(Server, String) -
Method in class sunlabs.brazil.handler.NotFoundHandler
Extract the handler properties.
init(Server, String) -
Method in class sunlabs.brazil.handler.ConfigFileHandler
Make sure default properties exist before starting this handler.
init(Server, String) -
Method in class sunlabs.brazil.handler.SMTPHandler
init(Server, String) -
Method in class sunlabs.brazil.handler.GenericProxyHandler
Do one-time setup.
init(Server, String) -
Method in class sunlabs.brazil.handler.MultiProxyHandler
Initialize this handler.
init(Server, String) -
Method in class sunlabs.brazil.handler.UrlMapperHandler
init(Server, String) -
Method in class sunlabs.brazil.handler.ChainSawHandler
init(Server, String) -
Method in class sunlabs.brazil.handler.ProxyPropertiesHandler
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.DynamicConfigHandler
Initializes this DynamicConfigHandler by loading the
initial handler.
init(Server, String) -
Method in class sunlabs.brazil.handler.ResourceHandler
init(Server, String) -
Method in class sunlabs.brazil.handler.VirtualHostHandler
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.BasicAuthHandler
Initializes this handler.
init(Server, String) -
Method in class sunlabs.brazil.handler.DirectoryHandler
Get the url prefix for this handler.
init(Server, String) -
Method in class sunlabs.brazil.handler.HomeDirHandler
Get and set the configuration parameters.
init(Server, String) -
Method in class sunlabs.brazil.proxy.JunkBusterHandler
init(Server, String) -
Method in class sunlabs.brazil.proxy.CookieFilter
init(Server, String) -
Method in class sunlabs.brazil.proxy.ProxyHandler
Do one-time setup.
init(Server, String) -
Method in class sunlabs.brazil.proxy.HistoryFilter
Initializes this filter by reading all its configuration properties.
init(Server, String) -
Method in class sunlabs.brazil.proxy.SunProxy
Called when the Server is being initialized to install
this object as the SocketFactory for the
HttpRequest.
init(Server, String) -
Method in class sunlabs.brazil.server.ChainHandler
Initializes this ChainHandler by initializing all the
"wrapped" handlers in the list of handlers.
init(Server, String) -
Method in interface sunlabs.brazil.server.Handler
Initializes the handler.
init(Server, String) -
Method in class sunlabs.brazil.server.MultiHostHandler
Initializes the servers for the virtual hosts.
init(Server, String) -
Method in class sunlabs.brazil.server.FileHandler
Initialize the file handler.
init(Server, String) -
Method in class sunlabs.brazil.session.SerialPersist
init(Server, String) -
Method in class sunlabs.brazil.tcl.TclFilter
extract the filter properties.
init(Server, String) -
Method in class sunlabs.brazil.tcl.TclHandler
Create a tcl interp, extract the properties, and run the init script
init(Server, String) -
Method in class sunlabs.brazil.template.TemplateHandler
init(Server, String) -
Method in class sunlabs.brazil.template.DirectoryTemplate
initHandler(Server, String, String) -
Static method in class sunlabs.brazil.server.ChainHandler
Helper function that allocates and initializes a new
Handler, given its name.
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.
isEmpty() -
Method in class sunlabs.brazil.util.StringMap
Tests if there are any elements in this StringMap.
isMine(Request) -
Method in class sunlabs.brazil.handler.GenericProxyHandler
See if this is one of my requests.
J
JunkBusterHandler - class sunlabs.brazil.proxy.JunkBusterHandler .Remove junk images from web pages. JunkBusterHandler() -
Constructor for class sunlabs.brazil.proxy.JunkBusterHandler
K
keepAlive -
Variable in class sunlabs.brazil.server.Request
true if the client requested a persistent connection,
false otherwise.
keys() -
Method in class sunlabs.brazil.handler.HtmlRewriter
Returns an enumeration of the keys in the current tag's attributes.
keys() -
Method in class sunlabs.brazil.util.StringMap
Returns an enumeration of the keys in this StringMap.
killToken() -
Method in class sunlabs.brazil.handler.HtmlRewriter
Tells this HtmlRewriter not to append the current token
to the resultant HTML document.
L
lastUsed -
Variable in class sunlabs.brazil.util.http.HttpSocket
length() -
Method in class sunlabs.brazil.handler.PushHandler.Split
Return the content length
lex -
Variable in class sunlabs.brazil.handler.HtmlRewriter
The parser for the source HTML document.
LexHTML - class sunlabs.brazil.util.LexHTML .This class breaks up HTML into tokens. LexHTML(String) -
Constructor for class sunlabs.brazil.util.LexHTML
Creates a new HTML parser, which can be used to iterate over the
tokens in the given string.
LexML - class sunlabs.brazil.util.LexML .This class breaks angle-bracket-separated markup languages like SGML, XML,
and HTML into tokens. LexML(String) -
Constructor for class sunlabs.brazil.util.LexML
Create a new ML parser, which can be used to iterate over the
tokens in the given string.
LINE_LIMIT -
Static variable in class sunlabs.brazil.util.http.HttpRequest
Maximum length of a line in the HTTP response headers (sanity check).
listen -
Variable in class sunlabs.brazil.server.Server
The listening socket.
loadUrls(Properties, String, String) -
Method in class sunlabs.brazil.proxy.JunkBusterHandler
log -
Static variable in class sunlabs.brazil.handler.MapPage
LOG -
Static variable in class sunlabs.brazil.handler.ChainSawHandler
LOG_DIAGNOSTIC -
Static variable in class sunlabs.brazil.server.Server
LOG_ERROR -
Static variable in class sunlabs.brazil.server.Server
LOG_INFORMATIONAL -
Static variable in class sunlabs.brazil.server.Server
LOG_LOG -
Static variable in class sunlabs.brazil.server.Server
LOG_WARNING -
Static variable in class sunlabs.brazil.server.Server
log(int, Object, String) -
Method in class sunlabs.brazil.server.Server
Logs information about the socket to System.out.
log(int, Object, String) -
Method in class sunlabs.brazil.server.Request
Logs a message by calling Server.log.
log(int, String) -
Method in class sunlabs.brazil.server.Request
Logs a message by calling Server.log.
log(String) -
Method in class sunlabs.brazil.handler.MapPage
diagnostic output
logLevel -
Variable in class sunlabs.brazil.server.Server
The diagnostic level.
M
Main - class sunlabs.brazil.server.Main .Sample main program for starting an http server. Main() -
Constructor for class sunlabs.brazil.server.Main
main(String[]) -
Static method in class sunlabs.brazil.server.Main
main(String[]) -
Static method in class sunlabs.brazil.util.regexp.Regexp
main(String[]) -
Static method in class sunlabs.brazil.util.Base64
main(String[]) -
Static method in class sunlabs.brazil.util.Format
MAP -
Static variable in class sunlabs.brazil.handler.RolesHandler
Handler configuration property mapFile .
mapCount() -
Method in class sunlabs.brazil.handler.MapPage
How many tags have been mapped?
mapFile -
Variable in class sunlabs.brazil.handler.BasicAuthHandler
MapPage - class sunlabs.brazil.handler.MapPage .Utility class to rewrite links inside of web pages so they appear to
come from a different site. MapPage(String) -
Constructor for class sunlabs.brazil.handler.MapPage
Create a site mapper.
match(String) -
Method in class sunlabs.brazil.util.regexp.Regexp
Matches the given string against this regular expression.
match(String, int[]) -
Method in class sunlabs.brazil.util.regexp.Regexp
Matches the given string against this regular expression, and computes
the set of substrings that matched the parenthesized subexpressions.
match(String, String) -
Static method in class sunlabs.brazil.util.Glob
Match a string against a pattern.
match(String, String[]) -
Method in class sunlabs.brazil.util.regexp.Regexp
Matches the given string against this regular expression, and computes
the set of substrings that matched the parenthesized subexpressions.
match(String, String, String[]) -
Static method in class sunlabs.brazil.util.Glob
Match a string against a pattern, and return sub-matches.
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.
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
message -
Variable in class sunlabs.brazil.handler.BasicAuthHandler
method -
Variable in class sunlabs.brazil.server.Request
The HTTP request method, such as "GET", "POST", or "PUT".
method -
Variable in class sunlabs.brazil.util.http.HttpRequest
The HTTP method, such as "GET", "POST", or "HEAD".
MIME -
Static variable in class sunlabs.brazil.server.FileHandler
MimeHeaders - class sunlabs.brazil.util.http.MimeHeaders .This class is build on top of the StringMap class and
provides added methods that are of help when manipulating MIME headers. MimeHeaders() -
Constructor for class sunlabs.brazil.util.http.MimeHeaders
Creates a new, empty MimeHeaders object.
MimeHeaders(HttpInputStream) -
Constructor for class sunlabs.brazil.util.http.MimeHeaders
Creates a new MimeHeaders object and then initializes
it by reading MIME headers from the specified input stream.
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
MultiHostHandler - class sunlabs.brazil.server.MultiHostHandler .The MultiHostHandler allows the user to handle a set
of host names that are all running on the same IP address. MultiHostHandler() -
Constructor for class sunlabs.brazil.server.MultiHostHandler
MultiProxyHandler - class sunlabs.brazil.handler.MultiProxyHandler .Handler for permitting multiple cross connected virtual web sites. MultiProxyHandler() -
Constructor for class sunlabs.brazil.handler.MultiProxyHandler
mustExist -
Variable in class sunlabs.brazil.handler.CookieSessionHandler
N
name -
Variable in class sunlabs.brazil.server.Server
The string to return as the value for the "Server:" line in the HTTP
response header.
name() -
Method in class sunlabs.brazil.handler.PushHandler.Split
get the part name
names -
Variable in class sunlabs.brazil.server.ChainHandler
The names of the above handlers as specified by the
configuration parameters.
newSocket(String, int) -
Method in class sunlabs.brazil.proxy.SunProxy
newSocket(String, int) -
Method in interface sunlabs.brazil.util.SocketFactory
Creates a new Socket that talks to the specified port
on the named host.
nextMatch() -
Method in class sunlabs.brazil.util.regexp.Regsub
Searches for the next substring that matches the regular expression.
nextPart() -
Method in class sunlabs.brazil.handler.PushHandler.Split
Return true if there is a next part
nextTag() -
Method in class sunlabs.brazil.handler.HtmlRewriter
A convenence method built on top of nextToken.
nextToken() -
Method in class sunlabs.brazil.handler.HtmlRewriter
Advances to the next token in the source HTML document.
nextToken() -
Method in class sunlabs.brazil.util.LexML
Advances to the next token.
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 .
NL -
Static variable in class sunlabs.brazil.handler.GenericProxyHandler
nosession -
Variable in class sunlabs.brazil.proxy.CookieFilter
nosession -
Variable in class sunlabs.brazil.proxy.HistoryFilter
NotFoundHandler - class sunlabs.brazil.handler.NotFoundHandler .Handler for returning "file not found" errors back to the client. NotFoundHandler() -
Constructor for class sunlabs.brazil.handler.NotFoundHandler
O
ok -
Variable in class sunlabs.brazil.handler.DialogHandler
out -
Variable in class sunlabs.brazil.server.Request
The HTTP response to the client is written to this stream.
out -
Variable in class sunlabs.brazil.util.http.HttpSocket
P
patternMap -
Variable in class sunlabs.brazil.handler.MapPage
persist -
Variable in class sunlabs.brazil.handler.CookieSessionHandler
PlainFilter - class sunlabs.brazil.filter.PlainFilter .Filter to turn text/plain into html
The following server properties are used:
template The string to use as an html template. PlainFilter() -
Constructor for class sunlabs.brazil.filter.PlainFilter
pool -
Static variable in class sunlabs.brazil.util.http.HttpRequest
The cache of idle sockets.
port -
Variable in class sunlabs.brazil.handler.GenericProxyHandler
port -
Variable in class sunlabs.brazil.util.http.HttpSocket
port -
Variable in class sunlabs.brazil.util.http.HttpRequest
The port extracted from the URL used to construct this
HttpRequest.
PORT -
Static variable in class sunlabs.brazil.handler.GenericProxyHandler
Handler configuration property port .
postData -
Variable in class sunlabs.brazil.server.Request
The uploaded content of this request, usually from a POST.
prefix -
Variable in class sunlabs.brazil.handler.CookieSessionHandler
prefix -
Variable in class sunlabs.brazil.handler.DialogHandler
prefix -
Variable in class sunlabs.brazil.handler.GenericProxyHandler
prefix -
Variable in class sunlabs.brazil.handler.MapPage
prefix -
Variable in class sunlabs.brazil.handler.BasicAuthHandler
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, as passed to a handler's init method.
PREFIX -
Static variable in class sunlabs.brazil.handler.GenericProxyHandler
Handler configuration property prefix .
print(OutputStream) -
Method in class sunlabs.brazil.util.http.MimeHeaders
Writes this MimeHeaders object to the given output
stream.
print(PrintStream) -
Method in class sunlabs.brazil.util.http.MimeHeaders
Writes this MimeHeaders object to the given output
stream.
process() -
Method in class sunlabs.brazil.template.RewriteContext
Invoke a template on this token, if any template is interested in this
token.
process(RewriteContext) -
Method in class sunlabs.brazil.template.TemplateRunner
Processes the next token in the HTML document represented by the
given RewriteContext.
process(Server, String, Request, String, String) -
Method in class sunlabs.brazil.template.TemplateRunner
Process an html template file, using the supplied template processing
class.
processData(Request) -
Method in class sunlabs.brazil.handler.PushHandler
process the data - this doesn't currently do anything useful.
props -
Variable in class sunlabs.brazil.server.Server
Hashtable containing arbitrary information that may be of interest to
a Handler.
props -
Variable in class sunlabs.brazil.server.Request
A set of properties local to this request.
PropsTemplate - class sunlabs.brazil.template.PropsTemplate .Template class for substituting request properties into an HTML page
This class is used by the TemplateHandler
The following request properties are used:
query The query parameters are placed into the request object,
prefixed by the value assigned to "query". PropsTemplate() -
Constructor for class sunlabs.brazil.template.PropsTemplate
protocol -
Variable in class sunlabs.brazil.server.Server
The protocol used to access this resource.
protocol -
Variable in class sunlabs.brazil.server.Request
The HTTP protocol specified in the request, either "HTTP/1.0" or
"HTTP/1.1".
PROXY_HOST -
Static variable in class sunlabs.brazil.handler.GenericProxyHandler
Handler configuration property proxyHost .
PROXY_HOST -
Static variable in class sunlabs.brazil.proxy.ProxyHandler
PROXY_PORT -
Static variable in class sunlabs.brazil.handler.GenericProxyHandler
Handler configuration property proxyPort .
PROXY_PORT -
Static variable in class sunlabs.brazil.proxy.ProxyHandler
ProxyHandler - class sunlabs.brazil.proxy.ProxyHandler .Generic Handler for implementing a simple web proxy. ProxyHandler() -
Constructor for class sunlabs.brazil.proxy.ProxyHandler
proxyHost -
Variable in class sunlabs.brazil.handler.GenericProxyHandler
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.handler.GenericProxyHandler
proxyPort -
Variable in class sunlabs.brazil.proxy.ProxyHandler
The proxy server's port.
proxyPort -
Variable in class sunlabs.brazil.util.http.HttpRequest
The proxy port.
ProxyPropertiesHandler - class sunlabs.brazil.handler.ProxyPropertiesHandler .Obtain properties format content from remote websites, and
add it to the current request properties. ProxyPropertiesHandler() -
Constructor for class sunlabs.brazil.handler.ProxyPropertiesHandler
PublishHandler - class sunlabs.brazil.handler.PublishHandler .Handler for supporting publishing from Communicator. PublishHandler() -
Constructor for class sunlabs.brazil.handler.PublishHandler
pushback() -
Method in class sunlabs.brazil.handler.HtmlRewriter
Puts the current token back.
PushHandler - class sunlabs.brazil.handler.PushHandler .Skeleton Handler for uploading files using multipart/form-data. PushHandler.Split - class sunlabs.brazil.handler.PushHandler.Split .Split multipart data into its constituent pieces. PushHandler.Split(byte[]) -
Constructor for class sunlabs.brazil.handler.PushHandler.Split
create a new multipart form thingy
PushHandler() -
Constructor for class sunlabs.brazil.handler.PushHandler
put(int, String) -
Method in class sunlabs.brazil.util.StringMap
Maps the key at the given index to the specified value in this
StringMap.
put(Object, Object) -
Method in class sunlabs.brazil.util.StringMap
Performs the same job as put(String, String).
put(String, int) -
Method in class sunlabs.brazil.util.http.MimeHeaders
Maps the given case-insensitive key to the specified value in this
MimeHeaders object, replacing the old value.
put(String, String) -
Method in class sunlabs.brazil.handler.HtmlRewriter
Maps the given case-insensitive key to the specified value in the
current tag's attributes.
put(String, String) -
Method in class sunlabs.brazil.util.StringMap
Maps the given case-insensitive key to the specified value in this
StringMap.
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.
Q
qsort(Object) -
Static method in class sunlabs.brazil.util.Sort
Sorts an array of the basic types (ints, floats, bytes, etc.) or
Strings.
qsort(Object, Sort.Compare) -
Static method in class sunlabs.brazil.util.Sort
Sorts an array.
qsort(Vector) -
Static method in class sunlabs.brazil.util.Sort
Sort a vector of strings using the Qsort algorithm.
query -
Variable in class sunlabs.brazil.server.Request
The query string specified after the URL, or "" if no
query string was specified.
quote(String) -
Static method in class sunlabs.brazil.handler.HtmlRewriter
Helper class to quote a attribute's value when the value is being
written to the resultant HTML document.
R
read(HttpInputStream) -
Method in class sunlabs.brazil.util.http.MimeHeaders
Reads MIME headers from the specified input stream.
readFully(byte[]) -
Method in class sunlabs.brazil.util.http.HttpInputStream
Reads buf.length bytes from the input stream.
readFully(byte[], int, int) -
Method in class sunlabs.brazil.util.http.HttpInputStream
Reads the specified number of bytes from the input stream.
readLine() -
Method in class sunlabs.brazil.util.http.HttpInputStream
Reads the next line of text from the input stream.
readLine(int) -
Method in class sunlabs.brazil.util.http.HttpInputStream
Reads the next line of text from the input stream, up to the
limit specified.
realm -
Variable in class sunlabs.brazil.handler.BasicAuthHandler
redirect(RewriteContext) -
Method in class sunlabs.brazil.template.RedirectTemplate
Look for a redirect tag, change it to an HREF, and remember where
to redirect to (e.g.
redirect(String, String) -
Method in class sunlabs.brazil.server.Request
Responds to an HTTP request with a redirection reply, telling the
client that the requested url has moved.
RedirectTemplate - class sunlabs.brazil.template.RedirectTemplate .Template class for redirecting an html page
This class is used by the TemplateHandler RedirectTemplate() -
Constructor for class sunlabs.brazil.template.RedirectTemplate
ReflectHandler - class sunlabs.brazil.handler.ReflectHandler .Handler for reflecting query data back to the client. ReflectHandler() -
Constructor for class sunlabs.brazil.handler.ReflectHandler
Regexp - class sunlabs.brazil.util.regexp.Regexp .The Regexp class can be used to match a pattern against a
string and optionally replace the matched parts with new strings. Regexp.Filter - interface sunlabs.brazil.util.regexp.Regexp.Filter .This interface is used by the Regexp class to generate
the replacement string for each pattern match found in the source
string. Regexp(String) -
Constructor for class sunlabs.brazil.util.regexp.Regexp
Compiles a new Regexp object from the given regular expression
pattern.
Regexp(String, boolean) -
Constructor for class sunlabs.brazil.util.regexp.Regexp
Compiles a new Regexp object from the given regular expression
pattern.
Regsub - class sunlabs.brazil.util.regexp.Regsub .The Regsub class provides an iterator-like object to
extract the matched and unmatched portions of a string with respect to
a given regular expression. Regsub(Regexp, String) -
Constructor for class sunlabs.brazil.util.regexp.Regsub
Construct a new Regsub that can be used to step
through the given string, finding each substring that matches
the given regular expression.
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).
remove(String) -
Method in class sunlabs.brazil.handler.HtmlRewriter
Removes the given case-insensitive key and its corresponding value
from the current tag's attributes.
remove(String) -
Method in class sunlabs.brazil.util.StringMap
Removes the given case-insensitive key and its corresponding value
from this StringMap.
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.
replace(String) -
Method in class sunlabs.brazil.util.LexML
Changes the string that this LexML is parsing.
replace(String) -
Method in class sunlabs.brazil.util.LexHTML
Changes the string that this LexHTML is parsing.
ReplaceFilter - class sunlabs.brazil.filter.ReplaceFilter .Filter to replace current content with a static form, or template. ReplaceFilter() -
Constructor for class sunlabs.brazil.filter.ReplaceFilter
request -
Variable in class sunlabs.brazil.template.RewriteContext
The Request object, as passed to a handler's respond method.
Request - class sunlabs.brazil.server.Request .Represents an HTTP transaction. Request.HttpOutputStream - class sunlabs.brazil.server.Request.HttpOutputStream .The HttpOutputStream provides the convenience method
writeBytes for writing the byte representation of a
string, without bringing in the overhead and the deprecated warnings
associated with a java.io.DataOutputStream. Request.HttpOutputStream(OutputStream) -
Constructor for class sunlabs.brazil.server.Request.HttpOutputStream
Request.RechainableProperties - class sunlabs.brazil.server.Request.RechainableProperties .The RechainableProperties is similar to a standard
Properties, except that the defaults can be changed
at any time. Request.RechainableProperties() -
Constructor for class sunlabs.brazil.server.Request.RechainableProperties
Request.RechainableProperties(Properties) -
Constructor for class sunlabs.brazil.server.Request.RechainableProperties
requestCount -
Variable in class sunlabs.brazil.server.Server
Count of HTTP requests received so far.
requestHeaders -
Variable in class sunlabs.brazil.util.http.HttpRequest
The headers for the HTTP request.
requestPrefix -
Variable in class sunlabs.brazil.handler.GenericProxyHandler
reset() -
Method in class sunlabs.brazil.handler.HtmlRewriter
Forgets all the tokens that have been appended to the resultant
HTML document so far, including the current token.
ResourceHandler - class sunlabs.brazil.handler.ResourceHandler .Handler for serving documents out of the jar file. ResourceHandler() -
Constructor for class sunlabs.brazil.handler.ResourceHandler
respond(Request) -
Method in class sunlabs.brazil.filter.PlainFilter
This is the request object before the content was fetched
respond(Request) -
Method in class sunlabs.brazil.filter.FilterHandler
Responds to an HTTP request by the forwarding the request to the
wrapped Handler and filtering the output of that
Handler before sending the output to the client.
respond(Request) -
Method in class sunlabs.brazil.filter.UrlSessionFilter
Extract the cookie out of the URL, rewriting the url as needed.
respond(Request) -
Method in class sunlabs.brazil.filter.TemplateFilter
No action before request is made
respond(Request) -
Method in class sunlabs.brazil.filter.ReplaceFilter
This is the request object before the content was fetched
respond(Request) -
Method in class sunlabs.brazil.filter.CopyContentFilter
This is the request object before the content was fetched
respond(Request) -
Method in class sunlabs.brazil.handler.CookieSessionHandler
respond(Request) -
Method in class sunlabs.brazil.handler.CgiHandler
Dispatch and handle the CGI request.
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.AclSwitchHandler
respond(Request) -
Method in class sunlabs.brazil.handler.RolesHandler
Dispatch and handle the request.
respond(Request) -
Method in class sunlabs.brazil.handler.ReflectHandler
Dispatch and handle the request.
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.ConfigFileHandler
Extract the session state into the request object, optionally
modifying the properties.
respond(Request) -
Method in class sunlabs.brazil.handler.SMTPHandler
Send an email message based on the query data
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.UrlMapperHandler
If this request matches the expression, rewrite it.
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.ProxyPropertiesHandler
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.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.ResourceHandler
respond(Request) -
Method in class sunlabs.brazil.handler.VirtualHostHandler
look for host header, tack on front of url.
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.BasicAuthHandler
Looks up the credentials for this request, and insert them into the
request stream.
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.HomeDirHandler
If this is a ~user request, modify the root and
url properties of the request object.
respond(Request) -
Method in class sunlabs.brazil.proxy.JunkBusterHandler
respond(Request) -
Method in class sunlabs.brazil.proxy.CookieFilter
respond(Request) -
Method in class sunlabs.brazil.proxy.ProxyHandler
respond(Request) -
Method in class sunlabs.brazil.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.SunProxy
Handler http requests - doesn't do anything yet
respond(Request) -
Method in class sunlabs.brazil.server.ChainHandler
Calls each of the Handlers in turn until one of them
returns true.
respond(Request) -
Method in interface sunlabs.brazil.server.Handler
Responds to an HTTP request.
respond(Request) -
Method in class sunlabs.brazil.server.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.server.FileHandler
Find, read, and deliver via http the requested file.
respond(Request) -
Method in class sunlabs.brazil.session.SerialPersist
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.TemplateHandler
Process an html template file, using the supplied template
processing classes.
respond(Request) -
Method in class sunlabs.brazil.template.DirectoryTemplate
Compute the directory info, and add it to the request properties.
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.
responseTrailers -
Variable in class sunlabs.brazil.util.http.HttpRequest
An artifact of HTTP/1.1 chunked encoding.
rest() -
Method in class sunlabs.brazil.util.regexp.Regsub
Returns a substring consisting of all the characters that come
after the last match.
rest() -
Method in class sunlabs.brazil.util.LexML
Gets the rest of the string that has not yet been parsed.
restrict -
Variable in class sunlabs.brazil.server.Server
If non-null, restrict connections to just the specified ip addresses.
RewriteContext - class sunlabs.brazil.template.RewriteContext .A variant containing instance variables that may be referenced by
rewriting filters. RewriteContext(Server, String, Request, String, String, TemplateRunner, Vector) -
Constructor for class sunlabs.brazil.template.RewriteContext
ROLE_KEY -
Static variable in class sunlabs.brazil.handler.RolesHandler
Handler configuration property roleName .
RolesHandler - class sunlabs.brazil.handler.RolesHandler .Handler for associating roles with an id. RolesHandler() -
Constructor for class sunlabs.brazil.handler.RolesHandler
ROOT -
Static variable in class sunlabs.brazil.server.FileHandler
run() -
Method in class sunlabs.brazil.server.Server
Loops, accepting socket connections and replying to HTTP requests.
S
sb -
Variable in class sunlabs.brazil.handler.HtmlRewriter
Storage holding the resultant HTML document.
sendError(int, String) -
Method in class sunlabs.brazil.server.Request
Sends a HTTP error response to the client.
sendError(int, String, String) -
Method in class sunlabs.brazil.server.Request
Sends a HTTP error response to the client.
sendFile(Request, File, int, String) -
Static method in class sunlabs.brazil.server.FileHandler
Send a file as a response.
sendHeaders(int, String, int) -
Method in class sunlabs.brazil.server.Request
Sends the HTTP status line and response headers to the client.
sendHeaders(Request) -
Method in class sunlabs.brazil.server.Request.HttpOutputStream
sendReplacementImage(Request) -
Method in class sunlabs.brazil.proxy.JunkBusterHandler
sendResponse(byte[], String) -
Method in class sunlabs.brazil.server.Request
Sends an HTTP response to the client.
sendResponse(InputStream, int, String, int) -
Method in class sunlabs.brazil.server.Request
Sends the contents of the given input stream as the HTTP response.
sendResponse(String) -
Method in class sunlabs.brazil.server.Request
Convenience method that sends an HTTP response to the client
with a "Content-Type" of "text/html" and the default HTTP status
code.
sendResponse(String, String) -
Method in class sunlabs.brazil.server.Request
Convenience method that sends an HTTP response to the client
with the default HTTP status code.
sendResponse(String, String, int) -
Method in class sunlabs.brazil.server.Request
Sends an HTTP response to the client.
SerialPersist - class sunlabs.brazil.session.SerialPersist .The SerialPersist class is a SessionManager
that uses Java object serialization to make a persistent store of the
session information for a server. SerialPersist() -
Constructor for class sunlabs.brazil.session.SerialPersist
server -
Variable in class sunlabs.brazil.template.RewriteContext
The server object, as passed to a handler's init method.
Server - class sunlabs.brazil.server.Server .Yet another HTTP/1.1 server. Server() -
Constructor for class sunlabs.brazil.server.Server
Set up the server.
Server(ServerSocket, String, Properties) -
Constructor for class sunlabs.brazil.server.Server
Create a server using the provided listener socket.
serverUrl() -
Method in class sunlabs.brazil.server.Request
Returns the server's fully-qualified base URL.
session -
Variable in class sunlabs.brazil.filter.UrlSessionFilter
session -
Variable in class sunlabs.brazil.handler.CookieSessionHandler
session -
Variable in class sunlabs.brazil.handler.BasicAuthHandler
session -
Variable in class sunlabs.brazil.proxy.CookieFilter
session -
Variable in class sunlabs.brazil.proxy.HistoryFilter
sessionId -
Variable in class sunlabs.brazil.template.RewriteContext
A unique session id , if available.
SessionManager - class sunlabs.brazil.session.SessionManager .The SessionManager associates an object with a Session ID
to give Handlers the ability to maintain state that lasts for the
duration of a session instead of just for the duration of a request. SessionManager() -
Constructor for class sunlabs.brazil.session.SessionManager
sessions -
Variable in class sunlabs.brazil.session.SessionManager
A Hashtable used when mapping Session IDs to objects.
setDefaults(Properties) -
Method in class sunlabs.brazil.server.Request.RechainableProperties
Set the default properties for this object.
setMap(Hashtable) -
Method in class sunlabs.brazil.handler.MapPage
Set the map table for cross-linked sites.
setMethod(String) -
Method in class sunlabs.brazil.util.http.HttpRequest
Sets the HTTP method to the specified value.
setPrefix(String) -
Method in class sunlabs.brazil.handler.MapPage
Change the prefix that will replace the leading "/" in a URL.
setProxy(String, int) -
Method in class sunlabs.brazil.util.http.HttpRequest
Sets the proxy for this request.
setRequestHeader(String, String) -
Method in class sunlabs.brazil.util.http.HttpRequest
Sets a request header in the HTTP request that will be issued.
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.
setStatus(int) -
Method in class sunlabs.brazil.server.Request
Sets the status code of the HTTP response.
setTag(String) -
Method in class sunlabs.brazil.handler.HtmlRewriter
Changes the current tag's name.
setType(int) -
Method in class sunlabs.brazil.handler.HtmlRewriter
setup(ServerSocket, String, Properties) -
Method in class sunlabs.brazil.server.Server
setupSql(String, Properties) -
Method in class sunlabs.brazil.template.SqlTemplate
Setup a connection to an SQL server.
shouldFilter(MimeHeaders) -
Method in class sunlabs.brazil.handler.GenericProxyHandler
See if the content needs to be filtered.
shouldFilter(MimeHeaders) -
Method in class sunlabs.brazil.handler.ProxyPropertiesHandler
See if the content needs to be filtered
Return "true" if "modifyContent" should be called
shouldFilter(Request, MimeHeaders) -
Method in class sunlabs.brazil.filter.PlainFilter
Only filter text/plain documents
shouldFilter(Request, MimeHeaders) -
Method in class sunlabs.brazil.filter.UrlSessionFilter
We have the results, only filter if html
shouldFilter(Request, MimeHeaders) -
Method in class sunlabs.brazil.filter.TemplateFilter
Filters all HTML files, or files that are likely to be html files,
specifically, those whose "Content-Type" starts with "text/".
shouldFilter(Request, MimeHeaders) -
Method in 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.ReplaceFilter
Only replace text documents
shouldFilter(Request, MimeHeaders) -
Method in class sunlabs.brazil.filter.CopyContentFilter
Watch every document that passes by.
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.
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, Hashtable) -
Static method in class sunlabs.brazil.handler.SMTPHandler
Send an email message via smtp - simple version.
SMTPHandler - class sunlabs.brazil.handler.SMTPHandler .Handler for Sending an email message via SMTP
The following server properties are used:
prefix url prefix
host The mail host (e.g. SMTPHandler() -
Constructor for class sunlabs.brazil.handler.SMTPHandler
sock -
Variable in class sunlabs.brazil.util.http.HttpSocket
socketFactory -
Static variable in class sunlabs.brazil.util.http.HttpRequest
The factory for constructing new Sockets objects used to connect to
remote hosts when issuing HTTP requests.
SocketFactory - interface sunlabs.brazil.util.SocketFactory .This interface is used as a heap to control the allocation of sockets. Sort - class sunlabs.brazil.util.Sort .Placeholder for useful sorting utilities. Sort.Compare - interface sunlabs.brazil.util.Sort.Compare .This interface is used by the Sort class to compare
elements when an array is being sorted. Sort() -
Constructor for class sunlabs.brazil.util.Sort
SqlTemplate - class sunlabs.brazil.template.SqlTemplate .Sample Template class for running SQL queries via jdbc and
placing the results into the request properties for further processing. SqlTemplate() -
Constructor for class sunlabs.brazil.template.SqlTemplate
start() -
Method in class sunlabs.brazil.handler.PushHandler.Split
return the index into the start of the data for this part
startServer(Properties) -
Static method in class sunlabs.brazil.server.Main
Start a server using the supplied properties.
status -
Variable in class sunlabs.brazil.util.http.HttpRequest
The status line from the HTTP response.
STRING -
Static variable in class sunlabs.brazil.util.LexML
The value returned by getType for string tokens
StringMap - class sunlabs.brazil.util.StringMap .The StringMap class is a substitute for the Hashtable. StringMap() -
Constructor for class sunlabs.brazil.util.StringMap
Creates an empty StringMap.
sub(String, Regexp.Filter) -
Method in class sunlabs.brazil.util.regexp.Regexp
sub(String, String) -
Method in class sunlabs.brazil.util.regexp.Regexp
Matches a string against a regular expression and replaces the first
match with the string generated from the substitution parameter.
subAll(String, String) -
Method in class sunlabs.brazil.util.regexp.Regexp
Matches a string against a regular expression and replaces all
matches with the string generated from the substitution parameter.
submatch(int) -
Method in class sunlabs.brazil.util.regexp.Regsub
Returns a substring consisting of the characters that matched
the given parenthesized subexpression during the last call to
nextMatch.
subspecs() -
Method in class sunlabs.brazil.util.regexp.Regexp
Returns the number of parenthesized subexpressions in this regular
expression, plus one more for this expression itself.
subst(Properties, String) -
Static method in class sunlabs.brazil.template.PropsTemplate
Allow a tag attribute value to contain the value of another
property, permitting nested variable substitution in attribute
values.
sunlabs.brazil.filter - package sunlabs.brazil.filterFilters are a type of handler, used by the
filterHandler
that can modify content
after it has been obtained by another handler. sunlabs.brazil.handler - package sunlabs.brazil.handlerThis package contains a collection
classes that implement the
Handler
interface for use with the
Server
package, along with several support classes. sunlabs.brazil.proxy - package sunlabs.brazil.proxyHandlers, filters, and utilities for using the Brazil project fraework as an HTTP proxy. sunlabs.brazil.server - package sunlabs.brazil.serverGeneric http protocol stack, essential handlers and drivers. sunlabs.brazil.session - package sunlabs.brazil.sessionA generic, extensible mechanism for managing session state. sunlabs.brazil.tcl - package sunlabs.brazil.tclProvide ways of integrating the TCL scripting language into
the Brazil project server. sunlabs.brazil.template - package sunlabs.brazil.templateTemplate 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.httpUtility classes for dealing with the HTTP protocol. sunlabs.brazil.util.regexp - package sunlabs.brazil.util.regexpThis package contains a converted-to-Java-language version of
Henry Spencer's regular expression package contained in TCL version 8.0. SunProxy - class sunlabs.brazil.proxy.SunProxy .Sun Specific implementation of a SocketFactory and
proxy-decider that work together to decipher
the specifics of the Sun Internet setup. SunProxy() -
Constructor for class sunlabs.brazil.proxy.SunProxy
T
TAG -
Static variable in class sunlabs.brazil.util.LexML
The value returned by getType for tag tokens
tag_a(RewriteContext) -
Method in class sunlabs.brazil.template.ChangedTemplate
tag_addheader(RewriteContext) -
Method in class sunlabs.brazil.template.AddHeaderTemplate
Add a header onto the response, removing the tag from the HTML.
tag_body(RewriteContext) -
Method in class sunlabs.brazil.template.ContentTemplate
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 this entity
tag_filelist(RewriteContext) -
Method in class sunlabs.brazil.template.DirectoryTemplate
Turn on the directory calculator.
tag_foreach(RewriteContext) -
Method in class sunlabs.brazil.template.BSLTemplate
Handles the "foreach" tag.
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_if(RewriteContext) -
Method in class sunlabs.brazil.template.BSLTemplate
Handles the "if" tag.
tag_include(RewriteContext) -
Method in class sunlabs.brazil.template.IncludeTemplate
Convert the html tag "include" in to text for an included
html page.
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_link(RewriteContext) -
Method in class sunlabs.brazil.template.ContentTemplate
Extract data out of link tags into the properties.
tag_meta(RewriteContext) -
Method in class sunlabs.brazil.template.ContentTemplate
Extract data out of meta tags into the properties.
tag_option(RewriteContext) -
Method in class sunlabs.brazil.template.FormTemplate
Look at the option tag, set the "selected" attribute as needed.
tag_property(RewriteContext) -
Method in class sunlabs.brazil.template.PropsTemplate
Convert the html tag "property" in to the request's property
tag_script(RewriteContext) -
Method in class sunlabs.brazil.template.ContentTemplate
tag_select(RewriteContext) -
Method in class sunlabs.brazil.template.FormTemplate
Remember the variable name for the next group of option tags.
tag_server(RewriteContext) -
Method in class sunlabs.brazil.tcl.TclServerTemplate
Processes the <server> tag.
tag_slash_body(RewriteContext) -
Method in class sunlabs.brazil.template.ContentTemplate
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.
tag_slash_head(RewriteContext) -
Method in class sunlabs.brazil.template.ContentTemplate
tag_slash_script(RewriteContext) -
Method in class sunlabs.brazil.template.ContentTemplate
tag_slash_select(RewriteContext) -
Method in class sunlabs.brazil.template.FormTemplate
Forget the variable name for the next group of option tags
tag_slash_sql(RewriteContext) -
Method in class sunlabs.brazil.template.SqlTemplate
tag_slash_tag(RewriteContext) -
Method in class sunlabs.brazil.template.PropsTemplate
Insert a literal ">"
tag_slash_title(RewriteContext) -
Method in class sunlabs.brazil.template.ContentTemplate
tag_sql(RewriteContext) -
Method in class sunlabs.brazil.template.SqlTemplate
Replace the SQL query with the appropriate request properties.
tag_tag(RewriteContext) -
Method in class sunlabs.brazil.template.PropsTemplate
Insert a liteteral "<".
tag_title(RewriteContext) -
Method in class sunlabs.brazil.template.ContentTemplate
toss everything upto and including this entity
tagMap -
Variable in class sunlabs.brazil.handler.MapPage
tagsProcessed() -
Method in class sunlabs.brazil.template.TemplateRunner
Return the # of tags replaced in the previous call to "process".
TclFilter - class sunlabs.brazil.tcl.TclFilter .Filter for writing Filters in tcl
Run a tcl startup script when the handler is initialized. TclFilter() -
Constructor for class sunlabs.brazil.tcl.TclFilter
TclHandler - class sunlabs.brazil.tcl.TclHandler .Handler for writing handlers in tcl. TclHandler() -
Constructor for class sunlabs.brazil.tcl.TclHandler
TclServerTemplate - class sunlabs.brazil.tcl.TclServerTemplate .The TclServerTemplate looks for each
<server language="tcl">
tag in an HTML page and treats the following data up to the next
</server> tag as a Tcl script to evaluate. TclServerTemplate() -
Constructor for class sunlabs.brazil.tcl.TclServerTemplate
Template - class sunlabs.brazil.template.Template .Parent for all classes that are templates. Template() -
Constructor for class sunlabs.brazil.template.Template
TemplateFilter - class sunlabs.brazil.filter.TemplateFilter .The TemplateFilter sends HTML content through an
Html/XML parser to a set of Templates. TemplateFilter() -
Constructor for class sunlabs.brazil.filter.TemplateFilter
TemplateHandler - class sunlabs.brazil.template.TemplateHandler .The TemplateHandler reads a template file from
the document root, based on the URL, and passes the content through
one or more template filters. TemplateHandler() -
Constructor for class sunlabs.brazil.template.TemplateHandler
TemplateRunner - class sunlabs.brazil.template.TemplateRunner .Class for processing html templates. TemplateRunner(String) -
Constructor for class sunlabs.brazil.template.TemplateRunner
Process an HTML template with a template processing class.
timeout -
Variable in class sunlabs.brazil.server.Server
Time in milliseconds before this Server closes an idle socket or
in-progress request.
timesUsed -
Variable in class sunlabs.brazil.util.http.HttpSocket
title -
Variable in class sunlabs.brazil.handler.DialogHandler
TOCTemplate - class sunlabs.brazil.template.TOCTemplate .Template class for extracting table of contents information
out of an html page by examining the "H1" tags, and setting
request properties that can be used to build a table of contents. TOCTemplate() -
Constructor for class sunlabs.brazil.template.TOCTemplate
toString() -
Method in class sunlabs.brazil.handler.HtmlRewriter
Returns the "new" rewritten HTML document.
toString() -
Method in class sunlabs.brazil.server.Request
Returns a string representation of this Request.
toString() -
Method in class sunlabs.brazil.util.http.HttpSocket
toString() -
Method in class sunlabs.brazil.util.regexp.Regexp
Returns a string representation of this compiled regular
expression.
toString() -
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 ", ".
U
url -
Variable in class sunlabs.brazil.server.Request
The URL specified in the request, not including any "?" query
string.
url -
Variable in class sunlabs.brazil.util.http.HttpRequest
The URL used to construct this HttpRequest.
urlDecode(String) -
Static method in class sunlabs.brazil.util.http.HttpUtil
Decodes a URL-encoded string by replacing all the "%XX" escape
sequences in the string with the corresponding character.
urlEncode(String) -
Static method in class sunlabs.brazil.util.http.HttpUtil
Maps a string to be used in a query or post into a form that is
acceptable in an URL.
urlMap -
Variable in class sunlabs.brazil.handler.MapPage
UrlMapperHandler - class sunlabs.brazil.handler.UrlMapperHandler .Handler for mapping or redirecting url's
Matches url's against a regexp pattern. UrlMapperHandler() -
Constructor for class sunlabs.brazil.handler.UrlMapperHandler
UrlNavBarTemplate - class sunlabs.brazil.template.UrlNavBarTemplate .Template class for dynamically generating a navigation bar
by looking at portions of the url. UrlNavBarTemplate() -
Constructor for class sunlabs.brazil.template.UrlNavBarTemplate
urlPrefix -
Variable in class sunlabs.brazil.handler.GenericProxyHandler
urlPrefix -
Variable in class sunlabs.brazil.handler.PushHandler
urlPrefix -
Variable in class sunlabs.brazil.proxy.HistoryFilter
UrlSessionFilter - class sunlabs.brazil.filter.UrlSessionFilter .Sample filter to use url's instead of cookies for sessions. UrlSessionFilter() -
Constructor for class sunlabs.brazil.filter.UrlSessionFilter
urlToPath(String) -
Static method in class sunlabs.brazil.server.FileHandler
Helper function to convert an url into a pathname.
USE_PROXY -
Static variable in class sunlabs.brazil.proxy.ProxyHandler
UseProxy - interface sunlabs.brazil.proxy.UseProxy .This interface is used by the ProxyHandler class to
decide whether to issue an HTTP request directly to the
specified host, or to issue the request via an HTTP proxy. useProxy(String, int) -
Method in interface sunlabs.brazil.proxy.UseProxy
Determines if the user can issue a direct or proxy request to the
specified host and port.
useProxy(String, int) -
Method in class sunlabs.brazil.proxy.SunProxy
Determines if the user should use an HTTP proxy when sending an HTTP
request to the specified host and port.
V
version -
Variable in class sunlabs.brazil.server.Request
Derived from Request.protocol , the version of the HTTP protocol
used for this request.
version -
Variable in class sunlabs.brazil.util.http.HttpRequest
The HTTP version string.
VirtualHostHandler - class sunlabs.brazil.handler.VirtualHostHandler .Handler for managing virtual hosts. VirtualHostHandler() -
Constructor for class sunlabs.brazil.handler.VirtualHostHandler
W
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
A B C D E F G H I J K L M N O P Q R S T U V W