|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.openamf.DefaultGateway
This is the Default entry for all amf requests When a request is recieved it will be deserialized, processed, and then the response wil be serialized and sent to the client.
Field Summary | |
protected static org.apache.commons.logging.Log |
log
|
protected static org.apache.commons.logging.Log |
requestLog
|
protected static org.apache.commons.logging.Log |
responseLog
|
Constructor Summary | |
DefaultGateway()
|
Method Summary | |
protected void |
clearRequestContext()
|
protected AMFMessage |
deserializeAMFMessage(javax.servlet.http.HttpServletRequest req)
Uses the AMFDeserializer to deserialize the request |
protected ServiceInvoker |
getServiceInvoker(AMFBody requestBody,
javax.servlet.http.HttpServletRequest httpServletRequest)
This method is used to find the correct invoker for the request. |
java.lang.String |
getServletInfo()
|
void |
init()
|
protected void |
initializeRequestContext(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected java.lang.Object |
invokeBody(javax.servlet.http.HttpServletRequest req,
AMFBody requestBody)
|
protected void |
logRequestException(java.lang.Exception e,
java.lang.Object detail)
|
protected java.lang.Object |
postInvokeService(javax.servlet.http.HttpServletRequest httpServletRequest,
ServiceInvoker serviceInvoker,
java.lang.Object serviceResult)
Called after the body is invoked, if the selected invoker is a persistant service it's persistent service object will be stored in the session |
protected void |
preInvokeService(javax.servlet.http.HttpServletRequest httpServletRequest,
ServiceInvoker serviceInvoker)
Called before a body is invoked, if the selected invoker is a persistent service it's persistent service object will be looked up in the session |
protected AMFMessage |
processMessage(javax.servlet.http.HttpServletRequest req,
AMFMessage message)
Iterates through the request message's bodies, invokes each body and then, builds a message to send as the results |
protected OpenAMFConfig |
reloadConfig()
Loads/Reloads OpenAMF COnfiguration from the openamf-config.xml file |
protected void |
serializeAMFMessage(javax.servlet.http.HttpServletResponse resp,
AMFMessage message)
Uses the AMFSerializer to serialize the request |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Main entry point for the servlet |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log log
protected static org.apache.commons.logging.Log requestLog
protected static org.apache.commons.logging.Log responseLog
Constructor Detail |
public DefaultGateway()
Method Detail |
public void init() throws javax.servlet.ServletException
javax.servlet.ServletException
protected void initializeRequestContext(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected void clearRequestContext()
public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
protected void logRequestException(java.lang.Exception e, java.lang.Object detail)
protected AMFMessage deserializeAMFMessage(javax.servlet.http.HttpServletRequest req) throws java.io.IOException
java.io.IOException
AMFDeserializer
protected void serializeAMFMessage(javax.servlet.http.HttpServletResponse resp, AMFMessage message) throws java.io.IOException
java.io.IOException
AMFSerializer
protected AMFMessage processMessage(javax.servlet.http.HttpServletRequest req, AMFMessage message)
protected java.lang.Object invokeBody(javax.servlet.http.HttpServletRequest req, AMFBody requestBody)
protected void preInvokeService(javax.servlet.http.HttpServletRequest httpServletRequest, ServiceInvoker serviceInvoker) throws ServiceInvocationException
ServiceInvocationException
protected java.lang.Object postInvokeService(javax.servlet.http.HttpServletRequest httpServletRequest, ServiceInvoker serviceInvoker, java.lang.Object serviceResult) throws ServiceInvocationException
ServiceInvocationException
protected ServiceInvoker getServiceInvoker(AMFBody requestBody, javax.servlet.http.HttpServletRequest httpServletRequest) throws ServiceInvocationException
ServiceInvocationException
org.openamf.invoker.ServiceInvoker#supports(org.openamf.invoker.ServiceInvoker)
protected OpenAMFConfig reloadConfig()
public java.lang.String getServletInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |