Package | Description |
---|---|
sunlabs.brazil.filter | |
sunlabs.brazil.handler | |
sunlabs.brazil.proxy | |
sunlabs.brazil.server | |
sunlabs.brazil.util.http |
Modifier and Type | Method and Description |
---|---|
byte[] |
UrlMapFilter.filter(Request request,
MimeHeaders headers,
byte[] content)
Rewrite all absolute links, if there are any left
|
byte[] |
MD5Filter.filter(Request request,
MimeHeaders headers,
byte[] content)
Compute digest, add to header.
|
byte[] |
UrlSessionFilter.filter(Request request,
MimeHeaders headers,
byte[] content)
Rewrite all the url's, adding the session id to the end
|
byte[] |
Filter.filter(Request request,
MimeHeaders headers,
byte[] content)
Filters the content generated by the wrapped
Handler . |
byte[] |
PlainFilter.filter(Request request,
MimeHeaders headers,
byte[] content)
Wrap html around text/plain, converting it to html.
|
byte[] |
SessionFilter.filter(Request request,
MimeHeaders headers,
byte[] content)
Rewrite all the url's, adding the session id to the end
|
byte[] |
TemplateFilter.filter(Request request,
MimeHeaders headers,
byte[] content)
Evaluates the content as html/XML tags, if the file is (or has now been
converted to) "text/html".
|
byte[] |
ReplaceFilter.filter(Request request,
MimeHeaders headers,
byte[] content)
Grab the template file name, Read in the file, and
deliver it as content.
|
byte[] |
CopyContentFilter.filter(Request request,
MimeHeaders headers,
byte[] content)
Grab the contents, and save as a file (if file doesn't already exist).
|
byte[] |
ExecFilter.filter(Request request,
MimeHeaders headers,
byte[] content)
Run content through filter.
|
byte[] |
ReFilter.filter(Request request,
MimeHeaders headers,
byte[] content)
If the content matches the regular expression, do the substitution.
|
boolean |
UrlMapFilter.shouldFilter(Request request,
MimeHeaders headers)
Only filter text documents if the MultiProxyHandler was called
|
boolean |
MD5Filter.shouldFilter(Request request,
MimeHeaders headers)
Only filter url's that match.
|
boolean |
UrlSessionFilter.shouldFilter(Request request,
MimeHeaders headers)
We have the results, only filter if html
|
boolean |
Filter.shouldFilter(Request request,
MimeHeaders headers)
Gives this
Filter the chance to examine the HTTP
response headers from the wrapped Handler , before the
content has been retrieved. |
boolean |
PlainFilter.shouldFilter(Request request,
MimeHeaders headers)
Only filter text/plain documents
|
boolean |
SessionFilter.shouldFilter(Request request,
MimeHeaders headers)
We have the results, only filter if html and we're rewriting
|
boolean |
TemplateFilter.shouldFilter(Request request,
MimeHeaders headers)
Filters all HTML files, or files that are likely to be html files,
specifically, those whose "Content-Type" starts with "text/".
|
boolean |
ReplaceFilter.shouldFilter(Request request,
MimeHeaders headers)
Only replace text documents
|
boolean |
CopyContentFilter.shouldFilter(Request request,
MimeHeaders headers)
Watch every document that passes by.
|
boolean |
ExecFilter.shouldFilter(Request request,
MimeHeaders headers)
Only filter content types that match
|
boolean |
ReFilter.shouldFilter(Request request,
MimeHeaders headers)
Only filter text documents
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
GenericProxyHandler.shouldFilter(MimeHeaders headers)
See if the content needs to be filtered.
|
protected boolean |
ProxyPropertiesHandler.shouldFilter(MimeHeaders headers)
See if the content needs to be filtered
Return "true" if "modifyContent" should be called
|
Modifier and Type | Method and Description |
---|---|
protected MimeHeaders |
ProxyHandler.rewriteHeaders(MimeHeaders responseHeaders)
Allow sub-classes to rewrite any or all of the target
headers, if needed.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
ProxyHandler.dumpHeaders(int count,
Request request,
MimeHeaders headers,
boolean sent)
Dump the headers on stderr
|
byte[] |
HistoryFilter.filter(Request request,
MimeHeaders headers,
byte[] content)
Returns the original content, since this filter does not change
content.
|
byte[] |
CookieFilter.filter(Request request,
MimeHeaders headers,
byte[] content)
Returns the original content, since this filter does not change
content; it changes the headers.
|
protected MimeHeaders |
ProxyHandler.rewriteHeaders(MimeHeaders responseHeaders)
Allow sub-classes to rewrite any or all of the target
headers, if needed.
|
boolean |
HistoryFilter.shouldFilter(Request request,
MimeHeaders headers)
Called when invoked as a
Filter . |
boolean |
CookieFilter.shouldFilter(Request request,
MimeHeaders headers)
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.
|
Modifier and Type | Field and Description |
---|---|
MimeHeaders |
Request.headers
The HTTP request headers.
|
MimeHeaders |
Request.responseHeaders
The HTTP response headers.
|
Modifier and Type | Field and Description |
---|---|
MimeHeaders |
HttpRequest.requestHeaders
The headers for the HTTP request.
|
MimeHeaders |
HttpRequest.responseHeaders
The headers that were present in the HTTP response.
|
MimeHeaders |
HttpRequest.responseTrailers
An artifact of HTTP/1.1 chunked encoding.
|
Modifier and Type | Method and Description |
---|---|
void |
MimeHeaders.copyTo(MimeHeaders other)
Copies the contents of this
MimeHeaders object,
adding all the other's keys and values to the other. |
static void |
HttpRequest.removePointToPointHeaders(MimeHeaders headers,
boolean response)
Removes all the point-to-point (hop-by-hop) headers from
the given mime headers.
|