|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.transport.nhttp.HttpCoreRequestResponseTransport
public class HttpCoreRequestResponseTransport
This interface is a point of control for Axis2 (and Sandesha2 in particular) to control the behaviour of a Request-Response transport such as HTTP/s For nhttp, this does not make much of a difference, as we are capable of keeping a socket open and writing to it from a different thread, while letting the initial thread that read the request go free. However, it seems like Sandesha2 is looking for this interface, and it is not going to create much of an issue anyway
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.axis2.transport.RequestResponseTransport |
|---|
RequestResponseTransport.RequestResponseTransportStatus |
| Field Summary |
|---|
| Fields inherited from interface org.apache.axis2.transport.RequestResponseTransport |
|---|
HOLD_RESPONSE, TRANSPORT_CONTROL |
| Method Summary | |
|---|---|
void |
acknowledgeMessage(MessageContext msgContext)
Notify the transport that a message should be acknowledged at this time. |
void |
awaitResponse()
Pause execution and wait for a response message to be ready. |
RequestResponseTransport.RequestResponseTransportStatus |
getStatus()
This gives the current status of an RequestResponseTransport object. |
boolean |
isResponseWritten()
This will indicate whether or not the response has already been written |
void |
setResponseWritten(boolean responseWritten)
This is used to set the response written flag on the RequestResponseTransport instance |
void |
signalFaultReady(AxisFault fault)
This will tell the transport to end a current wait by raising the given fault. |
void |
signalResponseReady()
Signal that a response has be created and is ready for transmission. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void acknowledgeMessage(MessageContext msgContext)
throws AxisFault
RequestResponseTransport
acknowledgeMessage in interface RequestResponseTransportAxisFault
public void awaitResponse()
throws java.lang.InterruptedException,
AxisFault
RequestResponseTransport
awaitResponse in interface RequestResponseTransportjava.lang.InterruptedException
AxisFaultpublic void signalResponseReady()
RequestResponseTransport
signalResponseReady in interface RequestResponseTransportpublic RequestResponseTransport.RequestResponseTransportStatus getStatus()
RequestResponseTransport
getStatus in interface RequestResponseTransportpublic void signalFaultReady(AxisFault fault)
RequestResponseTransport
signalFaultReady in interface RequestResponseTransportfault - The fault to be raised.public boolean isResponseWritten()
RequestResponseTransport
isResponseWritten in interface RequestResponseTransportpublic void setResponseWritten(boolean responseWritten)
RequestResponseTransport
setResponseWritten in interface RequestResponseTransport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||