public class XPFHttpSession extends XPFEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
XPFHttpSession.XPFHttpSessionBuilder<C extends XPFHttpSession,B extends XPFHttpSession.XPFHttpSessionBuilder<C,B>> |
XPFEntity.XPFEntityBuilder<C extends XPFEntity,B extends XPFEntity.XPFEntityBuilder<C,B>>| Modifier | Constructor and Description |
|---|---|
|
XPFHttpSession(@NonNull Map<String,Object> attributes,
long creationTime,
String id,
long lastAccessedTime) |
protected |
XPFHttpSession(XPFHttpSession.XPFHttpSessionBuilder<?,?> b) |
| Modifier and Type | Method and Description |
|---|---|
static XPFHttpSession.XPFHttpSessionBuilder<?,?> |
builder() |
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() |
getCustomData, getCustomDataValueprotected XPFHttpSession(XPFHttpSession.XPFHttpSessionBuilder<?,?> b)
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 sessionpublic static XPFHttpSession.XPFHttpSessionBuilder<?,?> builder()
@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 © 2026. All rights reserved.