public class XPFHttpSession extends Object
| Constructor and Description |
|---|
XPFHttpSession(@NonNull Map<String,Object> attributes,
long creationTime,
String id,
long lastAccessedTime) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
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. |
Enumeration<String> |
getAttributeNames()
Returns an
Enumeration of String objects
containing the names of all the objects bound to this session. |
@NonNull Map<String,Object> |
getAttributes()
Returns a map of attributes associated with this request.
|
long |
getCreationTime()
Returns the time when this session was created, measured
in milliseconds since midnight January 1, 1970 GMT.
|
String |
getId()
Returns a string containing the unique identifier assigned
to this session.
|
long |
getLastAccessedTime()
Returns the last time the client sent a request associated with
this session, as the number of milliseconds since midnight
January 1, 1970 GMT, and marked by the time the container received the
request.
|
int |
hashCode() |
String |
toString() |
public Object getAttribute(String name)
null if no object is bound under the name.name - a string specifying the name of the objectIllegalStateException - if this method is called on an
invalidated sessionpublic Enumeration<String> getAttributeNames()
Enumeration of String objects
containing the names of all the objects bound to this session.Enumeration of
String objects specifying the
names of all the objects bound to
this sessionIllegalStateException - if this method is called on an
invalidated sessionprotected boolean canEqual(Object other)
@NonNull public @NonNull Map<String,Object> getAttributes()
public long getCreationTime()
long specifying
when this session was created,
expressed in
milliseconds since 1/1/1970 GMTIllegalStateException - if this method is called on an
invalidated sessionpublic String getId()
public long getLastAccessedTime()
Actions that your application takes, such as getting or setting a value associated with the session, do not affect the access time.
long
representing the last time
the client sent a request associated
with this session, expressed in
milliseconds since 1/1/1970 GMTIllegalStateException - if this method is called on an
invalidated sessionCopyright © 2025. All rights reserved.