org.talika.tarsis.filters.validator
Class HistorySession

java.lang.Object
  extended by org.talika.tarsis.filters.validator.HistorySession
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.servlet.http.HttpSessionBindingListener

public final class HistorySession
extends java.lang.Object
implements javax.servlet.http.HttpSessionBindingListener, java.io.Serializable

Object used to store request history.
Part of experimental extended validator filter. Work in progress.

Version:
$Revision: 132 $
Author:
Jose M. Palomar
See Also:
Serialized Form

Constructor Summary
HistorySession(int historySize)
          Creates a new HistorySession.
 
Method Summary
 void add(HistoricRequest request)
          Adds a request to requests history.
 HistoricRequest find(java.lang.String ticket)
          Finds a historic request in history.
 void valueBound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
          Notifies the object that it is being bound to a session and identifies the session.
 void valueUnbound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
          Notifies the object that it is being unbound from a session and identifies the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistorySession

public HistorySession(int historySize)
Creates a new HistorySession.

Parameters:
historySize - int history size.
Method Detail

add

public void add(HistoricRequest request)
Adds a request to requests history.

Parameters:
request - HistoricRequest historic request.

find

public HistoricRequest find(java.lang.String ticket)
Finds a historic request in history.

Parameters:
ticket - String request's ticket.
Returns:
HistoricRequest found historic request or null.

valueBound

public void valueBound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
Notifies the object that it is being bound to a session and identifies the session. This method do nothing.

Specified by:
valueBound in interface javax.servlet.http.HttpSessionBindingListener
Parameters:
httpSessionBindingEvent - HttpSessionBindingEvent the event that identifies the session.
See Also:
HttpSessionBindingListener.valueBound(HttpSessionBindingEvent)

valueUnbound

public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
Notifies the object that it is being unbound from a session and identifies the session.

Specified by:
valueUnbound in interface javax.servlet.http.HttpSessionBindingListener
Parameters:
httpSessionBindingEvent - HttpSessionBindingEvent the event that identifies the session.
See Also:
HttpSessionBindingListener.valueUnbound(HttpSessionBindingEvent)


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.