| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| public static final String | |
| private final boolean | |
| private static final RuntimePermission | |
| private final ServletContext | |
| private final ServletRequestContext | |
| private final Session |
| Access | Constructor and Description |
|---|---|
| private | HttpSessionImpl(final Session session, final ServletContext servletContext, final boolean newSession, ServletRequestContext servletRequestContext)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public static HttpSessionImpl | |
| public Object | getAttribute(final String
a string specifying the name of the object name)Implements jakarta. Returns the object bound with the specified name in this session, or |
| public Enumeration | getAttributeNames()
Implements jakarta. Returns an |
| public long | getCreationTime()
Implements jakarta. Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT. |
| private Set | |
| public String | getId()
Implements jakarta. Returns a string containing the unique identifier assigned to this session. |
| public long | getLastAccessedTime()
Implements jakarta. 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. |
| public int | getMaxInactiveInterval()
Implements jakarta. Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses. |
| public ServletContext | getServletContext()
Implements jakarta. Returns the ServletContext to which this session belongs. |
| public Session | |
| public int | |
| public void | invalidate()
Implements jakarta. Invalidates this session then unbinds any objects bound to it. |
| public boolean | |
| public boolean | isNew()
Implements jakarta. Returns |
| public void | removeAttribute(final String
the name of the object to remove from this session name)Implements jakarta. Removes the object bound with the specified name from this session. |
| public void | setAttribute(final String
the name to which the object is bound; cannot be null name, final Object the object to be bound value)Implements jakarta. Binds an object to this session, using the name specified. |
| public void | setMaxInactiveInterval(final int
An integer specifying the number of seconds interval)Implements jakarta. Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. |
| invalid | back to summary |
|---|---|
| private volatile boolean invalid | |
| IO_UNDERTOW | back to summary |
|---|---|
| public static final String IO_UNDERTOW | |
| newSession | back to summary |
|---|---|
| private final boolean newSession | |
| PERMISSION | back to summary |
|---|---|
| private static final RuntimePermission PERMISSION | |
| servletContext | back to summary |
|---|---|
| private final ServletContext servletContext | |
| servletRequestContext | back to summary |
|---|---|
| private final ServletRequestContext servletRequestContext | |
| session | back to summary |
|---|---|
| private final Session session | |
| HttpSessionImpl | back to summary |
|---|---|
| private HttpSessionImpl(final Session session, final ServletContext servletContext, final boolean newSession, ServletRequestContext servletRequestContext) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| forSession | back to summary |
|---|---|
| public static HttpSessionImpl forSession(final Session session, final ServletContext servletContext, final boolean newSession) | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(final String name) Implements jakarta. Doc from jakarta. Returns the object bound with the specified name in this session, or | |
| getAttributeNames | back to summary |
|---|---|
| public Enumeration Implements jakarta. Doc from jakarta. Returns an
| |
| getCreationTime | back to summary |
|---|---|
| public long getCreationTime() Implements jakarta. Doc from jakarta. Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT.
| |
| getFilteredAttributeNames | back to summary |
|---|---|
| private Set | |
| getId | back to summary |
|---|---|
| public String getId() Implements jakarta. Doc from jakarta. Returns a string containing the unique identifier assigned to this session. The identifier is assigned by the servlet container and is implementation dependent. | |
| getLastAccessedTime | back to summary |
|---|---|
| public long getLastAccessedTime() Implements jakarta. Doc from jakarta. 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. Actions that your application takes, such as getting or setting a value associated with the session, do not affect the access time.
| |
| getMaxInactiveInterval | back to summary |
|---|---|
| public int getMaxInactiveInterval() Implements jakarta. Doc from jakarta. Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client
accesses. After this interval, the servlet container will invalidate the session. The maximum time interval can be
set with the A return value of zero or less indicates that the session will never timeout.
| |
| getServletContext | back to summary |
|---|---|
| public ServletContext getServletContext() Implements jakarta. Doc from jakarta. Returns the ServletContext to which this session belongs.
| |
| getSession | back to summary |
|---|---|
| public Session getSession() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| invalidate | back to summary |
|---|---|
| public void invalidate() Implements jakarta. Doc from jakarta. Invalidates this session then unbinds any objects bound to it.
| |
| isInvalid | back to summary |
|---|---|
| public boolean isInvalid() | |
| isNew | back to summary |
|---|---|
| public boolean isNew() Implements jakarta. Doc from jakarta. Returns
| |
| removeAttribute | back to summary |
|---|---|
| public void removeAttribute(final String name) Implements jakarta. Doc from jakarta. 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 | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(final String name, final Object value) Implements jakarta. Doc from jakarta. 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 new object implements
If an object was already bound to this session of this name that implements
If the value passed in is null, this has the same effect as calling | |
| setMaxInactiveInterval | back to summary |
|---|---|
| public void setMaxInactiveInterval(final int interval) Implements jakarta. Doc from jakarta. Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. An interval value of zero or less indicates that the session should never timeout.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpSessionImpl |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Session |
| session | back to summary |
|---|---|
| private final HttpSessionImpl session | |
| UnwrapSessionAction | back to summary |
|---|---|
| public UnwrapSessionAction(HttpSession session) | |
| run | back to summary |
|---|---|
| public Session run() Implements java. Doc from java. Performs the computation. This method will be called by
| |