|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.j_spaces.core.client.MetaDataEntry com.j_spaces.www.DSession
public class DSession
An adapter class that used to store
HttpSession attributes in IMap
.
Example: To prepare HttpSession to be stored inIMap
:DSession dsession = new DSession(session);
To apply stored HttpSession attributed to another HttpSession object:session = dsession.toHttpSession(session);
Constructor Summary | |
---|---|
DSession(HttpSession session)
Creates DSession instance from supplied HttpSession object. |
|
DSession(HttpSession session,
Long creationTime)
Creates DSession instance from supplied HttpSession object. |
Method Summary | |
---|---|
long |
getCreationTime()
Returns HttpSession.getCreationTime(). |
String |
getId()
Returns HttpSession.getId(). |
long |
getLastAccessedTime()
Returns HttpSession.getLastAccessedTime(). |
int |
getMaxInactiveInterval()
Returns HttpSession.getMaxInactiveInterval(). |
Object |
getValue(String name)
Returns the value of the source HttpSession attribute. |
String[] |
getValueNames()
Returns the array of names of the source HttpSession attributes. |
void |
putValue(String name,
Object value)
Puts a new attribute into DSession instance. |
Object |
removeValue(String name)
Removes attribute from DSession instance. |
HttpSession |
toHttpSession(HttpSession session)
Attaches stored HttpSession attributed to another HttpSession instance. |
Methods inherited from class com.j_spaces.core.client.MetaDataEntry |
---|
__getEntryInfo, __setEntryInfo, isFifo, isNOWriteLeaseMode, isTransient, makePersistent, makeTransient, setFifo, setNOWriteLeaseMode |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DSession(HttpSession session)
DSession
instance from supplied HttpSession object.
session
- the session to savepublic DSession(HttpSession session, Long creationTime)
DSession
instance from supplied HttpSession object.
session
- the session to savecreationTime
- the session creation timeMethod Detail |
---|
public long getCreationTime()
public String getId()
public long getLastAccessedTime()
public int getMaxInactiveInterval()
public Object getValue(String name)
name
- the source name
public String[] getValueNames()
public void putValue(String name, Object value)
DSession
instance.
name
- source namevalue
- source valuepublic Object removeValue(String name)
DSession
instance.
name
- source name
public HttpSession toHttpSession(HttpSession session)
session
- the source session
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |