|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aselect.server.request.RequestHandlerFactory
public class RequestHandlerFactory
Factory that invokes the appropriate request handler.
Description:
Using the request URL this Factory will try and match it with the
configured regular expressions and invoke the associated request
handler. The first match will process the request.
Concurrency issues:
- The factory is singleton
Method Summary | |
---|---|
void |
destroy()
Destroys all objects created as class instance by this object. |
static RequestHandlerFactory |
getHandle()
Returns an instance of this object. |
java.util.Vector |
getRequestHandlers()
|
void |
init(javax.servlet.ServletConfig oServletConfig,
java.lang.Object oConfig)
Initializes the Factory and the configured Request Handlers. |
void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes an incoming Servlet request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void init(javax.servlet.ServletConfig oServletConfig, java.lang.Object oConfig) throws ASelectException
_htRequestHandlers
- The sequence that must be used while matching a request is stored in
_vRequestHandlers
oServletConfig
- The Servlet configuration of the Parent (Servlet) objectoConfig
- The configuration object containing the request handler config
ASelectException
- if initalization failspublic void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ASelectException
request
- the HttpServletRequest containing the requestresponse
- the HttpServletResponse were the response will be send
ASelectException
- if the matching request handler can't process
the requestpublic static RequestHandlerFactory getHandle()
RequestHandlerFactory
if the
_oRequestHandlerFactory
variable is null
, else
returns the object containing the _oRequestHandlerFactory
object.
RequestHandlerFactory
instancepublic void destroy()
public java.util.Vector getRequestHandlers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |