public final class SockJsConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SockJsConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 static SockJsConfig.Builder withPrefix(String prefix)
prefix - the prefix/name of the SockJS service.Copyright © 2014 JBoss by Red Hat. All Rights Reserved.