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_PROXY_PROTOCOL_TIMEOUT, DEFAULT_PROXY_PROTOCOL_TIMEOUT_TIME_UNIT, DEFAULT_REGISTER_WRITE_HANDLER, DEFAULT_SNI, DEFAULT_USE_PROXY_PROTOCOL
DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS, DEFAULT_IDLE_TIMEOUT, DEFAULT_IDLE_TIMEOUT_TIME_UNIT, DEFAULT_READ_IDLE_TIMEOUT, DEFAULT_SO_LINGER, DEFAULT_SSL, DEFAULT_SSL_ENGINE, DEFAULT_SSL_HANDSHAKE_TIMEOUT, DEFAULT_SSL_HANDSHAKE_TIMEOUT_TIME_UNIT, DEFAULT_TCP_CORK, DEFAULT_TCP_FAST_OPEN, DEFAULT_TCP_KEEAPLIVE_INTERVAL_SECONDS, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_KEEPALIVE_COUNT, DEFAULT_TCP_KEEPALIVE_IDLE_SECONDS, DEFAULT_TCP_NO_DELAY, DEFAULT_TCP_QUICKACK, DEFAULT_TCP_USER_TIMEOUT, DEFAULT_USE_ALPN, DEFAULT_WRITE_IDLE_TIMEOUT
DEFAULT_LOG_ACTIVITY_FORMAT, DEFAULT_LOG_ENABLED, DEFAULT_RECEIVE_BUFFER_SIZE, DEFAULT_REUSE_ADDRESS, DEFAULT_REUSE_PORT, 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, appended to the ordered suites.
|
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 |
setHost(String host)
Set the host
|
TelnetTermOptions |
setIdleTimeout(int idleTimeout)
Set the idle timeout, default time unit is 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 truststore
|
addEnabledSecureTransportProtocol, getAcceptBacklog, getClientAuth, getHost, getPort, getProxyProtocolTimeout, getProxyProtocolTimeoutUnit, getTrafficShapingOptions, isRegisterWriteHandler, isSni, isUseProxyProtocol, removeEnabledCipherSuite, removeEnabledSecureTransportProtocol, setActivityLogDataFormat, setClientAuth, setEnabledSecureTransportProtocols, setIdleTimeoutUnit, setJdkSslEngineOptions, setKeyCertOptions, setLogActivity, setOpenSslEngineOptions, setProxyProtocolTimeout, setProxyProtocolTimeoutUnit, setReadIdleTimeout, setRegisterWriteHandler, setReusePort, setSni, setSslEngineOptions, setSslHandshakeTimeout, setSslHandshakeTimeoutUnit, setTcpCork, setTcpFastOpen, setTcpQuickAck, setTrafficShapingOptions, setTrustOptions, setUseAlpn, setUseProxyProtocol, setWriteIdleTimeout, toJson
getCrlPaths, getCrlValues, getEnabledCipherSuites, getEnabledSecureTransportProtocols, getIdleTimeout, getIdleTimeoutUnit, getJdkSslEngineOptions, getKeyCertOptions, getKeyStoreOptions, getOpenSslEngineOptions, getPemKeyCertOptions, getPemTrustOptions, getPfxKeyCertOptions, getPfxTrustOptions, getReadIdleTimeout, getSoLinger, getSslEngineOptions, getSslHandshakeTimeout, getSslHandshakeTimeoutUnit, getSslOptions, getTcpKeepAliveCount, getTcpKeepAliveIdleSeconds, getTcpKeepAliveIntervalSeconds, getTcpUserTimeout, getTrustOptions, getTrustStoreOptions, getWriteIdleTimeout, isSsl, isTcpCork, isTcpFastOpen, isTcpKeepAlive, isTcpNoDelay, isTcpQuickAck, isUseAlpn, setTcpKeepAliveCount, setTcpKeepAliveIdleSeconds, setTcpKeepAliveIntervalSeconds, setTcpUserTimeout
getActivityLogDataFormat, getLogActivity, getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress, isReusePort
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 setIdleTimeout(int idleTimeout)
TCPSSLOptions
TCPSSLOptions.setIdleTimeoutUnit(TimeUnit)
setIdleTimeout
in class NetServerOptions
idleTimeout
- the timeoutpublic 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 suiteTCPSSLOptions.getEnabledCipherSuites()
public 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 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 © 2024 Eclipse. All rights reserved.