| Package | Description |
|---|---|
| org.atmosphere.nettosphere |
| Modifier and Type | Method and Description |
|---|---|
Config.Builder |
Config.Builder.aggregateRequestBodyInMemory(boolean aggregateRequestBodyInMemory)
By default, Nettosphere aggregate the HTTP request's body in memory an invoke an Atmosphere's components with
a single
AtmosphereResource. |
Config.Builder |
Config.Builder.bossExecutor(ExecutorService bossExecutor)
The Executor to be used in providing (the) I/O boss-thread(s).
|
Config.Builder |
Config.Builder.broadcaster(Class<? extends org.atmosphere.cpr.Broadcaster> broadcasterClass)
Configure the default
Broadcaster |
Config.Builder |
Config.Builder.broadcasterCache(Class<? extends org.atmosphere.cpr.BroadcasterCache> broadcasterCache)
Configure the default
BroadcasterCache |
Config.Builder |
Config.Builder.broadcasterFactory(org.atmosphere.cpr.BroadcasterFactory broadcasterFactory)
Configure the default
BroadcasterFactory |
Config.Builder |
Config.Builder.channelUpstreamHandler(org.jboss.netty.channel.ChannelUpstreamHandler h)
Add a
ChannelUpstreamHandler. |
Config.Builder |
Config.Builder.configFile(String atmosphereDotXmlPath)
The path location of the atmosphere.xml file.
|
Config.Builder |
Config.Builder.enablePong(boolean enablePong)
Enable WebSokcet Pong message.
|
Config.Builder |
Config.Builder.excludeInterceptor(String interceptor)
Exclude an
AtmosphereInterceptor from being added, at startup, by Atmosphere. |
Config.Builder |
Config.Builder.host(String host)
The server's host
|
Config.Builder |
Config.Builder.initParam(String name,
String value)
Add some init param
|
Config.Builder |
Config.Builder.interceptor(org.atmosphere.cpr.AtmosphereInterceptor interceptor)
Add an
AtmosphereInterceptor |
Config.Builder |
Config.Builder.mappingPath(String mappingPath)
Set the mapping path.
|
Config.Builder |
Config.Builder.maxChunkContentLength(int maxChunkContentLength)
When
aggregateRequestBodyInMemory is true,the maximum length of the aggregated content. |
Config.Builder |
Config.Builder.port(int port)
The server's port
|
Config.Builder |
Config.Builder.resource(Class<?> c)
Add an annotated class.
|
Config.Builder |
Config.Builder.resource(Handler handler)
Add an
Handler mapped to the default, which is '/*' |
Config.Builder |
Config.Builder.resource(String path)
Add a path to scan when looking for static resources like javascript file, html, etc.
|
Config.Builder |
Config.Builder.resource(String path,
org.atmosphere.cpr.AtmosphereHandler c)
Add an
AtmosphereHandler that will be mapped to the specified path |
Config.Builder |
Config.Builder.resource(String path,
Class<?> c)
Add an
AtmosphereHandler or Servlet class |
Config.Builder |
Config.Builder.resource(String path,
Handler handler)
Add an
Handler that will be mapped to the specified path |
Config.Builder |
Config.Builder.resource(String path,
javax.servlet.Servlet c)
Add an
Servlet that will be mapped to the specified path |
Config.Builder |
Config.Builder.scanLibrary(String librariesPath)
Set the path to the library when annotation scanning is enabled.
|
Config.Builder |
Config.Builder.servletContextAttribute(String name,
Object value)
Set ServletContext Attribute
|
Config.Builder |
Config.Builder.socketKeepAlive(boolean socketKeepAlive)
Set Netty's Bootstrap 'child.keepAlive'
|
Config.Builder |
Config.Builder.socketNoTcpDelay(boolean socketNoTcpDelay)
Set Netty's Bootstrap 'child.tcpDelay'
|
Config.Builder |
Config.Builder.sslContext(SSLContext context)
Set an SSLContext in order enable SSL
|
Config.Builder |
Config.Builder.sslContextListener(SSLContextListener listener)
Add a
SSLContextListener |
Config.Builder |
Config.Builder.supportChunking(boolean supportChunking)
Set to false to override the default behavior when writing bytes, which is use chunking.
|
Config.Builder |
Config.Builder.webSocketProtocol(Class<? extends org.atmosphere.websocket.WebSocketProtocol> webSocketProtocol)
Configure the default
WebSocketProtocol |
Config.Builder |
Config.Builder.workerExecutor(ExecutorService workerExecutor)
The Executor to be used in providing (the) I/O worker-thread(s).
|
Config.Builder |
Config.Builder.writeBufferPoolCleanupFrequency(long writeBufferPoolCleanupFrequency)
The frequency the
ChannelBufferPool is resized and garbaged. |
Config.Builder |
Config.Builder.writeBufferPoolSize(int writeBufferPoolSize)
The internal size of the underlying
ChannelBufferPool size for
I/O operation. |
| Constructor and Description |
|---|
Config(Config.Builder b) |
Copyright © 2015. All Rights Reserved.