Package | Description |
---|---|
javax.servlet.http |
The javax.servlet.http package contains a number of classes and interfaces
that describe and define the contracts between a servlet class
running under the HTTP protocol and the runtime environment provided
for an instance of such a class by a conforming servlet container.
|
javax.servlet.jsp |
Classes and interfaces for the Core JSP 2.3 API.
|
javax.servlet.jsp.jstl.core |
Classes and interfaces related to the core tag library component of the JavaServer Pages Standard Tag Library (JSTL).
|
javax.xml.rpc.server |
This package defines APIs for the servlet based JAX-RPC endpoint model.
|
Modifier and Type | Method and Description |
---|---|
HttpSession |
HttpSessionEvent.getSession()
Return the session that changed.
|
HttpSession |
HttpSessionBindingEvent.getSession()
Return the session that changed.
|
HttpSession |
HttpServletRequestWrapper.getSession()
The default behavior of this method is to return getSession()
on the wrapped request object.
|
HttpSession |
HttpServletRequest.getSession()
Returns the current session associated with this request,
or if the request does not have a session, creates one.
|
HttpSession |
HttpServletRequestWrapper.getSession(boolean create)
The default behavior of this method is to return getSession(boolean create)
on the wrapped request object.
|
HttpSession |
HttpServletRequest.getSession(boolean create)
Returns the current
HttpSession
associated with this request or, if there is no
current session and create is true, returns
a new session. |
HttpSession |
HttpSessionContext.getSession(String sessionId)
Deprecated.
As of Java Servlet API 2.1 with
no replacement. This method must
return null and will be removed in
a future version of this API.
|
Constructor and Description |
---|
HttpSessionBindingEvent(HttpSession session,
String name)
Constructs an event that notifies an object that it
has been bound to or unbound from a session.
|
HttpSessionBindingEvent(HttpSession session,
String name,
Object value)
Constructs an event that notifies an object that it
has been bound to or unbound from a session.
|
HttpSessionEvent(HttpSession source)
Construct a session event from the given source.
|
Modifier and Type | Method and Description |
---|---|
abstract HttpSession |
PageContext.getSession()
The current value of the session object (an HttpSession).
|
Modifier and Type | Method and Description |
---|---|
static Object |
Config.get(HttpSession session,
String name)
Looks up a configuration variable in the "session" scope.
|
static void |
Config.remove(HttpSession session,
String name)
Removes a configuration variable from the "session" scope.
|
static void |
Config.set(HttpSession session,
String name,
Object value)
Sets the value of a configuration variable in the "session" scope.
|
Modifier and Type | Method and Description |
---|---|
HttpSession |
ServletEndpointContext.getHttpSession()
The
getHttpSession method returns the current
HTTP session (as a javax.servlet.http.HTTPSession ). |
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.