public abstract class BaseAtmosphereHandler extends Object implements org.atmosphere.cpr.AtmosphereHandler
AtmosphereHandler
implementation.Constructor and Description |
---|
BaseAtmosphereHandler() |
Modifier and Type | Method and 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 the
SessionConfig object associated in the HttpSession of the given atmosphere resource. |
protected boolean |
isBroadcast(org.atmosphere.cpr.AtmosphereResourceEvent event)
Returns whether the given event is a message broadcast event.
|
protected boolean isBroadcast(org.atmosphere.cpr.AtmosphereResourceEvent event)
event
- the event.true
if it is a message broadcast event, false
otherwise.protected org.atmosphere.cpr.Broadcaster getBroadcaster()
protected abstract String getBroadcasterId()
public SessionConfig getSessionConfig(org.atmosphere.cpr.AtmosphereResource resource)
SessionConfig
object associated in the HttpSession
of the given atmosphere resource.resource
- the atmosphere resource.null
if the session does not exist or does not contain a
SessionConfig or if the given resource is no longer valid.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.