|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aselect.server.request.handler.sfs.authentication.RequestHandlerFactory
public class RequestHandlerFactory
The request hendler factory for the A-Select Server.
Description:
A singleton factory, which can be used to create IRequestHandler
implementations. The factory uses a RequestParser
to determine
the type of request handler and constructs this type of handler.
Concurrency issues:
The class is a singleton, so the same class is used in all the classes of
the A-Select Server.
Method Summary | |
---|---|
IRequestHandler |
createRequestHandler(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Factory method for creating a request handler. |
static RequestHandlerFactory |
getHandle()
Get a static handle to the RequestHandlerFactory instance. |
void |
init(java.lang.String sServerId,
java.lang.String sOrg)
Initializes the RequestHandlerFactory . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RequestHandlerFactory getHandle()
RequestHandlerFactory
instance.
RequestHandlerFactory
exists.
RequestHandlerFactory
public void init(java.lang.String sServerId, java.lang.String sOrg)
RequestHandlerFactory
.
sServerId
- The A-Select Server ID.sOrg
- The A-Select server organisation.public IRequestHandler createRequestHandler(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws ASelectCommunicationException
RequestParser
to determine the type of request handler and
constructs this type of handler.
RequestHandlerFactory
is initialised.servletRequest != null
servletResponse != null
servletRequest
- The request that was issued to the server.servletResponse
- The response to the client.
ASelectCommunicationException
- If communication failed and no response was sent to the client yet.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |