|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AtmosphereResourceSessionFactory
public abstract class AtmosphereResourceSessionFactory
Factory for AtmosphereResourceSession instances
| Constructor Summary | |
|---|---|
AtmosphereResourceSessionFactory()
|
|
| Method Summary | |
|---|---|
static AtmosphereResourceSessionFactory |
getDefault()
Return the default AtmosphereResourceSessionFactory |
AtmosphereResourceSession |
getSession(AtmosphereResource resource)
Returns the current session associated with the AtmosphereResource, or creates one if it does not yet exist. |
abstract AtmosphereResourceSession |
getSession(AtmosphereResource resource,
boolean create)
Returns the current session associated with the AtmosphereResource or, if there is no current session and create
is true, returns a new session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtmosphereResourceSessionFactory()
| Method Detail |
|---|
public static AtmosphereResourceSessionFactory getDefault()
AtmosphereResourceSessionFactory
AtmosphereResourceSessionFactory
public abstract AtmosphereResourceSession getSession(AtmosphereResource resource,
boolean create)
AtmosphereResource or, if there is no current session and create
is true, returns a new session.
If create is false and the request has no valid HttpSession, this method
returns null.
resource - An AtmosphereResourcecreate - true to create a new session if necessary; false to return
null if there's no current session
public AtmosphereResourceSession getSession(AtmosphereResource resource)
AtmosphereResource, or creates one if it does not yet exist.
resource - An AtmosphereResource
AtmosphereResource, or creates one if it does not yet
exist.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||