Top Description Methods
org.glassfish.grizzly.http.server

public Interface SessionManager

Known Direct Implementers
org.glassfish.grizzly.http.server.DefaultSessionManager
Imports
org.glassfish.grizzly.http.Cookie

HTTP session manager abstraction responsible for keeping track of HTTP session associated with a user Request.
Since
2.3.17

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the old session id
changeSessionId
(final Request request, final Session session)

Change the Session id and return the original id.

public void
configureSessionCookie(final Request request, final Cookie cookie)

Configure session cookie before adding it to the Request#getResponse().

public Session

Returns:

a new Session associated with the Request
createSession
(final Request request)

Create a new Session associated with the Request.

public Session

Returns:

Session
getSession
(final Request request, final String
the session id associated with the Request
requestedSessionId
)

Return the session associated with this Request, creating one if necessary and requested.

public String
getSessionCookieName()

Returns: the session cookie name

public void
setSessionCookieName(final String
the session cookie name
name
)

Set the session cookie name that will be used by sessions created by this SessionManager.

Method Detail

changeSessionIdback to summary
public String changeSessionId(final Request request, final Session session)

Change the Session id and return the original id.

Parameters
request:Request

Request

session:Session

Session

Returns:String

the old session id

configureSessionCookieback to summary
public void configureSessionCookie(final Request request, final Cookie cookie)

Configure session cookie before adding it to the Request#getResponse().

createSessionback to summary
public Session createSession(final Request request)

Create a new Session associated with the Request.

Parameters
request:Request

Request

Returns:Session

a new Session associated with the Request

getSessionback to summary
public Session getSession(final Request request, final String requestedSessionId)

Return the session associated with this Request, creating one if necessary and requested.

Parameters
request:Request

Request

requestedSessionId:String

the session id associated with the Request

Returns:Session

Session

getSessionCookieNameback to summary
public String getSessionCookieName()
Returns:String

the session cookie name

Since
2.3.29
setSessionCookieNameback to summary
public void setSessionCookieName(final String name)

Set the session cookie name that will be used by sessions created by this SessionManager.

Parameters
name:String

the session cookie name

Since
2.3.29