org.atmosphere.cpr
Class DefaultAtmosphereResourceSessionFactory

java.lang.Object
  extended by org.atmosphere.cpr.AtmosphereResourceSessionFactory
      extended by org.atmosphere.cpr.DefaultAtmosphereResourceSessionFactory

public class DefaultAtmosphereResourceSessionFactory
extends AtmosphereResourceSessionFactory

Author:
uklance (https://github.com/uklance)

Constructor Summary
DefaultAtmosphereResourceSessionFactory()
           
 
Method Summary
protected  AtmosphereResourceEventListener getDisconnectListener()
          Used in testing
 AtmosphereResourceSession getSession(AtmosphereResource r, 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 org.atmosphere.cpr.AtmosphereResourceSessionFactory
getDefault, getSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAtmosphereResourceSessionFactory

public DefaultAtmosphereResourceSessionFactory()
Method Detail

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 AtmosphereResource
create - 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.