| java.lang.Object sunlabs.brazil.filter.PlainFilter
PlainFilter | public class PlainFilter implements Filter(Code) | | Filter to turn text/plain into html. This allows plain text to
be processed by other filters that only deal with html.
The following server properties are used:
- template
- The string to use as an html template. The string
should contain a single "%", which is replaced by the
text/plain content.
author: Stephen Uhler version: %V% PlainFilter.java |
filter | public byte[] filter(Request request, MimeHeaders headers, byte[] content)(Code) | | Wrap html around text/plain, converting it to html.
Change the content-type to text/html.
|
respond | public boolean respond(Request request)(Code) | | This is the request object before the content was fetched
|
|
|