Package org.atmosphere.config.service
Annotation Interface AtmosphereHandlerService
An annotation for
AtmosphereHandler- Author:
- Jeanfrancois Arcand
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Atmosphere's configuration that will be passed to the associatedAtmosphereHandler.Class<? extends Broadcaster> TheBroadcasterclass nameClass<? extends BroadcasterCache> TheBroadcasterCacheclass name.Class<? extends BroadcastFilter>[]A list ofBroadcastFilterClass<? extends AtmosphereInterceptor>[]A list ofAtmosphereInterceptorto installClass<? extends AtmosphereResourceEventListener>[]AddAtmosphereResourceEventListenerto track internal events.The mapping path or context-root used to map this AtmosphereHandlerString[]Properties that will be passed to the associatedAtmosphereHandler.booleanSet to true if thisAtmosphereHandlersupports sessions
-
Element Details
-
broadcaster
Class<? extends Broadcaster> broadcasterTheBroadcasterclass name- Returns:
- The
Broadcasterclass name
- Default:
org.atmosphere.cpr.DefaultBroadcaster.class
-
broadcastFilters
Class<? extends BroadcastFilter>[] broadcastFiltersA list ofBroadcastFilter- Default:
{}
-
path
String pathThe mapping path or context-root used to map this AtmosphereHandler- Returns:
- mapping path or context-root used to map this AtmosphereHandler
- Default:
"/"
-
properties
String[] propertiesProperties that will be passed to the associatedAtmosphereHandler. Properties are defined delimited using "=" and separated using comma.- Returns:
- an array of properties that will be passed to the associated
AtmosphereHandler
- Default:
{}
-
supportSession
boolean supportSessionSet to true if thisAtmosphereHandlersupports sessions- Returns:
- true if session are supported.
- Default:
false
-
atmosphereConfig
String[] atmosphereConfigAtmosphere's configuration that will be passed to the associatedAtmosphereHandler. Configuration name and value is delimited by "=", and different configuration lines are separated by comma.- Default:
{}
-
interceptors
Class<? extends AtmosphereInterceptor>[] interceptorsA list ofAtmosphereInterceptorto install- Default:
{}
-
broadcasterCache
Class<? extends BroadcasterCache> broadcasterCacheTheBroadcasterCacheclass name. By default, a no-opsDefaultBroadcasterCacheis installed. It is strongly recommended to install theUUIDBroadcasterCacheto prevent message being lost.- Returns:
- The
Broadcasterclass name
- Default:
org.atmosphere.cache.DefaultBroadcasterCache.class
-
listeners
Class<? extends AtmosphereResourceEventListener>[] listenersAddAtmosphereResourceEventListenerto track internal events.- Default:
{}
-