Package com.ebasetech.xi.api
Interface WrappedHttpSession
- All Superinterfaces:
javax.servlet.http.HttpSession
public interface WrappedHttpSession
extends javax.servlet.http.HttpSession
-
Method Summary
Modifier and Type Method Description java.lang.Object
getAttribute(java.lang.String key)
Returns the object bound with the specified name in this session, or null if no object is bound under the name.void
setAttribute(java.lang.String key, java.lang.Object value)
Saves an object in this session, using the name specified.Methods inherited from interface javax.servlet.http.HttpSession
getAttributeNames, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getServletContext, getSessionContext, getValue, getValueNames, invalidate, isNew, putValue, removeAttribute, removeValue, setMaxInactiveInterval
-
Method Details
-
getAttribute
java.lang.Object getAttribute(java.lang.String key)Returns the object bound with the specified name in this session, or null if no object is bound under the name.Note that this method returns the state of the object at the time of calling setAttribute(), any changes made to the saved object after calling setAttribute() will not be reflected in the object returned by this method.
- Specified by:
getAttribute
in interfacejavax.servlet.http.HttpSession
- Parameters:
key
- - a string specifying the name of the object- Returns:
- the object with the specified name
- See Also:
setAttribute(String, Object)
-
setAttribute
void setAttribute(java.lang.String key, java.lang.Object value)Saves an object in this session, using the name specified. If an object of the same name already exists, the object is replaced. If the value passed in is null, this has the same effect as calling removeAttribute().Note that getAttribute() returns the state of the object at the time of calling this method, any changes made to the saved object after calling this method will not be reflected in the object returned by getAttribute().
- Specified by:
setAttribute
in interfacejavax.servlet.http.HttpSession
- Parameters:
key
- - the name to which the object is bound; cannot be nullvalue
- - the object to be saved- See Also:
getAttribute(String)
-