HttpSession
is not supported. Please move the functionality to the frontend or other type of storage. This class will be removed in 8.0.@Deprecated public class HttpSessionBackedVelocityRequestSession extends Object implements VelocityRequestSession
HttpSession
All methods are a direct call through to the underlying HttpSession.
This will only create the request if necessary.Constructor and Description |
---|
HttpSessionBackedVelocityRequestSession(javax.servlet.http.HttpServletRequest request)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String s)
Deprecated.
Returns the object bound with the specified name in this session, or null if no object is bound under the name.
|
Enumeration<String> |
getAttributeNames()
Deprecated.
Returns an Enumeration of String objects containing the names of all the objects bound to this session.
|
String |
getId()
Deprecated.
Returns a string containing the unique identifier assigned to this session.
|
void |
invalidate()
Deprecated.
Invalidates this session and unbinds any objects bound to it.
|
void |
removeAttribute(String s)
Deprecated.
Removes the object bound with the specified name from this session.
|
void |
setAttribute(String s,
Object o)
Deprecated.
Binds an object to this session, using the name specified.
|
public HttpSessionBackedVelocityRequestSession(javax.servlet.http.HttpServletRequest request)
public String getId()
VelocityRequestSession
getId
in interface VelocityRequestSession
public Object getAttribute(String s)
VelocityRequestSession
getAttribute
in interface VelocityRequestSession
s
- a string specifying the name of the objectpublic Enumeration<String> getAttributeNames()
VelocityRequestSession
getAttributeNames
in interface VelocityRequestSession
public void setAttribute(String s, Object o)
VelocityRequestSession
setAttribute
in interface VelocityRequestSession
s
- the name to which the object is bound; cannot be nullo
- the object to be bound; cannot be nullpublic void removeAttribute(String s)
VelocityRequestSession
removeAttribute
in interface VelocityRequestSession
s
- the name of the object to remove from this sessionpublic void invalidate()
VelocityRequestSession
invalidate
in interface VelocityRequestSession
Copyright © 2002-2019 Atlassian. All Rights Reserved.