| java.lang.Object sunlabs.brazil.handler.HtmlRewriter sunlabs.brazil.template.RewriteContext
RewriteContext | public class RewriteContext extends HtmlRewriter (Code) | | A variant containing instance variables that may be referenced by
rewriting filters. Every implementation of the template class
may define methods of the form:
tag_xxx
or
tag_slash_xxx
which will get called when the corrosponding HTML entity
<xxx ...>
or
</xxx ...>
is found in the content being filtered.
An instance of this class is passed to each tag
method, permitting introspection of the current filtering context.
version: %V% RewriteContext.java |
Method Summary | |
public void | process() Invoke a template on this token, if any template is interested in this
token. |
prefix | public String prefix(Code) | | The prefix to use for locating keys in the server or request properties
objects, as passed to a handler's init method.
|
request | public Request request(Code) | | The Request object, as passed to a handler's respond method.
|
server | public Server server(Code) | | The server object, as passed to a handler's init method.
|
sessionId | public String sessionId(Code) | | A unique session id, if available.
|
process | public void process()(Code) | | Invoke a template on this token, if any template is interested in this
token. The template may consume more than just this token, if it
wants.
|
|
|