public class TelnetTermOptions extends NetServerOptions
NetServerOptions
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CHARSET |
static boolean |
DEFAULT_IN_BINARY |
static String |
DEFAULT_INPUTRC |
static boolean |
DEFAULT_OUT_BINARY |
DEFAULT_ACCEPT_BACKLOG, DEFAULT_CLIENT_AUTH, DEFAULT_HOST, DEFAULT_PORT
DEFAULT_IDLE_TIMEOUT, DEFAULT_SO_LINGER, DEFAULT_SSL, DEFAULT_SSL_ENGINE, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_NO_DELAY, DEFAULT_USE_ALPN, DEFAULT_USE_POOLED_BUFFERS
DEFAULT_LOG_ENABLED, DEFAULT_RECEIVE_BUFFER_SIZE, DEFAULT_REUSE_ADDRESS, DEFAULT_SEND_BUFFER_SIZE, DEFAULT_TRAFFIC_CLASS
Constructor and Description |
---|
TelnetTermOptions() |
TelnetTermOptions(JsonObject json) |
TelnetTermOptions(TelnetTermOptions other) |
Modifier and Type | Method and Description |
---|---|
TelnetTermOptions |
addCrlPath(String crlPath)
Add a CRL path
|
TelnetTermOptions |
addCrlValue(Buffer crlValue)
Add a CRL value
|
TelnetTermOptions |
addEnabledCipherSuite(String suite)
Add an enabled cipher suite
|
String |
getCharset() |
boolean |
getInBinary() |
String |
getIntputrc() |
boolean |
getOutBinary() |
TelnetTermOptions |
setAcceptBacklog(int acceptBacklog)
Set the accept back log
|
TelnetTermOptions |
setCharset(String charset)
Set the charset to use when binary mode is active, see
setInBinary(boolean) and setOutBinary(boolean) . |
TelnetTermOptions |
setClientAuthRequired(boolean clientAuthRequired)
Set whether client auth is required
|
TelnetTermOptions |
setHost(String host)
Set the host
|
TelnetTermOptions |
setIdleTimeout(int idleTimeout)
Set the idle timeout, in seconds.
|
TelnetTermOptions |
setInBinary(boolean inBinary)
Set the telnet connection to negociate binary data format when receiving from the client, the default value is true.
|
TelnetTermOptions |
setIntputrc(String intputrc)
The path of the inputrc config.
|
TelnetTermOptions |
setKeyStoreOptions(JksOptions options)
Set the key/cert options in jks format, aka Java keystore.
|
TelnetTermOptions |
setOutBinary(boolean outBinary)
Set the telnet connection to negociate binary data format when sending to the client, the default value is true.
|
TelnetTermOptions |
setPemKeyCertOptions(PemKeyCertOptions options)
Set the key/cert store options in pem format.
|
TelnetTermOptions |
setPemTrustOptions(PemTrustOptions options)
Set the trust options in pem format
|
TelnetTermOptions |
setPfxKeyCertOptions(PfxOptions options)
Set the key/cert options in pfx format.
|
TelnetTermOptions |
setPfxTrustOptions(PfxOptions options)
Set the trust options in pfx format
|
TelnetTermOptions |
setPort(int port)
Set the port
|
TelnetTermOptions |
setReceiveBufferSize(int receiveBufferSize)
Set the TCP receive buffer size
|
TelnetTermOptions |
setReuseAddress(boolean reuseAddress)
Set the value of reuse address
|
TelnetTermOptions |
setSendBufferSize(int sendBufferSize)
Set the TCP send buffer size
|
TelnetTermOptions |
setSoLinger(int soLinger)
Set whether SO_linger keep alive is enabled
|
TelnetTermOptions |
setSsl(boolean ssl)
Set whether SSL/TLS is enabled
|
TelnetTermOptions |
setTcpKeepAlive(boolean tcpKeepAlive)
Set whether TCP keep alive is enabled
|
TelnetTermOptions |
setTcpNoDelay(boolean tcpNoDelay)
Set whether TCP no delay is enabled
|
TelnetTermOptions |
setTrafficClass(int trafficClass)
Set the value of traffic class
|
TelnetTermOptions |
setTrustStoreOptions(JksOptions options)
Set the trust options in jks format, aka Java trustore
|
TelnetTermOptions |
setUsePooledBuffers(boolean usePooledBuffers)
Set whether Netty pooled buffers are enabled
|
addEnabledSecureTransportProtocol, equals, getAcceptBacklog, getClientAuth, getHost, getPort, hashCode, isClientAuthRequired, setClientAuth, setJdkSslEngineOptions, setKeyCertOptions, setLogActivity, setOpenSslEngineOptions, setSslEngineOptions, setTrustOptions, setUseAlpn
getCrlPaths, getCrlValues, getEnabledCipherSuites, getEnabledSecureTransportProtocols, getIdleTimeout, getKeyCertOptions, getSoLinger, getSslEngineOptions, getTrustOptions, isSsl, isTcpKeepAlive, isTcpNoDelay, isUseAlpn, isUsePooledBuffers
getLogActivity, getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress
public static final boolean DEFAULT_IN_BINARY
public static final boolean DEFAULT_OUT_BINARY
public static final String DEFAULT_CHARSET
public static final String DEFAULT_INPUTRC
public TelnetTermOptions()
public TelnetTermOptions(TelnetTermOptions other)
public TelnetTermOptions(JsonObject json)
public TelnetTermOptions setSendBufferSize(int sendBufferSize)
NetworkOptions
setSendBufferSize
in class NetServerOptions
sendBufferSize
- the buffers size, in bytespublic TelnetTermOptions setReceiveBufferSize(int receiveBufferSize)
NetworkOptions
setReceiveBufferSize
in class NetServerOptions
receiveBufferSize
- the buffers size, in bytespublic TelnetTermOptions setReuseAddress(boolean reuseAddress)
NetworkOptions
setReuseAddress
in class NetServerOptions
reuseAddress
- the value of reuse addresspublic TelnetTermOptions setTrafficClass(int trafficClass)
NetworkOptions
setTrafficClass
in class NetServerOptions
trafficClass
- the value of traffic classpublic TelnetTermOptions setTcpNoDelay(boolean tcpNoDelay)
TCPSSLOptions
setTcpNoDelay
in class NetServerOptions
tcpNoDelay
- true if TCP no delay is enabled (Nagle disabled)public TelnetTermOptions setTcpKeepAlive(boolean tcpKeepAlive)
TCPSSLOptions
setTcpKeepAlive
in class NetServerOptions
tcpKeepAlive
- true if TCP keep alive is enabledpublic TelnetTermOptions setSoLinger(int soLinger)
TCPSSLOptions
setSoLinger
in class NetServerOptions
soLinger
- true if SO_linger is enabledpublic TelnetTermOptions setUsePooledBuffers(boolean usePooledBuffers)
TCPSSLOptions
setUsePooledBuffers
in class NetServerOptions
usePooledBuffers
- true if pooled buffers enabledpublic TelnetTermOptions setIdleTimeout(int idleTimeout)
TCPSSLOptions
setIdleTimeout
in class NetServerOptions
idleTimeout
- the timeout, in secondspublic TelnetTermOptions setSsl(boolean ssl)
TCPSSLOptions
setSsl
in class NetServerOptions
ssl
- true if enabledpublic TelnetTermOptions setKeyStoreOptions(JksOptions options)
TCPSSLOptions
setKeyStoreOptions
in class NetServerOptions
options
- the key store in jks formatpublic TelnetTermOptions setPfxKeyCertOptions(PfxOptions options)
TCPSSLOptions
setPfxKeyCertOptions
in class NetServerOptions
options
- the key cert options in pfx formatpublic TelnetTermOptions setPemKeyCertOptions(PemKeyCertOptions options)
TCPSSLOptions
setPemKeyCertOptions
in class NetServerOptions
options
- the options in pem formatpublic TelnetTermOptions setTrustStoreOptions(JksOptions options)
TCPSSLOptions
setTrustStoreOptions
in class NetServerOptions
options
- the trust options in jks formatpublic TelnetTermOptions setPfxTrustOptions(PfxOptions options)
TCPSSLOptions
setPfxTrustOptions
in class NetServerOptions
options
- the trust options in pfx formatpublic TelnetTermOptions setPemTrustOptions(PemTrustOptions options)
TCPSSLOptions
setPemTrustOptions
in class NetServerOptions
options
- the trust options in pem formatpublic TelnetTermOptions addEnabledCipherSuite(String suite)
TCPSSLOptions
addEnabledCipherSuite
in class NetServerOptions
suite
- the suitepublic TelnetTermOptions addCrlPath(String crlPath) throws NullPointerException
TCPSSLOptions
addCrlPath
in class NetServerOptions
crlPath
- the pathNullPointerException
public TelnetTermOptions addCrlValue(Buffer crlValue) throws NullPointerException
TCPSSLOptions
addCrlValue
in class NetServerOptions
crlValue
- the valueNullPointerException
public TelnetTermOptions setAcceptBacklog(int acceptBacklog)
NetServerOptions
setAcceptBacklog
in class NetServerOptions
acceptBacklog
- accept backlogpublic TelnetTermOptions setHost(String host)
NetServerOptions
setHost
in class NetServerOptions
host
- the hostpublic TelnetTermOptions setPort(int port)
NetServerOptions
setPort
in class NetServerOptions
port
- the portpublic TelnetTermOptions setClientAuthRequired(boolean clientAuthRequired)
NetServerOptions
setClientAuthRequired
in class NetServerOptions
clientAuthRequired
- true if client auth is requiredpublic boolean getOutBinary()
public TelnetTermOptions setOutBinary(boolean outBinary)
outBinary
- the out binary valuepublic boolean getInBinary()
public TelnetTermOptions setInBinary(boolean inBinary)
inBinary
- the in binary valuepublic String getCharset()
public TelnetTermOptions setCharset(String charset)
setInBinary(boolean)
and setOutBinary(boolean)
.charset
- the charsetpublic String getIntputrc()
public TelnetTermOptions setIntputrc(String intputrc)
intputrc
- the path of the inputrc configCopyright © 2016. All rights reserved.