org.talika.tarsis.filters.security
Class LoginSession

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

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

Object used to store login data during login process.

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

Constructor Summary
LoginSession(javax.servlet.http.HttpServletRequest request)
          Creates a new LoginSession.
 
Method Summary
 java.util.Map getAttributes()
          Returns original client's request attributes.
 java.util.Map getParameters()
          Returns original client's request parameters.
 int getTries()
          Return number of login tries.
 void incTries()
          Increments number of login tries.
 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

LoginSession

public LoginSession(javax.servlet.http.HttpServletRequest request)
Creates a new LoginSession. It saves attributes and parameters from original request to resume it later.

Parameters:
request - HttpServletRequest original request.
Method Detail

getParameters

public java.util.Map getParameters()
Returns original client's request parameters.

Returns:
Map original request parameters.

getAttributes

public java.util.Map getAttributes()
Returns original client's request attributes.

Returns:
Map original request attributes.

incTries

public void incTries()
Increments number of login tries.


getTries

public int getTries()
Return number of login tries.

Returns:
int number of login tries.

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.