org.atmosphere.cpr
Class DefaultAtmosphereResourceSessionFactory
java.lang.Object
org.atmosphere.cpr.AtmosphereResourceSessionFactory
org.atmosphere.cpr.DefaultAtmosphereResourceSessionFactory
public class DefaultAtmosphereResourceSessionFactory
- extends AtmosphereResourceSessionFactory
- Author:
- uklance (https://github.com/uklance)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAtmosphereResourceSessionFactory
public DefaultAtmosphereResourceSessionFactory()
getSession
public AtmosphereResourceSession getSession(AtmosphereResource r,
boolean create)
- Description copied from class:
AtmosphereResourceSessionFactory
- Returns the current session associated with the
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.
- Specified by:
getSession in class AtmosphereResourceSessionFactory
- Parameters:
r - An AtmosphereResourcecreate - true to create a new session if necessary; false to return
null if there's no current session
- Returns:
- the session associated with this request or null if create is
false and the resource has no valid session
getDisconnectListener
protected AtmosphereResourceEventListener getDisconnectListener()
- Used in testing
Copyright © 2014. All Rights Reserved.