public class DefaultAtmosphereResourceSession extends java.lang.Object implements AtmosphereResourceSession
| Constructor and Description |
|---|
DefaultAtmosphereResourceSession() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkValid() |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the object bound with the specified name in this session, or null
if no object is bound under the name
|
<T> T |
getAttribute(java.lang.String name,
java.lang.Class<T> type)
Returns the object bound with the specified name in this session, or null
if no object is bound under the name
|
java.util.Collection<java.lang.String> |
getAttributeNames()
Returns a Collection of Strings containing the names of all the objects
bound to this session.
|
void |
invalidate()
Invalidates this session then unbinds any objects bound to it.
|
java.lang.Object |
setAttribute(java.lang.String name,
java.lang.Object value)
Binds an object to this session, using the name specified
|
public java.lang.Object setAttribute(java.lang.String name,
java.lang.Object value)
AtmosphereResourceSessionsetAttribute in interface AtmosphereResourceSessionname - Attribute namevalue - Attribute valuepublic java.lang.Object getAttribute(java.lang.String name)
AtmosphereResourceSessiongetAttribute in interface AtmosphereResourceSessionname - Attribute namepublic <T> T getAttribute(java.lang.String name,
java.lang.Class<T> type)
AtmosphereResourceSessiongetAttribute in interface AtmosphereResourceSessionname - Attribute nametype - Attribute typepublic java.util.Collection<java.lang.String> getAttributeNames()
AtmosphereResourceSessiongetAttributeNames in interface AtmosphereResourceSessionpublic void invalidate()
AtmosphereResourceSessioninvalidate in interface AtmosphereResourceSessionprotected void checkValid()
Copyright © 2021. All Rights Reserved.