|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RequestResponseTransport
This interface represents a control object for a Request/Response transport. The normal flow of Axis2 is rooted at the transport -- this does not allow for an acknowledgement to be transmitted before processing has completed, nor does it allow for processing to be paused and resumed on a separate thread without having a response be sent back. This interface enables both of those scenarios by allowing the transport to expose controls to the rest of the engine via a callback.
| Nested Class Summary | |
|---|---|
static class |
RequestResponseTransport.RequestResponseTransportStatus
Used to give the current status of the RequestResponseTransport object. |
| Field Summary | |
|---|---|
static java.lang.String |
HOLD_RESPONSE
If this property is set to true in a message transport will call the awaitResponse method of the RequestResponseTransport instead of returning. |
static java.lang.String |
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. |
| Field Detail |
|---|
static final java.lang.String TRANSPORT_CONTROL
static final java.lang.String HOLD_RESPONSE
| Method Detail |
|---|
void acknowledgeMessage(MessageContext msgContext)
throws AxisFault
msgContext -
AxisFault
void awaitResponse()
throws java.lang.InterruptedException,
AxisFault
java.lang.InterruptedException
AxisFaultvoid signalResponseReady()
void signalFaultReady(AxisFault fault)
fault - The fault to be raised.RequestResponseTransport.RequestResponseTransportStatus getStatus()
boolean isResponseWritten()
void setResponseWritten(boolean responseWritten)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||