public class AmbariSessionManager extends Object
Constructor and Description |
---|
AmbariSessionManager() |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name)
Get an attribute value from the current session.
|
String |
getCurrentSessionId()
Get the session id associated with the current thread-bound request.
|
protected javax.servlet.http.HttpSession |
getHttpSession()
Get the current session.
|
String |
getSessionCookie()
The session cookie id (i.e.
|
void |
removeAttribute(String name)
Remove the attribute identified by the given name from the current session.
|
void |
setAttribute(String name,
Object value)
Set an attribute value on the current session.
|
public String getCurrentSessionId()
public String getSessionCookie()
public void setAttribute(String name, Object value)
name
- the attribute namevalue
- the attribute valuepublic Object getAttribute(String name)
name
- the attribute namepublic void removeAttribute(String name)
name
- the attribute nameprotected javax.servlet.http.HttpSession getHttpSession()
Copyright © 2022 Apache Software Foundation. All rights reserved.