public class DefaultAtmosphereResourceSession extends Object implements AtmosphereResourceSession
| Constructor and Description |
|---|
DefaultAtmosphereResourceSession() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkValid() |
Object |
getAttribute(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(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 name
|
Collection<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.
|
Object |
setAttribute(String name,
Object value)
Binds an object to this session, using the name specified
|
public Object setAttribute(String name, Object value)
AtmosphereResourceSessionsetAttribute in interface AtmosphereResourceSessionname - Attribute namevalue - Attribute valuepublic Object getAttribute(String name)
AtmosphereResourceSessiongetAttribute in interface AtmosphereResourceSessionname - Attribute namepublic <T> T getAttribute(String name, Class<T> type)
AtmosphereResourceSessiongetAttribute in interface AtmosphereResourceSessionname - Attribute nametype - Attribute typepublic Collection<String> getAttributeNames()
AtmosphereResourceSessiongetAttributeNames in interface AtmosphereResourceSessionpublic void invalidate()
AtmosphereResourceSessioninvalidate in interface AtmosphereResourceSessionprotected void checkValid()
Copyright © 2016. All rights reserved.