Package org.apache.axis2.transport.http
Class AxisServlet.ServletRequestResponseTransport
- java.lang.Object
-
- org.apache.axis2.transport.http.AxisServlet.ServletRequestResponseTransport
-
- All Implemented Interfaces:
RequestResponseTransport
- Enclosing class:
- AxisServlet
protected class AxisServlet.ServletRequestResponseTransport extends Object implements RequestResponseTransport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.axis2.kernel.RequestResponseTransport
RequestResponseTransport.RequestResponseTransportStatus
-
-
Field Summary
-
Fields inherited from interface org.apache.axis2.kernel.RequestResponseTransport
HOLD_RESPONSE, TRANSPORT_CONTROL
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServletRequestResponseTransport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacknowledgeMessage(MessageContext msgContext)Notify the transport that a message should be acknowledged at this time.voidawaitResponse()Pause execution and wait for a response message to be ready.RequestResponseTransport.RequestResponseTransportStatusgetStatus()This gives the current status of an RequestResponseTransport object.booleanisResponseWritten()This will indicate whether or not the response has already been writtenvoidsetResponseWritten(boolean responseWritten)This is used to set the response written flag on the RequestResponseTransport instancevoidsignalFaultReady(AxisFault fault)This will tell the transport to end a current wait by raising the given fault.voidsignalResponseReady()Signal that a response has be created and is ready for transmission.
-
-
-
Method Detail
-
acknowledgeMessage
public void acknowledgeMessage(MessageContext msgContext) throws AxisFault
Description copied from interface:RequestResponseTransportNotify the transport that a message should be acknowledged at this time.- Specified by:
acknowledgeMessagein interfaceRequestResponseTransport- Throws:
AxisFault
-
awaitResponse
public void awaitResponse() throws InterruptedException, AxisFaultDescription copied from interface:RequestResponseTransportPause execution and wait for a response message to be ready. This will typically be called by the transport after a message has been paused and will cause the transport to block until a response message is ready to be returned. This is required to enable RM for in-out MEPs over a request/response transport; without it the message would be paused and the transport would simply ack the request.- Specified by:
awaitResponsein interfaceRequestResponseTransport- Throws:
InterruptedExceptionAxisFault
-
signalResponseReady
public void signalResponseReady()
Description copied from interface:RequestResponseTransportSignal that a response has be created and is ready for transmission. This should release anyone who is blocked on a awaitResponse().- Specified by:
signalResponseReadyin interfaceRequestResponseTransport
-
getStatus
public RequestResponseTransport.RequestResponseTransportStatus getStatus()
Description copied from interface:RequestResponseTransportThis gives the current status of an RequestResponseTransport object.- Specified by:
getStatusin interfaceRequestResponseTransport- Returns:
-
signalFaultReady
public void signalFaultReady(AxisFault fault)
Description copied from interface:RequestResponseTransportThis will tell the transport to end a current wait by raising the given fault.- Specified by:
signalFaultReadyin interfaceRequestResponseTransport- Parameters:
fault- The fault to be raised.
-
isResponseWritten
public boolean isResponseWritten()
Description copied from interface:RequestResponseTransportThis will indicate whether or not the response has already been written- Specified by:
isResponseWrittenin interfaceRequestResponseTransport
-
setResponseWritten
public void setResponseWritten(boolean responseWritten)
Description copied from interface:RequestResponseTransportThis is used to set the response written flag on the RequestResponseTransport instance- Specified by:
setResponseWrittenin interfaceRequestResponseTransport
-
-