Package org.marketcetera.util.ws.tags
Class ValidSessionTagFilter<T>
- java.lang.Object
-
- org.marketcetera.util.ws.tags.ValidSessionTagFilter<T>
-
- All Implemented Interfaces:
TagFilter
public class ValidSessionTagFilter<T> extends Object implements TagFilter
A session ID filter that accepts any ID which maps to an active session. If the session is active, the very filter check renews the session's expiration counter.- Since:
- 1.0.0
- Version:
- $Id: ValidSessionTagFilter.java 17411 2017-04-28 14:50:38Z colin $
- Author:
- tlerios@marketcetera.com
-
-
Field Summary
Fields Modifier and Type Field Description private SessionManager<T>mSessionManager
-
Constructor Summary
Constructors Constructor Description ValidSessionTagFilter(SessionManager<T> sessionManager)Creates a new filter which uses the given (optional) session manager for session ID mappings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertMatch(Tag inTag)Asserts that the given tag is acceptable to the receiver.SessionManager<T>getSessionManager()Returns the receiver's session manager.
-
-
-
Field Detail
-
mSessionManager
private final SessionManager<T> mSessionManager
-
-
Constructor Detail
-
ValidSessionTagFilter
public ValidSessionTagFilter(SessionManager<T> sessionManager)
Creates a new filter which uses the given (optional) session manager for session ID mappings.- Parameters:
sessionManager- The session manager. It may be null, in which case the filter accepts all tags.
-
-
Method Detail
-
getSessionManager
public SessionManager<T> getSessionManager()
Returns the receiver's session manager.- Returns:
- The session manager, which may be null
-
assertMatch
public void assertMatch(Tag inTag) throws I18NException
Description copied from interface:TagFilterAsserts that the given tag is acceptable to the receiver.- Specified by:
assertMatchin interfaceTagFilter- Throws:
I18NException- Thrown if the tag is not acceptable.
-
-