Package org.atmosphere.cpr
Class DefaultAtmosphereResourceSession
java.lang.Object
org.atmosphere.cpr.DefaultAtmosphereResourceSession
- All Implemented Interfaces:
AtmosphereResourceSession
- Author:
- uklance (https://github.com/uklance)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgetAttribute(String name) Returns the object bound with the specified name in this session, or null if no object is bound under the name<T> TgetAttribute(String name, Class<T> type) Returns the object bound with the specified name in this session, or null if no object is bound under the nameReturns a Collection of Strings containing the names of all the objects bound to this session.voidInvalidates this session then unbinds any objects bound to it.setAttribute(String name, Object value) Binds an object to this session, using the name specified
-
Constructor Details
-
DefaultAtmosphereResourceSession
public DefaultAtmosphereResourceSession()
-
-
Method Details
-
setAttribute
Description copied from interface:AtmosphereResourceSessionBinds an object to this session, using the name specified- Specified by:
setAttributein interfaceAtmosphereResourceSession- Parameters:
name- Attribute namevalue- Attribute value- Returns:
- the previous value associated with name, or null if there was no mapping for name
-
getAttribute
Description copied from interface:AtmosphereResourceSessionReturns the object bound with the specified name in this session, or null if no object is bound under the name- Specified by:
getAttributein interfaceAtmosphereResourceSession- Parameters:
name- Attribute name- Returns:
- the object with the specified name
-
getAttribute
Description copied from interface:AtmosphereResourceSessionReturns the object bound with the specified name in this session, or null if no object is bound under the name- Specified by:
getAttributein interfaceAtmosphereResourceSession- Parameters:
name- Attribute nametype- Attribute type- Returns:
- the object with the specified name
-
getAttributeNames
Description copied from interface:AtmosphereResourceSessionReturns a Collection of Strings containing the names of all the objects bound to this session.- Specified by:
getAttributeNamesin interfaceAtmosphereResourceSession- Returns:
- a Collection of Strings containing the names of all the objects bound to this session
-
invalidate
public void invalidate()Description copied from interface:AtmosphereResourceSessionInvalidates this session then unbinds any objects bound to it.- Specified by:
invalidatein interfaceAtmosphereResourceSession
-
checkValid
protected void checkValid()
-