public final class SessionRepositoryMessageInterceptor<S extends org.springframework.session.ExpiringSession>
extends org.springframework.messaging.support.ChannelInterceptorAdapter
Acts as a ChannelInterceptor to ensure the
ExpiringSession.getLastAccessedTime() is up to date.
| Constructor and Description |
|---|
SessionRepositoryMessageInterceptor(org.springframework.session.SessionRepository<S> sessionRepository)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.messaging.Message<?> |
preSend(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel) |
public SessionRepositoryMessageInterceptor(org.springframework.session.SessionRepository<S> sessionRepository)
sessionRepository - the SessionRepository to use. Cannot be null.public org.springframework.messaging.Message<?> preSend(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel)
preSend in interface org.springframework.messaging.support.ChannelInterceptorpreSend in class org.springframework.messaging.support.ChannelInterceptorAdapterCopyright © 2015. All rights reserved.