Class AxisServletHooks

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.apache.axis2.transport.TransportListener

    public class AxisServletHooks
    extends org.apache.axis2.transport.http.AxisServlet
    This class subclasses AxisServlet to expose protected methods and variables
    Author:
    jamesdixon
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.axis2.transport.http.AxisServlet

        org.apache.axis2.transport.http.AxisServlet.RestRequestProcessor, org.apache.axis2.transport.http.AxisServlet.ServletRequestResponseTransport
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.axis2.description.AxisOperation axisOperation  
      protected org.apache.axis2.description.AxisService axisService  
      protected org.apache.axis2.context.MessageContext messageContext  
      protected org.apache.axis2.context.OperationContext operationContext  
      protected org.apache.axis2.context.ServiceContext serviceContext  
      • Fields inherited from class org.apache.axis2.transport.http.AxisServlet

        agent, axisConfiguration, configContext, CONFIGURATION_CONTEXT, contextRoot, disableREST, servletConfig, SESSION_ID
      • Fields inherited from interface org.apache.axis2.transport.TransportListener

        HOST_ADDRESS, PARAM_PORT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.axis2.context.MessageContext createMessageContext​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean invocationType)
      Creates an Axis message context object for this request.
      org.apache.axis2.context.MessageContext getMessageContext()
      Returns the current Axis MessageContext object.
      void handleGet​(String httpMethodString, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Handle and HTTP GET request
      void handlePost​(String httpMethodString, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Handle and HTTP POST request
      void handlePut​(String httpMethodString, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Handle and HTTP PUT request
      void setAxisOperation​(org.apache.axis2.description.AxisOperation axisOperation)
      Sets the Axis opertation for the current request
      void setAxisService​(org.apache.axis2.description.AxisService axisService)
      Sets the Axis service object for this request
      void setConfiguration​(org.apache.axis2.engine.AxisConfiguration axisConfiguration)
      Sets the Axis configuration object
      void setContext​(org.apache.axis2.context.ConfigurationContext configContext)
      Sets the Axis configuration context object
      void setOperationContext​(org.apache.axis2.context.OperationContext operationContext)
      Sets the Axis operation context for the current request
      void setServiceContext​(org.apache.axis2.context.ServiceContext serviceContext)
      Sets the Axis service context for this request
      void setServletConfig​(javax.servlet.ServletConfig servletConfig)
      Sets the servlet config object.
      • Methods inherited from class org.apache.axis2.transport.http.AxisServlet

        createMessageContext, destroy, doDelete, doGet, doPost, doPut, getEPRForService, getEPRsForService, getSessionContext, getTransportHeaders, handleFault, init, init, init, initConfigContext, initContextRoot, initParams, showRestDisabledErrorMessage, start, stop
      • Methods inherited from class javax.servlet.http.HttpServlet

        doHead, doOptions, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
    • Field Detail

      • axisService

        protected org.apache.axis2.description.AxisService axisService
      • axisOperation

        protected org.apache.axis2.description.AxisOperation axisOperation
      • operationContext

        protected org.apache.axis2.context.OperationContext operationContext
      • serviceContext

        protected org.apache.axis2.context.ServiceContext serviceContext
      • messageContext

        protected org.apache.axis2.context.MessageContext messageContext
    • Constructor Detail

      • AxisServletHooks

        public AxisServletHooks()
    • Method Detail

      • getMessageContext

        public org.apache.axis2.context.MessageContext getMessageContext()
        Returns the current Axis MessageContext object.
        Returns:
        message context
      • setContext

        public void setContext​(org.apache.axis2.context.ConfigurationContext configContext)
        Sets the Axis configuration context object
        Parameters:
        configContext -
      • setConfiguration

        public void setConfiguration​(org.apache.axis2.engine.AxisConfiguration axisConfiguration)
        Sets the Axis configuration object
        Parameters:
        axisConfiguration -
      • setServiceContext

        public void setServiceContext​(org.apache.axis2.context.ServiceContext serviceContext)
        Sets the Axis service context for this request
        Parameters:
        serviceContext -
      • setServletConfig

        public void setServletConfig​(javax.servlet.ServletConfig servletConfig)
                              throws javax.servlet.ServletException
        Sets the servlet config object. This is mainly used for standalone and testing purposes
        Parameters:
        servletConfig -
        Throws:
        javax.servlet.ServletException
      • createMessageContext

        public org.apache.axis2.context.MessageContext createMessageContext​(javax.servlet.http.HttpServletRequest request,
                                                                            javax.servlet.http.HttpServletResponse response,
                                                                            boolean invocationType)
                                                                     throws IOException
        Creates an Axis message context object for this request. If the AxisOperation is null (this will be the case during a POST operation) the operation is determined by examining the contentType
        Overrides:
        createMessageContext in class org.apache.axis2.transport.http.AxisServlet
        Throws:
        IOException
      • handlePut

        public void handlePut​(String httpMethodString,
                              javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws javax.servlet.ServletException,
                              IOException
        Handle and HTTP PUT request
        Parameters:
        httpMethodString - "PUT"
        request - HTTP request
        response - HTTP response
        Throws:
        javax.servlet.ServletException
        IOException
      • handleGet

        public void handleGet​(String httpMethodString,
                              javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws javax.servlet.ServletException,
                              IOException
        Handle and HTTP GET request
        Parameters:
        httpMethodString - "GET"
        request - HTTP request
        response - HTTP response
        Throws:
        javax.servlet.ServletException
        IOException
      • handlePost

        public void handlePost​(String httpMethodString,
                               javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response)
                        throws javax.servlet.ServletException,
                               IOException
        Handle and HTTP POST request
        Parameters:
        httpMethodString - "POST"
        request - HTTP request
        response - HTTP response
        Throws:
        javax.servlet.ServletException
        IOException
      • setAxisService

        public void setAxisService​(org.apache.axis2.description.AxisService axisService)
        Sets the Axis service object for this request
        Parameters:
        axisService -
      • setAxisOperation

        public void setAxisOperation​(org.apache.axis2.description.AxisOperation axisOperation)
        Sets the Axis opertation for the current request
        Parameters:
        axisOperation -
      • setOperationContext

        public void setOperationContext​(org.apache.axis2.context.OperationContext operationContext)
        Sets the Axis operation context for the current request
        Parameters:
        operationContext -