|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--HttpServlet | +--org.iges.anagram.AnagramServlet
The servlet component of the Anagram framework.
This module implements the HTTP servlet interface, and thus handles all communication with the servlet container.
Field Summary | |
protected ErrorService |
dodsErrorHandler
|
protected java.util.Set |
dodsErrorServices
|
protected java.util.List |
filters
|
protected Log |
log
|
protected java.lang.String |
moduleName
|
protected Server |
server
|
protected ErrorService |
webErrorHandler
|
Constructor Summary | |
AnagramServlet()
|
Method Summary | |
void |
configure(Setting setting)
Configures the module according to the settings provided. |
protected void |
createFilters()
Called by init(Server, Module). |
protected boolean |
debug()
Same as in AbstractModule. |
void |
destroy()
Called when the server is shutting down |
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Handles all incoming requests by doing the following:
|
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Handles POST requests. |
protected ErrorService |
findErrorHandler(ClientRequest request)
Returns an error service which uses the appropriate format based on the type of request. |
java.lang.String |
getModuleID()
Returns an ID for this module. |
java.lang.String |
getModuleName()
Same as in AbstractModule. |
void |
init(Server server,
Module parent)
Initializes the module. |
void |
init(ServletConfig config)
Called when the servlet is first loaded. |
protected boolean |
verbose()
Same as in AbstractModule. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String moduleName
protected Server server
protected Log log
protected java.util.Set dodsErrorServices
protected ErrorService dodsErrorHandler
protected ErrorService webErrorHandler
protected java.util.List filters
Constructor Detail |
public AnagramServlet()
Method Detail |
public java.lang.String getModuleID()
Module
getModuleID
in interface Module
public void init(Server server, Module parent)
Module
This method should copy the server and parent references provided to internal fields, so that the module has access to the rest of the module hierarchy, and then call the init() method of any sub-modules. It can also be used to perform any one-time initialization that requires access to other modules.
This method will only be called once, immediately after the module is created, and before it is configured for the first time. Thus it does not need to be thread-safe.
init
in interface Module
protected void createFilters()
public void configure(Setting setting) throws ConfigException
Module
This method is guaranteed to be called at least once before any requests are sent to the module. The server supports dynamic reconfiguration, and thus this method may be called any number of times during the life of the module. However, it is guaranteed that this method will never be called while a servlet request is being processed. Thus it does not need to be thread-safe.
If this module contains other modules, it is responsible for configuring them using the appropriate sub-settings. Each module should receive the sub-setting that matches its module ID, so that the XML tags in the configuration file match up with the module names in the log file.
configure
in interface Module
ConfigException
- If the module is unable to operate using
the settings provided. This will halt the server's operation, and
thus should only be thrown if there is no reasonable default
that can be used in place of a missing or invalid setting.public java.lang.String getModuleName()
getModuleName
in interface Module
protected boolean debug()
protected boolean verbose()
public void init(ServletConfig config) throws ServletException
ServletException
public void destroy()
public void doPost(HttpServletRequest request, HttpServletResponse response)
public void doGet(HttpServletRequest request, HttpServletResponse response)
protected ErrorService findErrorHandler(ClientRequest request)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |