|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.velocity.HttpSessionBackedVelocityRequestSession
public class HttpSessionBackedVelocityRequestSession
An implementation of the VelocityRequestSession that is backed by a HttpSession
All methods are a direct call through to the underlying HttpSession.
This will only create the request if necessary.
Constructor Summary | |
---|---|
HttpSessionBackedVelocityRequestSession(javax.servlet.http.HttpServletRequest request)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpSessionBackedVelocityRequestSession(javax.servlet.http.HttpServletRequest request)
Method Detail |
---|
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 object
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |