|
||||||||||
| 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.AbstractAPIRequestHandler
public abstract class AbstractAPIRequestHandler
Abstract API request handler.
Description:
This class can be used as a base class for request handlers which handle API
requests. The AbstractAPIRequestHandler creates an appropriate
message creator.
Concurrency issues:
Use one AbstractAPIRequestHandler implementation
for a single request.
| Field Summary | |
|---|---|
protected java.lang.String |
_sModule
The module name. |
protected java.lang.String |
_sMyOrg
The origanisation |
protected java.lang.String |
_sMyServerId
The server ID |
protected ASelectSystemLogger |
_systemLogger
The system logger. |
| Constructor Summary | |
|---|---|
AbstractAPIRequestHandler(RequestParser reqParser,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
java.lang.String sMyServerId,
java.lang.String sMyOrg)
Construct a instance. |
|
| Method Summary | |
|---|---|
protected abstract void |
processAPIRequest(IProtocolRequest oProtocolRequest,
IInputMessage oInputMessage,
IOutputMessage oOutputMessage)
Prosesses the API request. |
void |
processRequest()
Main process function. |
protected java.lang.String |
serializeAttributes(java.util.Hashtable htAttributes)
Serialize attributes contained in a hashtable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String _sModule
protected ASelectSystemLogger _systemLogger
protected java.lang.String _sMyServerId
protected java.lang.String _sMyOrg
| Constructor Detail |
|---|
public AbstractAPIRequestHandler(RequestParser reqParser,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
java.lang.String sMyServerId,
java.lang.String sMyOrg)
throws ASelectCommunicationException
reqParser - The request parser to be used.servletRequest - The request.servletResponse - The response.sMyServerId - The A-Select Server ID.sMyOrg - The A-Select Server organisation.
ASelectCommunicationException - If communication fails.| Method Detail |
|---|
public void processRequest()
throws ASelectException
Communicator and calls
processAPIRequest(IProtocolRequest, IInputMessage, IOutputMessage)
processRequest in interface IRequestHandlerASelectException - if communication fails and no response
is send to the client.
protected abstract void processAPIRequest(IProtocolRequest oProtocolRequest,
IInputMessage oInputMessage,
IOutputMessage oOutputMessage)
throws ASelectException
oProtocolRequest - The request protocol properties.oInputMessage - The input message.oOutputMessage - The output message.
ASelectException - If processing fails and no response
is send to the client.
protected java.lang.String serializeAttributes(java.util.Hashtable htAttributes)
throws ASelectException
htAttributes - Hashtable containing all attributes
ASelectException - If serialization fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||