|
AeroGear Netty SockJS Codec 0.11.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsConfig
public final class SockJsConfig
Configuration for a SockJS Session.
| Nested Class Summary | |
|---|---|
static class |
SockJsConfig.Builder
|
| Method Summary | |
|---|---|
boolean |
areCookiesNeeded()
Determines if a JSESSIONID cookie will be set. |
long |
heartbeatInterval()
A heartbeat interval. |
boolean |
isTls()
Determines whether transport layer security (TLS) should be used. |
boolean |
isWebSocketEnabled()
Determines whether WebSocket support will not be enabled. |
String |
keyStore()
Returns the keystore to be used if transport layer security is enabled. |
String |
keyStorePassword()
Returns the keystore password to be used if transport layer security is enabled. |
int |
maxStreamingBytesSize()
The max number of types that a streaming transport protocol should allow to be returned before closing the connection, forcing the client to reconnect. |
String |
prefix()
The prefix/name, of the SockJS service. |
long |
sessionTimeout()
A time out for inactive sessions. |
String |
sockJsUrl()
The url to the sock-js- |
String |
toString()
|
long |
webSocketHeartbeatInterval()
The WebSocket heartbeat interval. |
Set<String> |
webSocketProtocol()
If WebSockets are in use the this give the oppertunity to specify what 'WebSocket-Protocols' should be returned and supported by this SockJS session. |
String |
webSocketProtocolCSV()
If WebSockets are in use the this give the oppertunity to specify what 'WebSocket-Protocols' should be returned and supported by this SockJS session. |
static SockJsConfig.Builder |
withPrefix(String prefix)
The prefix, or name, of the service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String prefix()
String the prefix/name of the SockJS service.public boolean isWebSocketEnabled()
true if WebSocket support is enabled.public long webSocketHeartbeatInterval()
long how often, in ms, that a WebSocket heartbeat should be sentpublic Set<String> webSocketProtocol()
Set<String> of WebSocket protocols supported.public String webSocketProtocolCSV()
String A comma separated value String with the WebSocket protocols supportedpublic boolean areCookiesNeeded()
JSESSIONID cookie will be set. This is used by some
load balancers to enable session stickyness.
true if a JSESSIONID cookie should be set.public String sockJsUrl()
String the url to the sockjs version to be used.public long sessionTimeout()
long the timeout in ms. The default is 5000ms.public long heartbeatInterval()
long how often, in ms, that a heartbeat should be sentpublic int maxStreamingBytesSize()
int the max number of bytes that can be written. Default is 131072.public boolean isTls()
true if transport layer security should be used.public String keyStore()
String the path to the keystore to be usedpublic String keyStorePassword()
String the password to the configured keystorepublic String toString()
toString in class Objectpublic static SockJsConfig.Builder withPrefix(String prefix)
prefix - the prefix/name of the SockJS service.
|
AeroGear Netty SockJS Codec 0.11.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||