org.atmosphere.config.service
Annotation Type AtmosphereHandlerService


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface AtmosphereHandlerService

An annotation for AtmosphereHandler

Author:
Jeanfrancois Arcand

Optional Element Summary
 String[] atmosphereConfig
          Atmosphere's configuration that will be passed to the associated AtmosphereHandler.
 Class<? extends Broadcaster> broadcaster
          The Broadcaster class name
 Class<? extends BroadcasterCache> broadcasterCache
          The BroadcasterCache class name.
 Class<? extends BroadcastFilter>[] broadcastFilters
          A list of BroadcastFilter
 Class<? extends AtmosphereInterceptor>[] interceptors
          A list of AtmosphereInterceptor to install
 Class<? extends AtmosphereResourceEventListener>[] listeners
          Add AtmosphereResourceEventListener to track internal events.
 String path
          The mapping path or context-root used to map this AtmosphereHandler
 String[] properties
          Properties that will be passed to the associated AtmosphereHandler.
 boolean supportSession
          Set to true if this AtmosphereHandler supports sessions
 

broadcaster

public abstract Class<? extends Broadcaster> broadcaster
The Broadcaster class name

Returns:
The Broadcaster class name
Default:
org.atmosphere.cpr.DefaultBroadcaster.class

broadcastFilters

public abstract Class<? extends BroadcastFilter>[] broadcastFilters
A list of BroadcastFilter

Default:
{}

path

public abstract String path
The mapping path or context-root used to map this AtmosphereHandler

Returns:
mapping path or context-root used to map this AtmosphereHandler
Default:
"/"

properties

public abstract String[] properties
Properties that will be passed to the associated AtmosphereHandler. Properties are defined delimited using "=" and separated using comma.

Returns:
an array of properties that will be passed to the associated AtmosphereHandler
Default:
{}

supportSession

public abstract boolean supportSession
Set to true if this AtmosphereHandler supports sessions

Returns:
true if session are supported.
Default:
false

atmosphereConfig

public abstract String[] atmosphereConfig
Atmosphere's configuration that will be passed to the associated AtmosphereHandler. Configuration name and value is delimited by "=", and different configuration lines are separated by comma.

Default:
{}

interceptors

public abstract Class<? extends AtmosphereInterceptor>[] interceptors
A list of AtmosphereInterceptor to install

Default:
{}

broadcasterCache

public abstract Class<? extends BroadcasterCache> broadcasterCache
The BroadcasterCache class name. By default, a no-ops DefaultBroadcasterCache is installed. It is strongly recommended to install the UUIDBroadcasterCache to prevent message being lost.

Returns:
The Broadcaster class name
Default:
org.atmosphere.cache.DefaultBroadcasterCache.class

listeners

public abstract Class<? extends AtmosphereResourceEventListener>[] listeners
Add AtmosphereResourceEventListener to track internal events.

Default:
{}


Copyright © 2013. All Rights Reserved.