org.apache.axis2.transport.http
Class AbstractAgent

java.lang.Object
  extended byorg.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 /.


Field Summary
protected  ConfigurationContext configContext
           
protected static java.lang.String DEFAULT_INDEX_JSP
           
protected  java.util.Map operationCache
           
 
Constructor Summary
AbstractAgent(ConfigurationContext aConfigContext)
           
 
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
 

Field Detail

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
Constructor Detail

AbstractAgent

public AbstractAgent(ConfigurationContext aConfigContext)
Method Detail

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 © 2004-2007 Apache Software Foundation. All Rights Reserved.