|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Deprecated. In releases following 3.6 customization will be declarative.
public interface HttpSessionModel
This is the abstract model for HttpSession implementations that support clustering.
The model contains the following properties:
This interface is intended to be a logical terminal.
Method Summary | |
---|---|
Object |
getAttribute(String sName) Deprecated. Returns the object bound with the specified name in this session, or null if no object is bound under the name. |
String[] |
getAttributeNameArray() Deprecated. Returns an array of attribute names for this session. |
long |
getCreationTime() Deprecated. Returns the creation time for this session. |
String |
getId() Deprecated. Returns the session identifier for this session. |
long |
getLastAccessedTime() Deprecated. Returns the last time the client sent a request associated with this session, as the number of milliseconds since midnight, January 1, 1970 GMT. |
int |
getMaxInactiveInterval() Deprecated. Returns the maximum time interval, in seconds, between client requests before the servlet container will invalidate the session. |
boolean |
isExpired() Deprecated. A helper method to determine if the session data has expired. |
boolean |
isNew() Deprecated. Returns true if the client does not yet know about the session or if the client chooses not to join the session. |
boolean |
isUsable() Deprecated. Determine if this session model is a usable object. |
boolean |
isValid() Deprecated. Determine if this session model is valid. |
void |
removeAttribute(String sName) Deprecated. Removes the object bound with the specified name from this session. |
void |
sessionReturned() Deprecated. Indicates to the session that it is no longer new, because the session ID has been returned to the client to allow the client to accept it, as described in the Servlet specification. |
void |
setAttribute(String sName, Object oValue) Deprecated. Binds an object to this session, using the name specified. |
void |
setMaxInactiveInterval(int cSeconds) Deprecated. Set the maximum time interval, in seconds, between client requests before the servlet container will invalidate the session. |
void |
touch() Deprecated. Update the last-accessed time for the session. |
Method Detail |
---|
Object getAttribute(String sName)
null
if no object is bound under the name.sName
- a string specifying the name of the objectIllegalStateException
- if this method is called on an invalidated sessionString[] getAttributeNameArray()
String
objects specifying the names of all the objects bound to this sessionIllegalStateException
- if this method is called on an invalidated sessionlong getCreationTime()
String getId()
long getLastAccessedTime()
int getMaxInactiveInterval()
boolean isExpired()
boolean isNew()
true
if the client does not yet know about the session or if the client chooses not to join the session. For example, if the server used only cookie-based sessions, and the client had disabled the use of cookies, then a session would be new on each request.true
if the server has created a session, but the client has not yet joinedIllegalStateException
- if this method is called on an already invalidated sessionboolean isUsable()
When a session model becomes unusable, the only method that can be assumed to respond without throwing an exception is getId()
.
boolean isValid()
true
if the session has not been destroyed, otherwise false
void removeAttribute(String sName)
sName
- the name of the object to remove from this sessionIllegalStateException
- if this method is called on an invalidated sessionvoid sessionReturned()
void setAttribute(String sName, Object oValue)
sName
- the name to which the object is bound; cannot be nulloValue
- the object to be bound; cannot be nullIllegalStateException
- if this method is called on an invalidated sessionvoid setMaxInactiveInterval(int cSeconds)
cSeconds
- the new maximum intervalvoid touch()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |