org.pentaho.platform.plugin.services.webservices
Class AxisServletHooks

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.axis2.transport.http.AxisServlet
              extended by org.pentaho.platform.plugin.services.webservices.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

Field Summary
 
Fields inherited from class org.apache.axis2.transport.http.AxisServlet
CONFIGURATION_CONTEXT, SESSION_ID
 
Fields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT
 
Constructor Summary
AxisServletHooks()
           
 
Method Summary
 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
destroy, getEPRForService, getEPRsForService, getSessionContext, init, init, init, initContextRoot, start, stop
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 -