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 endbooleanCopyContentFilter.shouldFilter(Request request, MimeHeaders headers) Watch every document that passes by.booleanExecFilter.shouldFilter(Request request, MimeHeaders headers) Only filter content types that matchbooleanFilter.shouldFilter(Request request, MimeHeaders headers) Gives thisFilterthe chance to examine the HTTP response headers from the wrappedHandler, before the content has been retrieved.booleanMD5Filter.shouldFilter(Request request, MimeHeaders headers) Only filter url's that match.booleanPlainFilter.shouldFilter(Request request, MimeHeaders headers) Only filter text/plain documentsbooleanReFilter.shouldFilter(Request request, MimeHeaders headers) Only filter text documentsbooleanReplaceFilter.shouldFilter(Request request, MimeHeaders headers) Only replace text documentsbooleanSessionFilter.shouldFilter(Request request, MimeHeaders headers) We have the results, only filter if html and we're rewritingbooleanTemplateFilter.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/".booleanUrlMapFilter.shouldFilter(Request request, MimeHeaders headers) Only filter text documents if the MultiProxyHandler was calledbooleanUrlSessionFilter.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 booleanGenericProxyHandler.shouldFilter(MimeHeaders headers) See if the content needs to be filtered.protected booleanProxyPropertiesHandler.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 MimeHeadersProxyHandler.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 StringProxyHandler.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 MimeHeadersProxyHandler.rewriteHeaders(MimeHeaders responseHeaders) Allow sub-classes to rewrite any or all of the target headers, if needed.booleanCookieFilter.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.booleanHistoryFilter.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.headersThe HTTP request headers.Request.responseHeadersThe HTTP response headers. -
Uses of MimeHeaders in sunlabs.brazil.util.http
Fields in sunlabs.brazil.util.http declared as MimeHeadersModifier and TypeFieldDescriptionHttpRequest.requestHeadersThe headers for the HTTP request.HttpRequest.responseHeadersThe headers that were present in the HTTP response.HttpRequest.responseTrailersAn artifact of HTTP/1.1 chunked encoding.Methods in sunlabs.brazil.util.http with parameters of type MimeHeadersModifier and TypeMethodDescriptionvoidMimeHeaders.copyTo(MimeHeaders other) Copies the contents of thisMimeHeadersobject,addingall the other's keys and values to the other.static voidHttpRequest.removePointToPointHeaders(MimeHeaders headers, boolean response) Removes all the point-to-point (hop-by-hop) headers from the given mime headers.