public static class TlsWebsocketListener.Builder extends WebsocketListener.Builder
allowExtensions, bindAddress, clientWriteBufferProperties, connectOverloadProtectionProperties, path, port, proxyProtocolSupported, socketOptionsProperties, subprotocols| Constructor and Description |
|---|
TlsWebsocketListener.Builder() |
| Modifier and Type | Method and Description |
|---|---|
TlsWebsocketListener.Builder |
allowExtensions(boolean allowExtensions)
Sets if websocket extensions should be allowed or not
|
TlsWebsocketListener.Builder |
bindAddress(String bindAddress)
Sets the bind address of the TLS websocket listener
|
TlsWebsocketListener |
build()
Creates the TLS Websocket Listener
|
TlsWebsocketListener.Builder |
path(String path)
Sets the websocket path of the TLS websocket listener
|
TlsWebsocketListener.Builder |
port(int port)
Sets the port of the TLS websocket listener
|
TlsWebsocketListener.Builder |
proxyProtocolSupported(boolean proxyProtocolSupported)
Set this to true if you want this listener to support the PROXY protocol
|
TlsWebsocketListener.Builder |
setClientWriteBufferProperties(ClientWriteBufferProperties clientWriteBufferProperties)
Set the
ClientWriteBufferProperties of this listener |
TlsWebsocketListener.Builder |
setConnectOverloadProtectionProperties(ConnectOverloadProtectionProperties connectOverloadProtectionProperties)
Set the
ConnectOverloadProtectionProperties of this listener |
TlsWebsocketListener.Builder |
setSocketOptionsProperties(SocketOptionsProperties socketOptionsProperties)
Set the
SocketOptionsProperties of this listener |
TlsWebsocketListener.Builder |
setSubprotocols(List<String> subprotocols)
Sets a list of subprotocols the websocket listener should support.
|
TlsWebsocketListener.Builder |
tls(Tls tls)
Sets the TLS configuration of the TLS Websocket listener
|
public TlsWebsocketListener.Builder tls(Tls tls)
tls - the TLS configurationpublic TlsWebsocketListener.Builder port(int port)
port in class WebsocketListener.Builderport - the portpublic TlsWebsocketListener.Builder bindAddress(String bindAddress)
bindAddress in class WebsocketListener.BuilderbindAddress - the bind addresspublic TlsWebsocketListener.Builder path(String path)
path in class WebsocketListener.Builderpath - the pathpublic TlsWebsocketListener.Builder allowExtensions(boolean allowExtensions)
allowExtensions in class WebsocketListener.BuilderallowExtensions - if websocket extensions should be allowed or notpublic TlsWebsocketListener.Builder setSubprotocols(List<String> subprotocols)
setSubprotocols in class WebsocketListener.Buildersubprotocols - a list of websocket subprotocolspublic TlsWebsocketListener.Builder proxyProtocolSupported(boolean proxyProtocolSupported)
proxyProtocolSupported in class WebsocketListener.BuilderproxyProtocolSupported - if this listener should be able to utilize the PROXY protocolpublic TlsWebsocketListener.Builder setSocketOptionsProperties(@Nullable SocketOptionsProperties socketOptionsProperties)
SocketOptionsProperties of this listenersetSocketOptionsProperties in class WebsocketListener.BuildersocketOptionsProperties - a configuration of SocketOptionsProperties for this listener or null to use the defaultpublic TlsWebsocketListener.Builder setConnectOverloadProtectionProperties(@Nullable ConnectOverloadProtectionProperties connectOverloadProtectionProperties)
ConnectOverloadProtectionProperties of this listenersetConnectOverloadProtectionProperties in class WebsocketListener.BuilderconnectOverloadProtectionProperties - a configuration of ConnectOverloadProtectionProperties for this listener or null to deactivate connect overload protectionpublic TlsWebsocketListener.Builder setClientWriteBufferProperties(@Nullable ClientWriteBufferProperties clientWriteBufferProperties)
ClientWriteBufferProperties of this listenersetClientWriteBufferProperties in class WebsocketListener.BuilderclientWriteBufferProperties - a configuration of ClientWriteBufferProperties for this listener or null to use the defaultpublic TlsWebsocketListener build()
build in class WebsocketListener.BuilderCopyright © 2013-2018 dc-square GmbH. All Rights Reserved.