| java.lang.Object com.rimfaxe.webserver.servletapi.RimfaxeHttpSession
Method Summary | |
public Object | getAttribute(String name) Returns the object bound with the specified name in this session, or
null if no object is bound under the name. | public Enumeration | getAttributeNames() Returns an Enumeration of String objects
containing the names of all the objects bound to this session. | protected Cookie | getCookie() | public long | getCreationTime() Returns the time at which this session representation was created,
in milliseconds since midnight, January 1, 1970 UTC. | public String | getId() Returns the identifier assigned to this session. | public long | getLastAccessedTime() Returns the last time the client sent a request carrying the identifier
assigned to the session. | public int | getMaxInactiveInterval() | public javax.servlet.ServletContext | getServletContext() | public HttpSessionContext | getSessionContext() Returns the context in which this session is bound. | public Object | getValue(String name) Returns the object bound to the given name in the session's application
layer data. | public String[] | getValueNames() Returns an array of the names of all the application layer data objects
bound into the session. | public boolean | hasExpired() | public void | invalidate() Causes this representation of the session to be invalidated and removed
from its context. | public 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. | protected boolean | isValid() | public void | putValue(String name, Object value) Binds the specified object into the session's application layer data
with the given name. | public void | removeAttribute(String name) Removes the object bound with the specified name from
this session. | public void | removeValue(String name) Removes the object bound to the given name in the session's application
layer data. | public void | setAttribute(String name, Object value) Binds an object to this session, using the name specified. | public void | setID(String id) | public void | setLastAccessedTime() | public void | setMaxInactiveInterval(int interval) | protected void | setNoMoreNew() | protected void | valueBound(HttpSessionBindingListener value, String name) | protected void | valueUnbound(HttpSessionBindingListener value, String name) |
getAttribute | public Object getAttribute(String name)(Code) | | Returns the object bound with the specified name in this session, or
null if no object is bound under the name.
Parameters: name - a string specifying the name of the object the object with the specified name |
getAttributeNames | public Enumeration getAttributeNames()(Code) | | Returns an Enumeration of String objects
containing the names of all the objects bound to this session.
an Enumeration of String objects specifying the names of all the objects bound to this session |
getCreationTime | public long getCreationTime()(Code) | | Returns the time at which this session representation was created,
in milliseconds since midnight, January 1, 1970 UTC.
the time when the session was created |
getId | public String getId()(Code) | | Returns the identifier assigned to this session. An HttpSession's
identifier is a unique string that is created and maintained by
HttpSessionContext.
the identifier assigned to this session |
getLastAccessedTime | public long getLastAccessedTime()(Code) | | Returns the last time the client sent a request carrying the identifier
assigned to the session. Time is expressed as milliseconds
since midnight, January 1, 1970 UTC. Application level operations,
such as getting or setting a value associated with the session,
does not affect the access time.
the last time the client sent a request carrying the identifierassigned to the session. |
getMaxInactiveInterval | public int getMaxInactiveInterval()(Code) | | |
getSessionContext | public HttpSessionContext getSessionContext()(Code) | | Returns the context in which this session is bound.
the context in which this session is bound. |
getValue | public Object getValue(String name)(Code) | | Returns the object bound to the given name in the session's application
layer data. Returns null if there is no such binding.
Parameters: name - - the name of the binding to find the value bound to that name, or null if the binding does not exist. |
getValueNames | public String[] getValueNames()(Code) | | Returns an array of the names of all the application layer data objects
bound into the session. For example, if you want to delete
all of the data objects bound into the session, use this method to
obtain their names.
an array containing the names of all of the application layerdata objects bound into the session |
hasExpired | public boolean hasExpired()(Code) | | |
invalidate | public void invalidate()(Code) | | Causes this representation of the session to be invalidated and removed
from its context.
|
isNew | public boolean isNew()(Code) | | 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. For example, if the server supported only cookie-based
sessions and the client had completely disabled the use of
cookies, then calls to HttpServletRequest.getSession() would always
return "new" sessions.
true if the session has been created by the server but the client has not yet acknowledged joining the session; false otherwise |
isValid | protected boolean isValid()(Code) | | |
putValue | public void putValue(String name, Object value)(Code) | | Binds the specified object into the session's application layer data
with the given name. Any existing binding with the same name
is replaced. New (or existing) values that implement the
HttpSessionBindingListener interface will call its valueBound() method.
Parameters: name - - the name to which the data object will be bound. This parameter cannot be null. Parameters: value - - the data object to be bound. This parameter cannot be null. |
removeAttribute | public void removeAttribute(String name)(Code) | | Removes the object bound with the specified name from
this session. If the session does not have an object
bound with the specified name, this method does nothing.
After this method executes, and if the object
implements HttpSessionBindingListener ,
the container calls
HttpSessionBindingListener.valueUnbound .
Parameters: name - the name of the object to remove from this session |
removeValue | public void removeValue(String name)(Code) | | Removes the object bound to the given name in the session's application
layer data. Does nothing if there is no object bound to the
given name. The value that implements the HttpSessionBindingListener
interface will call its valueUnbound() method.
Parameters: name - - the name of the object to remove |
setAttribute | public void setAttribute(String name, Object value)(Code) | | Binds an object to this session, using the name specified.
If an object of the same name is already bound to the session,
the object is replaced.
After this method executes, and if the object
implements HttpSessionBindingListener ,
the container calls
HttpSessionBindingListener.valueBound .
Parameters: name - the name to which the object is bound; cannot be null Parameters: value - the object to be bound; cannot be null |
setLastAccessedTime | public void setLastAccessedTime()(Code) | | |
setMaxInactiveInterval | public void setMaxInactiveInterval(int interval)(Code) | | |
setNoMoreNew | protected void setNoMoreNew()(Code) | | |
|
|