| 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.binaryWrite(boolean binaryWrite)
Write binary frame when websocket transport is used.
|
Config.Builder |
Config.Builder.bossExecutor(java.util.concurrent.ExecutorService bossExecutor)
The Executor to be used in providing (the) I/O boss-thread(s).
|
Config.Builder |
Config.Builder.broadcaster(java.lang.Class<? extends org.atmosphere.cpr.Broadcaster> broadcasterClass)
Configure the default
Broadcaster |
Config.Builder |
Config.Builder.broadcasterCache(java.lang.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(io.netty.channel.ChannelInboundHandler h)
Add a
ChannelInboundHandler. |
Config.Builder |
Config.Builder.configFile(java.lang.String atmosphereDotXmlPath)
The path location of the atmosphere.xml file.
|
Config.Builder |
Config.Builder.enabledCipherSuites(java.lang.String[] cipherSuitesToEnable)
Set a String[] of cipher suites to be enabled.
|
Config.Builder |
Config.Builder.enablePong(boolean enablePong)
Enable WebSokcet Pong message.
|
Config.Builder |
Config.Builder.epoll(boolean epoll)
Use
EpollEventLoopGroup |
Config.Builder |
Config.Builder.excludeInterceptor(java.lang.String interceptor)
Exclude an
AtmosphereInterceptor from being added, at startup, by Atmosphere. |
Config.Builder |
Config.Builder.host(java.lang.String host)
The server's host
|
Config.Builder |
Config.Builder.initParam(java.lang.String name,
java.lang.String value)
Add some init param
|
Config.Builder |
Config.Builder.interceptor(org.atmosphere.cpr.AtmosphereInterceptor interceptor)
Add an
AtmosphereInterceptor |
Config.Builder |
Config.Builder.ioExceptionHandler(IOExceptionHandler ioExceptionHandler)
Set an
IOExceptionHandler to handle unexpected I/O exception |
Config.Builder |
Config.Builder.mappingPath(java.lang.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.maxWebSocketFrameSize(int maxWebSocketFrameSize)
Set the maximum WebSocket Frame Size.
|
Config.Builder |
Config.Builder.noInternalAlloc(boolean noInternalAlloc)
Proxy
AtmosphereRequest, AtmosphereResource and AtmosphereRequest
with no ops implementations. |
Config.Builder |
Config.Builder.port(int port)
The server's port
|
Config.Builder |
Config.Builder.resource(java.lang.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(java.lang.String path)
Add a path to scan when looking for static resources like javascript file, html, etc.
|
Config.Builder |
Config.Builder.resource(java.lang.String path,
org.atmosphere.cpr.AtmosphereHandler c)
Add an
AtmosphereHandler that will be mapped to the specified path |
Config.Builder |
Config.Builder.resource(java.lang.String path,
java.lang.Class<?> c)
Add an
AtmosphereHandler or Servlet class |
Config.Builder |
Config.Builder.resource(java.lang.String path,
Handler handler)
Add an
Handler that will be mapped to the specified path |
Config.Builder |
Config.Builder.resource(java.lang.String path,
javax.servlet.Servlet c)
Add an
Servlet that will be mapped to the specified path |
Config.Builder |
Config.Builder.resource(java.lang.String path,
org.atmosphere.websocket.WebSocketHandler c)
Add an
WebSocketHandler that will be mapped to the specified path |
Config.Builder |
Config.Builder.scanLibrary(java.lang.String librariesPath)
Set the path to the library when annotation scanning is enabled.
|
Config.Builder |
Config.Builder.servletContextAttribute(java.lang.String name,
java.lang.Object value)
Set ServletContext Attribute
|
Config.Builder |
Config.Builder.shareHeaders(boolean shareHeaders)
Share underlying headers map with newly created WebSocket.
|
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(io.netty.handler.ssl.SslContext sslContext)
Set the
SslContext |
Config.Builder |
Config.Builder.sslContext(javax.net.ssl.SSLContext context)
Set an SSLContext in order enable SSL
|
Config.Builder |
Config.Builder.sslContextListener(SSLContextListener listener)
Add a
SSLContextListener |
Config.Builder |
Config.Builder.subProtocols(java.lang.String subProtocols)
A coma delimited of allowed WebSocket Sub Protocol (Sec-WebSocket-Protocol)
|
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.textFrameAsBinary(boolean textFrameAsBinary)
Do not decode
TextWebSocketFrame into a String and instead pass
it to the WebSocketProcessor as binary. |
Config.Builder |
Config.Builder.webSocketOnly(boolean webSocketOnly)
Only Support WebSocket.
|
Config.Builder |
Config.Builder.webSocketProtocol(java.lang.Class<? extends org.atmosphere.websocket.WebSocketProtocol> webSocketProtocol)
Configure the default
WebSocketProtocol |
Config.Builder |
Config.Builder.workerExecutor(java.util.concurrent.ExecutorService workerExecutor)
The Executor to be used in providing (the) I/O worker-thread(s).
|
| Constructor and Description |
|---|
Config(Config.Builder b) |
Copyright © 2018. All Rights Reserved.