Package com.atlassian.jira.util.velocity
Class HttpSessionBackedVelocityRequestSession
java.lang.Object
com.atlassian.jira.util.velocity.HttpSessionBackedVelocityRequestSession
- All Implemented Interfaces:
VelocityRequestSession
@Deprecated
public class HttpSessionBackedVelocityRequestSession
extends Object
implements VelocityRequestSession
Deprecated.
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.- Since:
- v4.0
-
Constructor Summary
ConstructorsConstructorDescriptionHttpSessionBackedVelocityRequestSession(jakarta.servlet.http.HttpServletRequest request) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the object bound with the specified name in this session, or null if no object is bound under the name.Deprecated.Returns an Enumeration of String objects containing the names of all the objects bound to this session.getId()Deprecated.Returns a string containing the unique identifier assigned to this session.voidDeprecated.Invalidates this session and unbinds any objects bound to it.voidDeprecated.Removes the object bound with the specified name from this session.voidsetAttribute(String s, Object o) Deprecated.Binds an object to this session, using the name specified.
-
Constructor Details
-
HttpSessionBackedVelocityRequestSession
public HttpSessionBackedVelocityRequestSession(jakarta.servlet.http.HttpServletRequest request) Deprecated.
-
-
Method Details
-
getId
Deprecated.Description copied from interface:VelocityRequestSessionReturns a string containing the unique identifier assigned to this session.- Specified by:
getIdin interfaceVelocityRequestSession- Returns:
- a string specifying the identifier assigned to this session
-
getAttribute
Deprecated.Description copied from interface:VelocityRequestSessionReturns the object bound with the specified name in this session, or null if no object is bound under the name.- Specified by:
getAttributein interfaceVelocityRequestSession- Parameters:
s- a string specifying the name of the object- Returns:
- the object with the specified name
-
getAttributeNames
Deprecated.Description copied from interface:VelocityRequestSessionReturns an Enumeration of String objects containing the names of all the objects bound to this session.- Specified by:
getAttributeNamesin interfaceVelocityRequestSession- Returns:
- an Enumeration of String objects specifying the names of all the objects bound to this session
-
setAttribute
Deprecated.Description copied from interface:VelocityRequestSessionBinds an object to this session, using the name specified. If an object of the same name is already bound to the session, the object is replaced.- Specified by:
setAttributein interfaceVelocityRequestSession- Parameters:
s- the name to which the object is bound; cannot be nullo- the object to be bound; cannot be null
-
removeAttribute
Deprecated.Description copied from interface:VelocityRequestSessionRemoves the object bound with the specified name from this session. If the session does not have an object bound with the specified name, this method does nothing.- Specified by:
removeAttributein interfaceVelocityRequestSession- Parameters:
s- the name of the object to remove from this session
-
invalidate
public void invalidate()Deprecated.Description copied from interface:VelocityRequestSessionInvalidates this session and unbinds any objects bound to it.- Specified by:
invalidatein interfaceVelocityRequestSession
-
HttpSessionis not supported. Please move the functionality to the frontend or other type of storage. This class will be removed in 8.0.