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

java.lang.Object
  extended by AxisServlet
      extended by org.pentaho.platform.plugin.services.webservices.AxisServletHooks

public class AxisServletHooks
extends AxisServlet

This class subclasses AxisServlet to expose protected methods and variables

Author:
jamesdixon

Constructor Summary
AxisServletHooks()
           
 
Method Summary
 MessageContext createMessageContext(HttpServletRequest request, HttpServletResponse response, boolean invocationType)
          Creates an Axis message context object for this request.
 MessageContext getMessageContext()
          Returns the current Axis MessageContext object.
 void handleGet(String httpMethodString, HttpServletRequest request, HttpServletResponse response)
          Handle and HTTP GET request
 void handlePost(String httpMethodString, HttpServletRequest request, HttpServletResponse response)
          Handle and HTTP POST request
 void handlePut(String httpMethodString, HttpServletRequest request, HttpServletResponse response)
          Handle and HTTP PUT request
 void setAxisOperation(AxisOperation axisOperation)
          Sets the Axis opertation for the current request
 void setAxisService(AxisService axisService)
          Sets the Axis service object for this request
 void setConfiguration(AxisConfiguration axisConfiguration)
          Sets the Axis configuration object
 void setContext(ConfigurationContext configContext)
          Sets the Axis configuration context object
 void setOperationContext(OperationContext operationContext)
          Sets the Axis operation context for the current request
 void setServiceContext(ServiceContext serviceContext)
          Sets the Axis service context for this request
 void setServletConfig(ServletConfig servletConfig)
          Sets the servlet config object.
 
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 MessageContext getMessageContext()
Returns the current Axis MessageContext object.

Returns:
message context

setContext

public void setContext(ConfigurationContext configContext)
Sets the Axis configuration context object

Parameters:
configContext -

setConfiguration

public void setConfiguration(AxisConfiguration axisConfiguration)
Sets the Axis configuration object

Parameters:
axisConfiguration -

setServiceContext

public void setServiceContext(ServiceContext serviceContext)
Sets the Axis service context for this request

Parameters:
serviceContext -

setServletConfig

public void setServletConfig(ServletConfig servletConfig)
                      throws ServletException
Sets the servlet config object. This is mainly used for standalone and testing purposes

Parameters:
servletConfig -
Throws:
ServletException

createMessageContext

public MessageContext createMessageContext(HttpServletRequest request,
                                           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

Throws:
IOException

handlePut

public void handlePut(String httpMethodString,
                      HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      IOException
Handle and HTTP PUT request

Parameters:
httpMethodString - "PUT"
request - HTTP request
response - HTTP response
Throws:
ServletException
IOException

handleGet

public void handleGet(String httpMethodString,
                      HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      IOException
Handle and HTTP GET request

Parameters:
httpMethodString - "GET"
request - HTTP request
response - HTTP response
Throws:
ServletException
IOException

handlePost

public void handlePost(String httpMethodString,
                       HttpServletRequest request,
                       HttpServletResponse response)
                throws ServletException,
                       IOException
Handle and HTTP POST request

Parameters:
httpMethodString - "POST"
request - HTTP request
response - HTTP response
Throws:
ServletException
IOException

setAxisService

public void setAxisService(AxisService axisService)
Sets the Axis service object for this request

Parameters:
axisService -

setAxisOperation

public void setAxisOperation(AxisOperation axisOperation)
Sets the Axis opertation for the current request

Parameters:
axisOperation -

setOperationContext

public void setOperationContext(OperationContext operationContext)
Sets the Axis operation context for the current request

Parameters:
operationContext -