From e836cc2edc309fa35f7342e31e96303f16d910cf Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Tue, 1 Jul 2014 13:28:44 -0400 Subject: [PATCH] Fix Tcp Interceptor Docs http://stackoverflow.com/questions/24514348/tcpinboundgateway-replychannel-error-handling --- src/reference/docbook/ip.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/reference/docbook/ip.xml b/src/reference/docbook/ip.xml index cdf7a55808..e8f4984122 100644 --- a/src/reference/docbook/ip.xml +++ b/src/reference/docbook/ip.xml @@ -428,14 +428,14 @@ All TcpConnection methods are intercepted. Interceptor instances are created for each connection by an interceptor factory. - If an interceptor is stateful, the factory should create a new instance for each connection. - Interceptor + If an interceptor is stateful, the factory should create a new instance for each connection; + if there is no state, the same interceptor can wrap each connection. Interceptor factories are added to the configuration of an interceptor factory chain, which is provided to a connection factory using the interceptor-factory attribute. - Interceptors must implement the TcpConnectionInterceptor interface; + Interceptors must extend TcpConnectionInterceptorSupport; factories - must implement the TcpConnectionInterceptorFactory interface. A - convenience class AbstractTcpConnectionInterceptor is provided + must implement the TcpConnectionInterceptorFactory interface. + TcpConnectionInterceptorSupport is provided with passthrough methods; by extending this class, you only need to implement those methods you wish to intercept.