org.openamf
Class AdvancedGateway
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.openamf.DefaultGateway
org.openamf.AdvancedGateway
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class AdvancedGateway
- extends DefaultGateway
Extends the behavior of the DefaultGateway to allow more advanced
configuration such as selecting the invoker, adding access control, storing
state-beans in the request/session, and filtering the results.
For more information about the config options see the config-overview.txt
file the docs directory
- Version:
- $Revision: 1.32 $, $Date: 2004/08/27 02:26:12 $
- Author:
- Jason Calabrese
- See Also:
- Serialized Form
Method Summary |
protected ServiceInvoker |
getServiceInvoker(AMFBody requestBody,
javax.servlet.http.HttpServletRequest httpServletRequest)
Uses the setting in openamf-config.xml to gets the correct invoker,
enforce access control, and store state-beans in the request/session |
java.lang.String |
getServletInfo()
|
protected java.lang.Object |
postInvokeService(javax.servlet.http.HttpServletRequest httpServletRequest,
ServiceInvoker serviceInvoker,
java.lang.Object serviceResult)
Preforms any filtering that was defined in openamd-config.xml and then
return control to the DefaultGateway |
Methods inherited from class org.openamf.DefaultGateway |
clearRequestContext, deserializeAMFMessage, init, initializeRequestContext, invokeBody, logRequestException, preInvokeService, processMessage, reloadConfig, serializeAMFMessage, service |
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 |
AdvancedGateway
public AdvancedGateway()
getServiceInvoker
protected ServiceInvoker getServiceInvoker(AMFBody requestBody,
javax.servlet.http.HttpServletRequest httpServletRequest)
throws ServiceInvocationException
- Uses the setting in openamf-config.xml to gets the correct invoker,
enforce access control, and store state-beans in the request/session
- Overrides:
getServiceInvoker
in class DefaultGateway
- Throws:
ServiceInvocationException
- See Also:
DefaultGateway.getServiceInvoker(org.openamf.AMFBody,
javax.servlet.http.HttpServletRequest)
postInvokeService
protected java.lang.Object postInvokeService(javax.servlet.http.HttpServletRequest httpServletRequest,
ServiceInvoker serviceInvoker,
java.lang.Object serviceResult)
throws ServiceInvocationException
- Preforms any filtering that was defined in openamd-config.xml and then
return control to the DefaultGateway
- Overrides:
postInvokeService
in class DefaultGateway
- Throws:
ServiceInvocationException
- See Also:
DefaultGateway.postInvokeService(javax.servlet.http.HttpServletRequest,
org.openamf.invoker.ServiceInvoker, java.lang.Object)
getServletInfo
public java.lang.String getServletInfo()
- Specified by:
getServletInfo
in interface javax.servlet.Servlet
- Overrides:
getServletInfo
in class DefaultGateway