|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectphp.java.bridge.Session
public class Session
Method Summary | |
---|---|
void |
destroy()
Causes this representation of the session to be invalidated an removed from its context. |
java.lang.Object |
get(java.lang.Object ob)
Returns the object bound to the given name in the session's application layer data. |
java.util.Map |
getAll()
Returns a map of all bindings maintained by this session. |
int |
getSessionCount()
Returns the number of active sessions. |
int |
getTimeout()
Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses. |
void |
invalidate()
|
boolean |
isNew()
A session is considered to be "new" if it has been created by the server, but the client has not yet acknowledged joining the session. |
void |
put(java.lang.Object ob1,
java.lang.Object ob2)
Binds the specified object into the session's application layer data with the given name. |
void |
putAll(java.util.Map vars)
Copies all bindings to the session's application layer data. |
java.lang.Object |
remove(java.lang.Object ob)
Removes the object bound to the given name in the session's application layer data. |
void |
setTimeout(int timeout)
Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object get(java.lang.Object ob)
ISession
get
in interface ISession
public void put(java.lang.Object ob1, java.lang.Object ob2)
ISession
put
in interface ISession
public java.lang.Object remove(java.lang.Object ob)
ISession
remove
in interface ISession
public void setTimeout(int timeout)
ISession
setTimeout
in interface ISession
public int getTimeout()
ISession
setTimeout
method. A negative time
indicates the session should never timeout.
getTimeout
in interface ISession
ISession.setTimeout(int)
public int getSessionCount()
ISession
getSessionCount
in interface ISession
public boolean isNew()
ISession
isNew
in interface ISession
public void destroy()
ISession
destroy
in interface ISession
public void invalidate()
public void putAll(java.util.Map vars)
ISession
putAll
in interface ISession
vars
- the map
parameter cannot be null.public java.util.Map getAll()
ISession
getAll
in interface ISession
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |