Class TargetHandler
java.lang.Object
org.apache.synapse.transport.passthru.TargetHandler
- All Implemented Interfaces:
org.apache.http.nio.NHttpClientEventHandler
This class is handling events from the transport -- > client.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTargetHandler(DeliveryAgent deliveryAgent, ClientConnFactory connFactory, TargetConfiguration configuration) TargetHandler(DeliveryAgent deliveryAgent, ClientConnFactory connFactory, TargetConfiguration configuration, List<StreamInterceptor> interceptors) -
Method Summary
Modifier and TypeMethodDescriptionvoidclosed(org.apache.http.nio.NHttpClientConnection conn) voidvoidendOfInput(org.apache.http.nio.NHttpClientConnection conn) voidvoidinputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentDecoder decoder) voidoutputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentEncoder encoder) voidrequestReady(org.apache.http.nio.NHttpClientConnection conn) voidresponseReceived(org.apache.http.nio.NHttpClientConnection conn) voidsetConnFactory(ClientConnFactory connFactory) voidtimeout(org.apache.http.nio.NHttpClientConnection conn)
-
Field Details
-
PROPERTY_FILE
- See Also:
-
MESSAGE_SIZE_VALIDATION
- See Also:
-
VALID_MAX_MESSAGE_SIZE
- See Also:
-
DROP_MESSAGE_WHEN_SIZE_LIMIT_EXCEEDED
- See Also:
-
CONNECTION_POOL
- See Also:
-
-
Constructor Details
-
TargetHandler
public TargetHandler(DeliveryAgent deliveryAgent, ClientConnFactory connFactory, TargetConfiguration configuration) -
TargetHandler
public TargetHandler(DeliveryAgent deliveryAgent, ClientConnFactory connFactory, TargetConfiguration configuration, List<StreamInterceptor> interceptors)
-
-
Method Details
-
connected
- Specified by:
connectedin interfaceorg.apache.http.nio.NHttpClientEventHandler
-
requestReady
public void requestReady(org.apache.http.nio.NHttpClientConnection conn) - Specified by:
requestReadyin interfaceorg.apache.http.nio.NHttpClientEventHandler
-
outputReady
public void outputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentEncoder encoder) - Specified by:
outputReadyin interfaceorg.apache.http.nio.NHttpClientEventHandler
-
responseReceived
public void responseReceived(org.apache.http.nio.NHttpClientConnection conn) - Specified by:
responseReceivedin interfaceorg.apache.http.nio.NHttpClientEventHandler
-
inputReady
public void inputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentDecoder decoder) - Specified by:
inputReadyin interfaceorg.apache.http.nio.NHttpClientEventHandler
-
closed
public void closed(org.apache.http.nio.NHttpClientConnection conn) - Specified by:
closedin interfaceorg.apache.http.nio.NHttpClientEventHandler
-
timeout
public void timeout(org.apache.http.nio.NHttpClientConnection conn) - Specified by:
timeoutin interfaceorg.apache.http.nio.NHttpClientEventHandler
-
endOfInput
- Specified by:
endOfInputin interfaceorg.apache.http.nio.NHttpClientEventHandler- Throws:
IOException
-
exception
- Specified by:
exceptionin interfaceorg.apache.http.nio.NHttpClientEventHandler
-
setConnFactory
-
getTargetConfiguration
-