| java.lang.Object sunlabs.brazil.handler.RolesHandler
RolesHandler | public class RolesHandler implements Handler(Code) | | Handler for associating roles with an id. This is a placeholder
until the SunEconomy gets integrated in. It looks for an "id" in the
request, looks it up in a property file, then add the value of the
id into the request. It may be used in conjuntion with
AclSwitchHandler to provide role based web access.
author: Stephen Uhler version: @(#) RolesHandler.java 1.11 00/07/07 17:01:22 |
CHECK | final static String CHECK(Code) | | Handler configuration property check.
If true, the results are out into the request object.
Otherwise, they are returned in a text/plain java properties
formatted document, which can be used with the
See Also: RemoteStsHandler. |
ID_KEY | final public static String ID_KEY(Code) | | Handler configuration property SessionID.
The request property name to find the id string.
Defaults to id.
|
MAP | final public static String MAP(Code) | | Handler configuration property mapFile.
The path to the java properties file containing the id
to roles mapping. The roles are a whitespace delimited list
of ascii role names.
|
PREFIX | final static String PREFIX(Code) | | Handler configuration property prefix.
Only URL's that begin with this string are considered by this handler.
The default is (/).
|
ROLE_KEY | final public static String ROLE_KEY(Code) | | Handler configuration property roleName.
The request property name to place the roles into.
Defaults to roles.
|
respond | public boolean respond(Request request) throws IOException(Code) | | Dispatch and handle the request.
This version looks at the request for the id, looks it up in the
table, and adds the value, if available
|
|
|