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) |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String s)
Returns the object bound with the specified name in this session, or null if no object is bound under the name.
|
Enumeration<String> |
getAttributeNames()
Returns an Enumeration of String objects containing the names of all the objects bound to this session.
|
String |
getId()
Returns a string containing the unique identifier assigned to this session.
|
void |
invalidate()
Invalidates this session and unbinds any objects bound to it.
|
void |
removeAttribute(String s)
Removes the object bound with the specified name from this session.
|
void |
setAttribute(String s,
Object o)
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-2015 Atlassian. All Rights Reserved.