|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.client.ApplicationSession
public final class ApplicationSession
Provides a way to identify a user across more than one page request
Constructor Summary | |
---|---|
ApplicationSession()
|
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the object bound with the specified name in this session, or null if no object is bound under the name. |
java.util.Enumeration<java.lang.String> |
getAttributeNames()
Returns an Enumeration of String objects containing the names of all the objects bound to this session. |
long |
getCreationTime()
Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT |
java.lang.String |
getId()
Returns empty string |
long |
getLastAccessedTime()
Returns the creation time |
int |
getMaxInactiveInterval()
Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses |
javax.servlet.ServletContext |
getServletContext()
Returns null |
javax.servlet.http.HttpSessionContext |
getSessionContext()
Returns null |
java.lang.Object |
getValue(java.lang.String name)
Deprecated. |
java.lang.String[] |
getValueNames()
Deprecated. |
void |
invalidate()
Invalidates this session |
boolean |
isNew()
Returns false |
void |
putValue(java.lang.String name,
java.lang.Object value)
Deprecated. |
void |
removeAttribute(java.lang.String name)
Removes the object bound with the specified name from this session. |
void |
removeValue(java.lang.String name)
Deprecated. |
void |
setAttribute(java.lang.String name,
java.lang.Object object)
Binds an object to this session, using the name specified. |
void |
setMaxInactiveInterval(int interval)
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 |
Constructor Detail |
---|
public ApplicationSession()
Method Detail |
---|
public void invalidate()
invalidate
in interface javax.servlet.http.HttpSession
public boolean isNew()
isNew
in interface javax.servlet.http.HttpSession
public void setAttribute(java.lang.String name, java.lang.Object object)
setAttribute
in interface javax.servlet.http.HttpSession
name
- the name to which the object is bound; cannot be nullobject
- the object to be boundpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval
in interface javax.servlet.http.HttpSession
@Deprecated public void putValue(java.lang.String name, java.lang.Object value)
putValue
in interface javax.servlet.http.HttpSession
public void removeAttribute(java.lang.String name)
removeAttribute
in interface javax.servlet.http.HttpSession
name
- the name to which the object is bound@Deprecated public void removeValue(java.lang.String name)
removeValue
in interface javax.servlet.http.HttpSession
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface javax.servlet.http.HttpSession
name
- - a string specifying the name of the objectpublic java.util.Enumeration<java.lang.String> getAttributeNames()
getAttributeNames
in interface javax.servlet.http.HttpSession
public long getCreationTime()
getCreationTime
in interface javax.servlet.http.HttpSession
public java.lang.String getId()
getId
in interface javax.servlet.http.HttpSession
public long getLastAccessedTime()
getLastAccessedTime
in interface javax.servlet.http.HttpSession
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface javax.servlet.http.HttpSession
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.http.HttpSession
public javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext
in interface javax.servlet.http.HttpSession
@Deprecated public java.lang.Object getValue(java.lang.String name)
getValue
in interface javax.servlet.http.HttpSession
@Deprecated public java.lang.String[] getValueNames()
getValueNames
in interface javax.servlet.http.HttpSession
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |