org.apache.synapse.transport.nhttp
Class HttpCoreRequestResponseTransport

java.lang.Object
  extended by org.apache.synapse.transport.nhttp.HttpCoreRequestResponseTransport
All Implemented Interfaces:
RequestResponseTransport

public class HttpCoreRequestResponseTransport
extends Object
implements RequestResponseTransport

This interface is a point of control for Axis2 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.


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)
           
 void awaitResponse()
           
 RequestResponseTransport.RequestResponseTransportStatus getStatus()
           
 boolean isResponseWritten()
           
 void setResponseWritten(boolean responseWritten)
           
 void signalFaultReady(AxisFault fault)
           
 void signalResponseReady()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

acknowledgeMessage

public void acknowledgeMessage(MessageContext msgContext)
                        throws AxisFault
Specified by:
acknowledgeMessage in interface RequestResponseTransport
Throws:
AxisFault

awaitResponse

public void awaitResponse()
                   throws InterruptedException,
                          AxisFault
Specified by:
awaitResponse in interface RequestResponseTransport
Throws:
InterruptedException
AxisFault

signalResponseReady

public void signalResponseReady()
Specified by:
signalResponseReady in interface RequestResponseTransport

getStatus

public RequestResponseTransport.RequestResponseTransportStatus getStatus()
Specified by:
getStatus in interface RequestResponseTransport

signalFaultReady

public void signalFaultReady(AxisFault fault)
Specified by:
signalFaultReady in interface RequestResponseTransport

isResponseWritten

public boolean isResponseWritten()
Specified by:
isResponseWritten in interface RequestResponseTransport

setResponseWritten

public void setResponseWritten(boolean responseWritten)
Specified by:
setResponseWritten in interface RequestResponseTransport


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.