Package org.openwms.common.comm.app
Class TenantInterception
java.lang.Object
org.springframework.integration.ip.tcp.connection.TcpConnectionSupport
org.springframework.integration.ip.tcp.connection.TcpConnectionInterceptorSupport
org.openwms.common.comm.app.TenantInterception
- All Implemented Interfaces:
Runnable,org.springframework.integration.ip.tcp.connection.TcpConnection,org.springframework.integration.ip.tcp.connection.TcpConnectionInterceptor,org.springframework.integration.ip.tcp.connection.TcpListener,org.springframework.integration.ip.tcp.connection.TcpSender
class TenantInterception
extends org.springframework.integration.ip.tcp.connection.TcpConnectionInterceptorSupport
A TenantInterception initializes a context to propagate tenant and identity information.
- Author:
- Heiko Scherrer
-
Field Summary
Fields inherited from class org.springframework.integration.ip.tcp.connection.TcpConnectionSupport
logger -
Constructor Summary
ConstructorsConstructorDescriptionTenantInterception(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionbooleanonMessage(org.springframework.messaging.Message<?> message) Enrich the processing context of the incoming message with the information we get from the message.Methods inherited from class org.springframework.integration.ip.tcp.connection.TcpConnectionInterceptorSupport
addNewConnection, close, getConnectionFactoryName, getConnectionId, getDeserializer, getDeserializerStateKey, getHostAddress, getHostName, getListener, getPayload, getPort, getSender, getSenders, getSerializer, getSocketInfo, getSslSession, getTheConnection, hasRealSender, incrementAndGetConnectionSequence, isOpen, isServer, registerListener, registerSender, registerSenders, removeDeadConnection, run, send, setDeserializer, setMapper, setSerializer, setTheConnectionMethods inherited from class org.springframework.integration.ip.tcp.connection.TcpConnectionSupport
closeConnection, enableManualListenerRegistration, getMapper, isNoReadErrorOnClose, publishConnectionCloseEvent, publishConnectionExceptionEvent, publishConnectionOpenEvent, publishEvent, registerTestListener, sendExceptionToListener, setNeedsTest, setNoReadErrorOnClose, setWrapped, setWrapper, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.integration.ip.tcp.connection.TcpConnection
shutdownInput, shutdownOutput
-
Constructor Details
-
TenantInterception
public TenantInterception(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
-
-
Method Details
-
onMessage
public boolean onMessage(org.springframework.messaging.Message<?> message) Enrich the processing context of the incoming message with the information we get from the message.- Specified by:
onMessagein interfaceorg.springframework.integration.ip.tcp.connection.TcpListener- Overrides:
onMessagein classorg.springframework.integration.ip.tcp.connection.TcpConnectionInterceptorSupport
-