Class TargetHandler
- java.lang.Object
-
- org.apache.synapse.transport.passthru.TargetHandler
-
- All Implemented Interfaces:
org.apache.http.nio.NHttpClientEventHandler
public class TargetHandler extends Object implements org.apache.http.nio.NHttpClientEventHandler
This class is handling events from the transport -- > client.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECTION_POOLstatic StringMESSAGE_SIZE_VALIDATIONstatic StringPROPERTY_FILEstatic StringVALID_MAX_MESSAGE_SIZE
-
Constructor Summary
Constructors Constructor Description TargetHandler(DeliveryAgent deliveryAgent, ClientConnFactory connFactory, TargetConfiguration configuration)TargetHandler(DeliveryAgent deliveryAgent, ClientConnFactory connFactory, TargetConfiguration configuration, List<StreamInterceptor> interceptors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclosed(org.apache.http.nio.NHttpClientConnection conn)voidconnected(org.apache.http.nio.NHttpClientConnection conn, Object o)voidendOfInput(org.apache.http.nio.NHttpClientConnection conn)voidexception(org.apache.http.nio.NHttpClientConnection conn, Exception ex)TargetConfigurationgetTargetConfiguration()voidinputReady(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 Detail
-
PROPERTY_FILE
public static final String PROPERTY_FILE
- See Also:
- Constant Field Values
-
MESSAGE_SIZE_VALIDATION
public static final String MESSAGE_SIZE_VALIDATION
- See Also:
- Constant Field Values
-
VALID_MAX_MESSAGE_SIZE
public static final String VALID_MAX_MESSAGE_SIZE
- See Also:
- Constant Field Values
-
CONNECTION_POOL
public static final String CONNECTION_POOL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TargetHandler
public TargetHandler(DeliveryAgent deliveryAgent, ClientConnFactory connFactory, TargetConfiguration configuration)
-
TargetHandler
public TargetHandler(DeliveryAgent deliveryAgent, ClientConnFactory connFactory, TargetConfiguration configuration, List<StreamInterceptor> interceptors)
-
-
Method Detail
-
connected
public void connected(org.apache.http.nio.NHttpClientConnection conn, Object o)- 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
public void endOfInput(org.apache.http.nio.NHttpClientConnection conn) throws IOException- Specified by:
endOfInputin interfaceorg.apache.http.nio.NHttpClientEventHandler- Throws:
IOException
-
exception
public void exception(org.apache.http.nio.NHttpClientConnection conn, Exception ex)- Specified by:
exceptionin interfaceorg.apache.http.nio.NHttpClientEventHandler
-
setConnFactory
public void setConnFactory(ClientConnFactory connFactory)
-
getTargetConfiguration
public TargetConfiguration getTargetConfiguration()
-
-