public class WebSocketClientConnectorConfig extends SslConfiguration
| Constructor and Description |
|---|
WebSocketClientConnectorConfig(String remoteAddress) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String key,
String value)
Add single headers.
|
void |
addHeaders(Map<String,String> headers)
Add multiple headers.
|
boolean |
containsHeader(String key)
Check whether a header is contained or not.
|
io.netty.handler.codec.http.HttpHeaders |
getHeaders()
Get all the headers.
|
int |
getIdleTimeoutInMillis()
Get idle timeout for WebSocket connection.
|
int |
getMaxFrameSize() |
String |
getRemoteAddress()
Get the remote address.
|
String |
getSubProtocolsStr()
Get sub protocols as a comma separated values string.
|
boolean |
isAutoRead() |
boolean |
isWebSocketCompressionEnabled() |
void |
setAutoRead(boolean autoRead) |
void |
setIdleTimeoutInMillis(int idleTimeoutInSeconds)
Set the idle timeout for WebSocket connection.
|
void |
setMaxFrameSize(int maxFrameSize) |
void |
setSubProtocols(String[] subProtocols)
Add sub protocols.
|
void |
setWebSocketCompressionEnabled(boolean webSocketCompressionEnabled) |
disableSsl, getCertPass, getClientSSLConfig, getKeyStoreFile, getKeyStorePass, getListenerSSLConfig, getParameters, getScheme, getStrictTransportSecurityHeader, setCacheSize, setCacheValidityPeriod, setCertPass, setClientCertificates, setClientKeyFile, setClientKeyPassword, setClientTrustCertificates, setHostNameVerificationEnabled, setKeyStoreFile, setKeyStorePass, setOcspStaplingEnabled, setParameters, setScheme, setServerCertificates, setServerKeyFile, setServerKeyPassword, setServerTrustCertificates, setSslHandshakeTimeOut, setSSLProtocol, setSslSessionTimeOut, setStrictTransportSecurityHeader, setTLSStoreType, setTrustStoreFile, setTrustStorePass, setTrustStoreType, setValidateCertEnabled, setVerifyClient, useJavaDefaultspublic WebSocketClientConnectorConfig(String remoteAddress)
public String getSubProtocolsStr()
public void setSubProtocols(String[] subProtocols)
subProtocols - a array of sub protocols.public boolean isAutoRead()
public void setAutoRead(boolean autoRead)
public String getRemoteAddress()
public void addHeaders(Map<String,String> headers)
headers - Headers map.public void addHeader(String key, String value)
key - Key of the header.value - Value of the header.public io.netty.handler.codec.http.HttpHeaders getHeaders()
public boolean containsHeader(String key)
key - key of the header.public int getIdleTimeoutInMillis()
public void setIdleTimeoutInMillis(int idleTimeoutInSeconds)
idleTimeoutInSeconds - the idle timeout in milli seconds.public int getMaxFrameSize()
public void setMaxFrameSize(int maxFrameSize)
public boolean isWebSocketCompressionEnabled()
public void setWebSocketCompressionEnabled(boolean webSocketCompressionEnabled)
Copyright © 2023 WSO2. All rights reserved.