|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.atmosphere.vertx.VertxAtmosphere.Builder
public static final class VertxAtmosphere.Builder
| Field Summary | |
|---|---|
protected Class<? extends org.atmosphere.cpr.BroadcasterCache> |
broadcasterCache
|
protected Class<org.atmosphere.cpr.Broadcaster> |
broadcasterClass
|
protected org.atmosphere.cpr.BroadcasterFactory |
broadcasterFactory
|
protected org.vertx.java.core.http.HttpServer |
httpServer
|
protected Map<String,String> |
initParams
|
protected List<org.atmosphere.cpr.AtmosphereInterceptor> |
interceptors
|
protected Class<?> |
resource
|
protected String |
url
|
protected Class<? extends org.atmosphere.websocket.WebSocketProtocol> |
webSocketProtocol
|
| Constructor Summary | |
|---|---|
VertxAtmosphere.Builder()
|
|
| Method Summary | |
|---|---|
VertxAtmosphere.Builder |
broadcaster(Class<org.atmosphere.cpr.Broadcaster> broadcasterClass)
Configure the default Broadcaster |
VertxAtmosphere.Builder |
broadcasterCache(Class<? extends org.atmosphere.cpr.BroadcasterCache> broadcasterCache)
Configure the default BroadcasterCache |
VertxAtmosphere.Builder |
broadcasterFactory(org.atmosphere.cpr.BroadcasterFactory broadcasterFactory)
Configure the default BroadcasterFactory |
VertxAtmosphere |
build()
Create the associated VertxAtmosphere |
VertxAtmosphere.Builder |
httpServer(org.vertx.java.core.http.HttpServer httpServer)
Set the Vert.x HttpServer |
VertxAtmosphere.Builder |
initParam(String name,
String value)
Add some init param |
VertxAtmosphere.Builder |
interceptor(org.atmosphere.cpr.AtmosphereInterceptor interceptor)
Add an AtmosphereInterceptor |
VertxAtmosphere.Builder |
resource(Class<?> resource)
An annotated Atmosphere class. |
VertxAtmosphere.Builder |
url(String url)
|
VertxAtmosphere.Builder |
webSocketProtocol(Class<? extends org.atmosphere.websocket.WebSocketProtocol> webSocketProtocol)
Configure the default WebSocketProtocol |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String url
protected org.vertx.java.core.http.HttpServer httpServer
protected Class<?> resource
protected final Map<String,String> initParams
protected Class<? extends org.atmosphere.websocket.WebSocketProtocol> webSocketProtocol
protected Class<org.atmosphere.cpr.Broadcaster> broadcasterClass
protected org.atmosphere.cpr.BroadcasterFactory broadcasterFactory
protected Class<? extends org.atmosphere.cpr.BroadcasterCache> broadcasterCache
protected final List<org.atmosphere.cpr.AtmosphereInterceptor> interceptors
| Constructor Detail |
|---|
public VertxAtmosphere.Builder()
| Method Detail |
|---|
public VertxAtmosphere.Builder url(String url)
public VertxAtmosphere.Builder httpServer(org.vertx.java.core.http.HttpServer httpServer)
HttpServer
httpServer - a Vert.x HttpServer
public VertxAtmosphere build()
VertxAtmosphere
VertxAtmospherepublic VertxAtmosphere.Builder resource(Class<?> resource)
org.atmosphere.config.service.ManagedService,
org.atmosphere.config.service.AtmosphereHandlerService, org.atmosphere.config.service.MeteorService,
org.atmosphere.config.service.WebSocketHandlerService and any Jersey resource.
resource -
public VertxAtmosphere.Builder initParam(String name,
String value)
name - the namevalue - the value
public VertxAtmosphere.Builder broadcaster(Class<org.atmosphere.cpr.Broadcaster> broadcasterClass)
Broadcaster
broadcasterClass - a Broadcaster
public VertxAtmosphere.Builder broadcasterFactory(org.atmosphere.cpr.BroadcasterFactory broadcasterFactory)
BroadcasterFactory
broadcasterFactory - a BroadcasterFactory's class
public VertxAtmosphere.Builder broadcasterCache(Class<? extends org.atmosphere.cpr.BroadcasterCache> broadcasterCache)
BroadcasterCache
broadcasterCache - a BroadcasterCache's class
public VertxAtmosphere.Builder webSocketProtocol(Class<? extends org.atmosphere.websocket.WebSocketProtocol> webSocketProtocol)
WebSocketProtocol
webSocketProtocol - a WebSocketProtocol's class
public VertxAtmosphere.Builder interceptor(org.atmosphere.cpr.AtmosphereInterceptor interceptor)
AtmosphereInterceptor
interceptor - an AtmosphereInterceptor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||