|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.nettosphere.Config.Builder
public static final class Config.Builder
| Constructor Summary | |
|---|---|
Config.Builder()
|
|
| Method Summary | |
|---|---|
Config.Builder |
broadcaster(Class<org.atmosphere.cpr.Broadcaster> broadcasterClass)
Configure the default Broadcaster |
Config.Builder |
broadcasterCache(Class<? extends org.atmosphere.cpr.BroadcasterCache> broadcasterCache)
Configure the default BroadcasterCache |
Config.Builder |
broadcasterFactory(org.atmosphere.cpr.BroadcasterFactory broadcasterFactory)
Configure the default BroadcasterFactory |
Config |
build()
Build an instance of this class. |
Config.Builder |
configFile(String atmosphereDotXmlPath)
The path location of the atmosphere.xml file. |
Config.Builder |
handler(Handler handler)
Add an Handler mapped to the default, which is '/*' |
Config.Builder |
handler(String path,
Handler handler)
Add an Handler that will be mapped to the specified path |
Config.Builder |
host(String host)
The server's host |
Config.Builder |
initParam(String name,
String value)
Add some init param |
Config.Builder |
interceptor(org.atmosphere.cpr.AtmosphereInterceptor interceptor)
Add an AtmosphereInterceptor |
Config.Builder |
port(int port)
The server's port |
Config.Builder |
resource(Class<?> c)
Add a Jersey/JAX RS resource. |
Config.Builder |
resource(String staticResourcePath)
The path location of static resource (e.g html) |
Config.Builder |
resource(String path,
org.atmosphere.cpr.AtmosphereHandler c)
Add an AtmosphereHandler that will be mapped to the specified path |
Config.Builder |
resource(String path,
Class<?> c)
Add an Jersey/JAX RS that will be mapped to the specified path |
Config.Builder |
resource(String path,
javax.servlet.Servlet c)
Add an Servlet that will be mapped to the specified path |
Config.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 |
| Constructor Detail |
|---|
public Config.Builder()
| Method Detail |
|---|
public Config.Builder resource(String staticResourcePath)
staticResourcePath -
public Config.Builder configFile(String atmosphereDotXmlPath)
atmosphereDotXmlPath - path location of the atmosphere.xml file.
public Config.Builder host(String host)
host - server's host
public Config.Builder port(int port)
port - server's port
public Config.Builder initParam(String name,
String value)
name - the namevalue - the value
public Config.Builder resource(String path,
org.atmosphere.cpr.AtmosphereHandler c)
AtmosphereHandler that will be mapped to the specified path
path - a mapping pathc - an AtmosphereHandler
public Config.Builder resource(String path,
javax.servlet.Servlet c)
Servlet that will be mapped to the specified path
path - a mapping pathc - an Servlet
public Config.Builder handler(Handler handler)
Handler mapped to the default, which is '/*'
handler - Handler
public Config.Builder handler(String path,
Handler handler)
Handler that will be mapped to the specified path
handler - Handler
public Config.Builder resource(Class<?> c)
c - a Jersey/JAX RS resource.
public Config.Builder resource(String path,
Class<?> c)
path - a mapping pathc - an Jersey/JAX RS
public Config.Builder broadcaster(Class<org.atmosphere.cpr.Broadcaster> broadcasterClass)
Broadcaster
broadcasterClass - a Broadcaster
public Config.Builder broadcasterFactory(org.atmosphere.cpr.BroadcasterFactory broadcasterFactory)
BroadcasterFactory
broadcasterFactory - a BroadcasterFactory's class
public Config.Builder broadcasterCache(Class<? extends org.atmosphere.cpr.BroadcasterCache> broadcasterCache)
BroadcasterCache
broadcasterCache - a BroadcasterCache's class
public Config.Builder webSocketProtocol(Class<? extends org.atmosphere.websocket.WebSocketProtocol> webSocketProtocol)
WebSocketProtocol
webSocketProtocol - a WebSocketProtocol's class
public Config.Builder interceptor(org.atmosphere.cpr.AtmosphereInterceptor interceptor)
AtmosphereInterceptor
interceptor - an AtmosphereInterceptor
public Config build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||