|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.transport.passthru.ServerWorker
public class ServerWorker
This is a worker thread for executing an incoming request in to the transport.
| Constructor Summary | |
|---|---|
ServerWorker(SourceRequest request,
SourceConfiguration sourceConfiguration,
OutputStream os)
|
|
| Method Summary | |
|---|---|
org.apache.axis2.context.MessageContext |
createMessageContext(org.apache.axis2.context.MessageContext msgContext,
SourceRequest request)
Create an Axis2 message context for the given http request. |
SourceConfiguration |
getSourceConfiguration()
Get the shared pass-through source configuration |
SourceRequest |
getSourceRequest()
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerWorker(SourceRequest request,
SourceConfiguration sourceConfiguration,
OutputStream os)
| Method Detail |
|---|
public void run()
run in interface Runnablepublic 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 context
public SourceRequest getSourceRequest()
public void setSourceRequest(SourceRequest request)
request - Set SourceRequest to be processed by ServerWorker
public boolean isRESTRequest(org.apache.axis2.context.MessageContext msgContext,
String method)
msgContext - Axis2MessageContext of the requestmethod - HTTP Method of the request
public void processHttpRequestUri(org.apache.axis2.context.MessageContext msgContext,
String method)
msgContext - Axis2MessageContext of the requestmethod - HTTP Method of the requestpublic SourceConfiguration getSourceConfiguration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||