Class AxisServletHooks
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.apache.axis2.transport.http.AxisServlet
-
- 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.AxisServletThis class subclasses AxisServlet to expose protected methods and variables- Author:
- jamesdixon
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.axis2.description.AxisOperationaxisOperationprotected org.apache.axis2.description.AxisServiceaxisServiceprotected org.apache.axis2.context.MessageContextmessageContextprotected org.apache.axis2.context.OperationContextoperationContextprotected org.apache.axis2.context.ServiceContextserviceContext
-
Constructor Summary
Constructors Constructor Description AxisServletHooks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.axis2.context.MessageContextcreateMessageContext(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.MessageContextgetMessageContext()Returns the current Axis MessageContext object.voidhandleGet(String httpMethodString, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Handle and HTTP GET requestvoidhandlePost(String httpMethodString, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Handle and HTTP POST requestvoidhandlePut(String httpMethodString, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Handle and HTTP PUT requestvoidsetAxisOperation(org.apache.axis2.description.AxisOperation axisOperation)Sets the Axis opertation for the current requestvoidsetAxisService(org.apache.axis2.description.AxisService axisService)Sets the Axis service object for this requestvoidsetConfiguration(org.apache.axis2.engine.AxisConfiguration axisConfiguration)Sets the Axis configuration objectvoidsetContext(org.apache.axis2.context.ConfigurationContext configContext)Sets the Axis configuration context objectvoidsetOperationContext(org.apache.axis2.context.OperationContext operationContext)Sets the Axis operation context for the current requestvoidsetServiceContext(org.apache.axis2.context.ServiceContext serviceContext)Sets the Axis service context for this requestvoidsetServletConfig(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
-
-
-
-
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
-
-
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.ServletExceptionSets 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 IOExceptionCreates 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:
createMessageContextin classorg.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 requestresponse- HTTP response- Throws:
javax.servlet.ServletExceptionIOException
-
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 requestresponse- HTTP response- Throws:
javax.servlet.ServletExceptionIOException
-
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 requestresponse- HTTP response- Throws:
javax.servlet.ServletExceptionIOException
-
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-
-
-