public class MailRequestResponseTransport extends Object implements RequestResponseTransport
RequestResponseTransport.RequestResponseTransportStatusHOLD_RESPONSE, TRANSPORT_CONTROL| Constructor and Description |
|---|
MailRequestResponseTransport() |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledgeMessage(MessageContext messageContext)
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 b)
This is used to set the response written flag on the RequestResponseTransport
instance
|
void |
signalFaultReady(AxisFault axisFault)
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.
|
public void acknowledgeMessage(MessageContext messageContext) throws AxisFault
RequestResponseTransportacknowledgeMessage in interface RequestResponseTransportAxisFaultpublic void awaitResponse()
throws InterruptedException,
AxisFault
RequestResponseTransportawaitResponse in interface RequestResponseTransportInterruptedExceptionAxisFaultpublic void signalResponseReady()
RequestResponseTransportsignalResponseReady in interface RequestResponseTransportpublic void signalFaultReady(AxisFault axisFault)
RequestResponseTransportsignalFaultReady in interface RequestResponseTransportaxisFault - The fault to be raised.public RequestResponseTransport.RequestResponseTransportStatus getStatus()
RequestResponseTransportgetStatus in interface RequestResponseTransportpublic boolean isResponseWritten()
RequestResponseTransportisResponseWritten in interface RequestResponseTransportpublic void setResponseWritten(boolean b)
RequestResponseTransportsetResponseWritten in interface RequestResponseTransportCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.