net.trajano.twiff.internal.token.entity
Class SessionToken

java.lang.Object
  extended by net.trajano.twiff.internal.token.entity.SessionToken
All Implemented Interfaces:
Serializable

public class SessionToken
extends Object
implements Serializable

This is an entity that stores the session token data.

Author:
Archimedes Trajano
See Also:
Serialized Form

Constructor Summary
SessionToken()
           
 
Method Summary
 long getId()
           
 Serializable getPageBean()
          This returns the page bean data as a serializable object.
 URL getRedirectUrl()
           
 int getRequestCount()
          Returns the number of times the data was requested.
 String getSessionId()
           
 String getTokenId()
           
 boolean isValid()
           
 void setPageBean(Serializable pageBean)
           
 void setRedirectUrl(URL redirectUrl)
           
 void setSessionId(String sessionId)
          Sets the session Id for the SessionToken.
 void setTokenId(String tokenId)
          Sets the token Id for the SessionToken.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionToken

public SessionToken()
Method Detail

getId

public final long getId()
Returns:
the unique id.

getPageBean

public final Serializable getPageBean()
This returns the page bean data as a serializable object. It also increments the request counter.

Returns:
the pageBean.

getRedirectUrl

public final URL getRedirectUrl()
Returns:
Returns the redirectUrl.

getSessionId

public final String getSessionId()
Returns:
Returns the sessionId.

getTokenId

public final String getTokenId()
Returns:
Returns the tokenId.

isValid

public final boolean isValid()
Returns:
Returns the valid.

setPageBean

public final void setPageBean(Serializable pageBean)
Parameters:
pageBean - The pageBean to set.

setRedirectUrl

public final void setRedirectUrl(URL redirectUrl)
Parameters:
redirectUrl - The redirectUrl to set.

setSessionId

public final void setSessionId(String sessionId)
Sets the session Id for the SessionToken.

Parameters:
sessionId - The sessionId to set.

setTokenId

public final void setTokenId(String tokenId)
Sets the token Id for the SessionToken.

Parameters:
tokenId - The tokenId to set.

getRequestCount

public final int getRequestCount()
Returns the number of times the data was requested.

Returns:
number of times the data was requested.


Copyright © 2004-2005 trajano.net. All Rights Reserved.