Uses of Class
sunlabs.brazil.util.http.MimeHeaders
Packages that use MimeHeaders
Package
Description
-
Uses of MimeHeaders in sunlabs.brazil.filter
Methods in sunlabs.brazil.filter with parameters of type MimeHeadersModifier and TypeMethodDescriptionbyte[]
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[]
Filter.filter
(Request request, MimeHeaders headers, byte[] content) Filters the content generated by the wrappedHandler
.byte[]
MD5Filter.filter
(Request request, MimeHeaders headers, byte[] content) Compute digest, add to header.byte[]
PlainFilter.filter
(Request request, MimeHeaders headers, byte[] content) Wrap html around text/plain, converting it to html.byte[]
ReFilter.filter
(Request request, MimeHeaders headers, byte[] content) If the content matches the regular expression, do the substitution.byte[]
ReplaceFilter.filter
(Request request, MimeHeaders headers, byte[] content) Grab the template file name, Read in the file, and deliver it as content.byte[]
SessionFilter.filter
(Request request, MimeHeaders headers, byte[] content) Rewrite all the url's, adding the session id to the endbyte[]
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[]
UrlMapFilter.filter
(Request request, MimeHeaders headers, byte[] content) Rewrite all absolute links, if there are any leftbyte[]
UrlSessionFilter.filter
(Request request, MimeHeaders headers, byte[] content) Rewrite all the url's, adding the session id to the endboolean
CopyContentFilter.shouldFilter
(Request request, MimeHeaders headers) Watch every document that passes by.boolean
ExecFilter.shouldFilter
(Request request, MimeHeaders headers) Only filter content types that matchboolean
Filter.shouldFilter
(Request request, MimeHeaders headers) Gives thisFilter
the chance to examine the HTTP response headers from the wrappedHandler
, before the content has been retrieved.boolean
MD5Filter.shouldFilter
(Request request, MimeHeaders headers) Only filter url's that match.boolean
PlainFilter.shouldFilter
(Request request, MimeHeaders headers) Only filter text/plain documentsboolean
ReFilter.shouldFilter
(Request request, MimeHeaders headers) Only filter text documentsboolean
ReplaceFilter.shouldFilter
(Request request, MimeHeaders headers) Only replace text documentsboolean
SessionFilter.shouldFilter
(Request request, MimeHeaders headers) We have the results, only filter if html and we're rewritingboolean
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
UrlMapFilter.shouldFilter
(Request request, MimeHeaders headers) Only filter text documents if the MultiProxyHandler was calledboolean
UrlSessionFilter.shouldFilter
(Request request, MimeHeaders headers) We have the results, only filter if html -
Uses of MimeHeaders in sunlabs.brazil.handler
Methods in sunlabs.brazil.handler with parameters of type MimeHeadersModifier and TypeMethodDescriptionprotected 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 -
Uses of MimeHeaders in sunlabs.brazil.proxy
Methods in sunlabs.brazil.proxy that return MimeHeadersModifier and TypeMethodDescriptionprotected MimeHeaders
ProxyHandler.rewriteHeaders
(MimeHeaders responseHeaders) Allow sub-classes to rewrite any or all of the target headers, if needed.Methods in sunlabs.brazil.proxy with parameters of type MimeHeadersModifier and TypeMethodDescriptionstatic String
ProxyHandler.dumpHeaders
(int count, Request request, MimeHeaders headers, boolean sent) Dump the headers on stderrbyte[]
CookieFilter.filter
(Request request, MimeHeaders headers, byte[] content) Returns the original content, since this filter does not change content; it changes the headers.byte[]
HistoryFilter.filter
(Request request, MimeHeaders headers, byte[] content) Returns the original content, since this filter does not change content.protected MimeHeaders
ProxyHandler.rewriteHeaders
(MimeHeaders responseHeaders) Allow sub-classes to rewrite any or all of the target headers, if needed.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.boolean
HistoryFilter.shouldFilter
(Request request, MimeHeaders headers) Called when invoked as aFilter
. -
Uses of MimeHeaders in sunlabs.brazil.server
Fields in sunlabs.brazil.server declared as MimeHeadersModifier and TypeFieldDescriptionRequest.headers
The HTTP request headers.Request.responseHeaders
The HTTP response headers. -
Uses of MimeHeaders in sunlabs.brazil.util.http
Fields in sunlabs.brazil.util.http declared as MimeHeadersModifier and TypeFieldDescriptionHttpRequest.requestHeaders
The headers for the HTTP request.HttpRequest.responseHeaders
The headers that were present in the HTTP response.HttpRequest.responseTrailers
An artifact of HTTP/1.1 chunked encoding.Methods in sunlabs.brazil.util.http with parameters of type MimeHeadersModifier and TypeMethodDescriptionvoid
MimeHeaders.copyTo
(MimeHeaders other) Copies the contents of thisMimeHeaders
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.