|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.DefaultAtmosphereResourceSession
public class DefaultAtmosphereResourceSession
| Constructor Summary | |
|---|---|
DefaultAtmosphereResourceSession()
|
|
| Method Summary | ||
|---|---|---|
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 |
|
|
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 |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAtmosphereResourceSession()
| Method Detail |
|---|
public Object setAttribute(String name,
Object value)
AtmosphereResourceSession
setAttribute in interface AtmosphereResourceSessionname - Attribute namevalue - Attribute value
public Object getAttribute(String name)
AtmosphereResourceSession
getAttribute in interface AtmosphereResourceSessionname - Attribute name
public <T> T getAttribute(String name,
Class<T> type)
AtmosphereResourceSession
getAttribute in interface AtmosphereResourceSessionname - Attribute nametype - Attribute type
public Collection<String> getAttributeNames()
AtmosphereResourceSession
getAttributeNames in interface AtmosphereResourceSessionpublic void invalidate()
AtmosphereResourceSession
invalidate in interface AtmosphereResourceSessionprotected void checkValid()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||