org.apache.axis2.transport.http
Class AbstractAgent
java.lang.Object
org.apache.axis2.transport.http.AbstractAgent
- Direct Known Subclasses:
- AdminAgent, ListingAgent
public class AbstractAgent
- extends java.lang.Object
The AbstractAgent acts as a simple dispatcher for http requests.
It delegates incoming requests to processXyz methods while Xyz
is the part of the request uri past last /.
Method Summary |
void |
handle(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
|
protected void |
populateSessionInformation(javax.servlet.http.HttpServletRequest req)
|
protected void |
processIndex(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Callback method for index page. |
protected void |
processUnknown(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Callback method for unknown/unsupported requests. |
protected void |
renderView(java.lang.String jspName,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_INDEX_JSP
protected static final java.lang.String DEFAULT_INDEX_JSP
- See Also:
- Constant Field Values
operationCache
protected transient java.util.Map operationCache
configContext
protected transient ConfigurationContext configContext
AbstractAgent
public AbstractAgent(ConfigurationContext aConfigContext)
handle
public void handle(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.io.IOException,
javax.servlet.ServletException
- Throws:
java.io.IOException
javax.servlet.ServletException
processIndex
protected void processIndex(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.io.IOException,
javax.servlet.ServletException
- Callback method for index page. Forwards to
DEFAULT_INDEX_JSP
by default.
- Parameters:
httpServletRequest
- The incoming request.httpServletResponse
- The outgoing response.
- Throws:
java.io.IOException
javax.servlet.ServletException
processUnknown
protected void processUnknown(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.io.IOException,
javax.servlet.ServletException
- Callback method for unknown/unsupported requests. Returns HTTP Status 404 by default.
- Parameters:
httpServletRequest
- The incoming request.httpServletResponse
- The outgoing response.
- Throws:
java.io.IOException
javax.servlet.ServletException
renderView
protected void renderView(java.lang.String jspName,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.io.IOException,
javax.servlet.ServletException
- Throws:
java.io.IOException
javax.servlet.ServletException
populateSessionInformation
protected void populateSessionInformation(javax.servlet.http.HttpServletRequest req)
Copyright ? 2007 Apache Web Services Project. All Rights Reserved.