sunlabs.brazil.handler

Class PropertiesHandler

public class PropertiesHandler extends Object implements Handler

Handler for returning selected request properties as a text/plain document in java properties format. A server using this handler may be called by a server using the ProxyPropertiesHandler to communicate per-request properties between the two servers.

Properties:

prefix, suffix, glob, match
Specify the URL that triggers this handler. (See MatchString).
select
Glob pattern to match properties selected (Defaults to *). This is re-examined at every request.
type
Type of output to generate (defaults to text/plain).
comment
Comment to put on output (defaults to select).

Version: @(#)PropertiesHandler.java 2.3

Author: Stephen Uhler

Method Summary
booleaninit(Server server, String prefix)
booleanrespond(Request request)
If this is one of our URL's, look through each request property, and selct those that match the Select property.

Method Detail

init

public boolean init(Server server, String prefix)

respond

public boolean respond(Request request)
If this is one of our URL's, look through each request property, and selct those that match the Select property. Then emit them all as text/plain.