org.mortbay.j2ee.session
Interface State

All Known Implementing Classes:
AroundInterceptor, LocalState, StateInterceptor, ValidatingInterceptor

public interface State

Implemented by objects wishing to be used to store the state from an HttpSession.

Version:
1.0
Author:
Jules Gosnell

Method Summary
 int getActualMaxInactiveInterval()
           
 Object getAttribute(String name)
           
 Enumeration getAttributeNameEnumeration()
           
 String[] getAttributeNameStringArray()
           
 Map getAttributes()
           
 long getCreationTime()
           
 String getId()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 boolean isValid()
           
 Object removeAttribute(String name, boolean returnValue)
           
 Object setAttribute(String name, Object value, boolean returnValue)
           
 void setAttributes(Map attributes)
           
 void setLastAccessedTime(long time)
           
 void setMaxInactiveInterval(int interval)
           
 

Method Detail

getId

String getId()
             throws RemoteException
Throws:
RemoteException

getActualMaxInactiveInterval

int getActualMaxInactiveInterval()
                                 throws RemoteException
Throws:
RemoteException

getCreationTime

long getCreationTime()
                     throws RemoteException
Throws:
RemoteException

getAttributes

Map getAttributes()
                  throws RemoteException
Throws:
RemoteException

setAttributes

void setAttributes(Map attributes)
                   throws RemoteException
Throws:
RemoteException

getLastAccessedTime

long getLastAccessedTime()
                         throws RemoteException
Throws:
RemoteException

setLastAccessedTime

void setLastAccessedTime(long time)
                         throws RemoteException
Throws:
RemoteException

getMaxInactiveInterval

int getMaxInactiveInterval()
                           throws RemoteException
Throws:
RemoteException

setMaxInactiveInterval

void setMaxInactiveInterval(int interval)
                            throws RemoteException
Throws:
RemoteException

getAttribute

Object getAttribute(String name)
                    throws RemoteException
Throws:
RemoteException

setAttribute

Object setAttribute(String name,
                    Object value,
                    boolean returnValue)
                    throws RemoteException
Throws:
RemoteException

removeAttribute

Object removeAttribute(String name,
                       boolean returnValue)
                       throws RemoteException
Throws:
RemoteException

getAttributeNameEnumeration

Enumeration getAttributeNameEnumeration()
                                        throws RemoteException
Throws:
RemoteException

getAttributeNameStringArray

String[] getAttributeNameStringArray()
                                     throws RemoteException
Throws:
RemoteException

isValid

boolean isValid()
                throws RemoteException
Throws:
RemoteException


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.