org.iges.anagram
Class Mapper

java.lang.Object
  |
  +--org.iges.anagram.AbstractModule
        |
        +--org.iges.anagram.Mapper
All Implemented Interfaces:
Module

public class Mapper
extends AbstractModule

Maps incoming servlet requests to services and privilege levels, and returns completed ClientRequest objects.


Field Summary
protected  java.util.Map services
           
 
Fields inherited from class org.iges.anagram.AbstractModule
log, moduleName, parent, server
 
Constructor Summary
Mapper()
           
 
Method Summary
 void configure(Setting setting)
          Configures the module according to the settings provided.
protected  void createServices()
           
 java.lang.String getModuleID()
          Returns an ID for this module.
 ClientRequest map(HttpServletRequest request, HttpServletResponse response)
          Builds a ClientRequest object from the servlet request provided.
protected  ClientRequest mapByExtension(HttpServletRequest request, HttpServletResponse response, java.lang.String url, Privilege privilege)
           
protected  ClientRequest mapToHandle(HttpServletRequest request, HttpServletResponse response, Handle handle, Privilege privilege)
           
 
Methods inherited from class org.iges.anagram.AbstractModule
configModule, debug, debug, error, fail, fail, fail, getModuleName, info, init, toString, verbose, verbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

services

protected java.util.Map services
Constructor Detail

Mapper

public Mapper()
Method Detail

getModuleID

public java.lang.String getModuleID()
Description copied from interface: Module
Returns an ID for this module. This ID should be a legal XML tag name. It has two uses: as a tag name in the server's configuration file, and as the final element of the complete module name.

Specified by:
getModuleID in interface Module
Specified by:
getModuleID in class AbstractModule

configure

public void configure(Setting setting)
               throws ConfigException
Description copied from class: AbstractModule
Configures the module according to the settings provided. The server supports dynamic reconfiguration. Thus this method may be called at any time in the life of the module. If the module cannot be reconfigured, it should throw an exception.

Specified by:
configure in interface Module
Specified by:
configure in class AbstractModule
ConfigException

createServices

protected void createServices()

map

public ClientRequest map(HttpServletRequest request,
                         HttpServletResponse response)
Builds a ClientRequest object from the servlet request provided.


mapToHandle

protected ClientRequest mapToHandle(HttpServletRequest request,
                                    HttpServletResponse response,
                                    Handle handle,
                                    Privilege privilege)

mapByExtension

protected ClientRequest mapByExtension(HttpServletRequest request,
                                       HttpServletResponse response,
                                       java.lang.String url,
                                       Privilege privilege)