org.marketcetera.util.ws.tags
Class ValidSessionTagFilter<T>

java.lang.Object
  extended by 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 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Constructor Summary
ValidSessionTagFilter(SessionManager<T> sessionManager)
          Creates a new filter which uses the given (optional) session manager for session ID mappings.
 
Method Summary
 void assertMatch(Tag tag)
          Asserts that the given tag is acceptable to the receiver.
 SessionManager<T> getSessionManager()
          Returns the receiver's session manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 tag)
                 throws I18NException
Description copied from interface: TagFilter
Asserts that the given tag is acceptable to the receiver.

Specified by:
assertMatch in interface TagFilter
Throws:
I18NException - Thrown if the tag is not acceptable.


Copyright © 2012. All Rights Reserved.