| Constructor and Description |
|---|
ServerWorker(SourceRequest request,
SourceConfiguration sourceConfiguration,
OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.axis2.context.MessageContext |
createMessageContext(org.apache.axis2.context.MessageContext msgContext,
SourceRequest request)
Create an Axis2 message context for the given http request.
|
protected org.apache.axis2.context.MessageContext |
getRequestContext() |
SourceConfiguration |
getSourceConfiguration()
Get the shared pass-through source configuration
|
SourceRequest |
getSourceRequest() |
org.apache.axiom.soap.SOAPEnvelope |
handleRESTUrlPost(String contentTypeHdr)
Method will setup the necessary parameters for the rest url post action
|
boolean |
isRESTRequest(org.apache.axis2.context.MessageContext msgContext,
String method)
Adding REST related properties to the message context if request is REST
|
void |
processEntityEnclosingRequest(org.apache.axis2.context.MessageContext msgContext,
boolean injectToAxis2Engine) |
void |
processHttpRequestUri(org.apache.axis2.context.MessageContext msgContext,
String method)
Get Uri of underlying SourceRequest and calculate service prefix and add to message context
create response buffers for HTTP GET, DELETE, OPTION and HEAD methods
|
void |
processNonEntityEnclosingRESTHandler(org.apache.axiom.soap.SOAPEnvelope soapEnvelope,
org.apache.axis2.context.MessageContext msgContext,
boolean injectToAxis2Engine) |
void |
run() |
void |
sendAck(org.apache.axis2.context.MessageContext msgContext) |
void |
setSourceRequest(SourceRequest request) |
public ServerWorker(SourceRequest request, SourceConfiguration sourceConfiguration, OutputStream os)
public org.apache.axiom.soap.SOAPEnvelope handleRESTUrlPost(String contentTypeHdr) throws FactoryConfigurationError
FactoryConfigurationErrorpublic void sendAck(org.apache.axis2.context.MessageContext msgContext)
public void processNonEntityEnclosingRESTHandler(org.apache.axiom.soap.SOAPEnvelope soapEnvelope,
org.apache.axis2.context.MessageContext msgContext,
boolean injectToAxis2Engine)
public void processEntityEnclosingRequest(org.apache.axis2.context.MessageContext msgContext,
boolean injectToAxis2Engine)
public org.apache.axis2.context.MessageContext createMessageContext(org.apache.axis2.context.MessageContext msgContext,
SourceRequest request)
request - the http request to be used to create the corresponding Axis2 message contextprotected org.apache.axis2.context.MessageContext getRequestContext()
public SourceRequest getSourceRequest()
public void setSourceRequest(SourceRequest request)
request - Set SourceRequest to be processed by ServerWorkerpublic boolean isRESTRequest(org.apache.axis2.context.MessageContext msgContext,
String method)
msgContext - Axis2MessageContext of the requestmethod - HTTP Method of the requestpublic void processHttpRequestUri(org.apache.axis2.context.MessageContext msgContext,
String method)
msgContext - Axis2MessageContext of the requestmethod - HTTP Method of the requestpublic SourceConfiguration getSourceConfiguration()
Copyright © 2005–2017 Apache Software Foundation. All rights reserved.