Package lumis.portal.atmosphere
Class BaseAtmosphereHandler
- java.lang.Object
-
- lumis.portal.atmosphere.BaseAtmosphereHandler
-
- All Implemented Interfaces:
org.atmosphere.cpr.AtmosphereHandler
- Direct Known Subclasses:
ActivityStreamAtmosphereHandler
,LogAtmosphereHandler
public abstract class BaseAtmosphereHandler extends Object implements org.atmosphere.cpr.AtmosphereHandler
BaseAtmosphereHandler
implementation.- Since:
- 9.0.0
- Version:
- $Revision: 23448 $ $Date: 2019-12-23 17:42:40 -0300 (Mon, 23 Dec 2019) $
-
-
Constructor Summary
Constructors Constructor Description BaseAtmosphereHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.atmosphere.cpr.Broadcaster
getBroadcaster()
Returns the broadcaster used by this handler.protected abstract String
getBroadcasterId()
Returns the broadcaster identifier.SessionConfig
getSessionConfig(org.atmosphere.cpr.AtmosphereResource resource)
Returns theSessionConfig
object associated in theHttpSession
of the given atmosphere resource.protected boolean
isBroadcast(org.atmosphere.cpr.AtmosphereResourceEvent event)
Returns whether the given event is a message broadcast event.
-
-
-
Method Detail
-
isBroadcast
protected boolean isBroadcast(org.atmosphere.cpr.AtmosphereResourceEvent event)
Returns whether the given event is a message broadcast event.- Parameters:
event
- the event.- Returns:
true
if it is a message broadcast event,false
otherwise.- Since:
- 9.0.0
-
getBroadcaster
protected org.atmosphere.cpr.Broadcaster getBroadcaster()
Returns the broadcaster used by this handler.- Returns:
- the broadcaster.
- Since:
- 9.0.0
-
getBroadcasterId
protected abstract String getBroadcasterId()
Returns the broadcaster identifier.- Returns:
- the broadcaster identifier.
- Since:
- 9.0.0
-
getSessionConfig
public SessionConfig getSessionConfig(org.atmosphere.cpr.AtmosphereResource resource)
Returns theSessionConfig
object associated in theHttpSession
of the given atmosphere resource.- Parameters:
resource
- the atmosphere resource.- Returns:
- the SessionConfig object, or
null
if the session does not exist or does not contain a SessionConfig or if the given resource is no longer valid. - Since:
- 9.0.0
-
-