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)
AtmosphereResourceSession
setAttribute
in interface AtmosphereResourceSession
name
- Attribute namevalue
- Attribute valuepublic Object getAttribute(String name)
AtmosphereResourceSession
getAttribute
in interface AtmosphereResourceSession
name
- Attribute namepublic <T> T getAttribute(String name, Class<T> type)
AtmosphereResourceSession
getAttribute
in interface AtmosphereResourceSession
name
- Attribute nametype
- Attribute typepublic Collection<String> getAttributeNames()
AtmosphereResourceSession
getAttributeNames
in interface AtmosphereResourceSession
public void invalidate()
AtmosphereResourceSession
invalidate
in interface AtmosphereResourceSession
protected void checkValid()
Copyright © 2016. All rights reserved.