Class AbstractAgent

  • Direct Known Subclasses:
    ListingAgent

    public class AbstractAgent
    extends 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 /.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractAgent​(org.apache.axis2.context.ConfigurationContext aConfigContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)  
      protected void populateRequestAttributes​(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​(String jspName, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)  
    • Field Detail

      • operationCache

        protected transient Map operationCache
      • configContext

        protected transient org.apache.axis2.context.ConfigurationContext configContext
    • Constructor Detail

      • AbstractAgent

        public AbstractAgent​(org.apache.axis2.context.ConfigurationContext aConfigContext)
    • Method Detail

      • handle

        public void handle​(javax.servlet.http.HttpServletRequest httpServletRequest,
                           javax.servlet.http.HttpServletResponse httpServletResponse)
                    throws IOException,
                           javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • processIndex

        protected void processIndex​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                    javax.servlet.http.HttpServletResponse httpServletResponse)
                             throws 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:
        IOException
        javax.servlet.ServletException
      • processUnknown

        protected void processUnknown​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                      javax.servlet.http.HttpServletResponse httpServletResponse)
                               throws 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:
        IOException
        javax.servlet.ServletException
      • renderView

        protected void renderView​(String jspName,
                                  javax.servlet.http.HttpServletRequest httpServletRequest,
                                  javax.servlet.http.HttpServletResponse httpServletResponse)
                           throws IOException,
                                  javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • populateRequestAttributes

        protected void populateRequestAttributes​(javax.servlet.http.HttpServletRequest req)