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.AxisServlet
This class subclasses AxisServlet to expose protected methods and variables
- Author:
- jamesdixon
- See Also:
-
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
FieldsModifier and TypeFieldDescriptionprotected org.apache.axis2.description.AxisOperationprotected org.apache.axis2.description.AxisServiceprotected org.apache.axis2.context.MessageContextprotected org.apache.axis2.context.OperationContextprotected org.apache.axis2.context.ServiceContextFields inherited from class org.apache.axis2.transport.http.AxisServlet
agent, axisConfiguration, configContext, CONFIGURATION_CONTEXT, contextRoot, disableREST, servletConfig, SESSION_IDFields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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.MessageContextReturns 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, stopMethods inherited from class javax.servlet.http.HttpServlet
doHead, doOptions, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
-
Field Details
-
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 Details
-
AxisServletHooks
public AxisServletHooks()
-
-
Method Details
-
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:
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-
-