public class TcpTransport extends AbstractTransport
acceptor, DEFAULT_BACKLOG_NB, DEFAULT_NB_THREADS, LOCAL_HOST| Constructor and Description |
|---|
TcpTransport()
Creates an instance of the TcpTransport class
|
TcpTransport(int tcpPort)
Creates an instance of the TcpTransport class on localhost
|
TcpTransport(int tcpPort,
int nbThreads)
Creates an instance of the TcpTransport class on localhost
|
TcpTransport(int tcpPort,
int nbThreads,
int backLog)
Creates an instance of the TcpTransport class on localhost
|
TcpTransport(String address,
int tcpPort)
Creates an instance of the TcpTransport class
|
TcpTransport(String address,
int tcpPort,
int nbThreads,
int backLog)
Creates an instance of the TcpTransport class
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.mina.transport.socket.SocketAcceptor |
getAcceptor() |
List<String> |
getCipherSuite() |
List<String> |
getEnabledProtocols() |
void |
init()
Initialize the Acceptor if needed
|
boolean |
isNeedClientAuth() |
boolean |
isWantClientAuth() |
void |
setEnabledCiphers(List<String> cipherSuite)
Set the list of enabled ciphers
|
void |
setEnabledProtocols(List<String> enabledProtocols)
Set the list of enabled protocols
|
void |
setNeedClientAuth(boolean needClientAuth)
Set the needClientAuth SSL flag
|
void |
setWantClientAuth(boolean wantClientAuth)
Set the wantClientAuth SSL flag
|
String |
toString() |
enableSSL, getAddress, getBackLog, getEnableSSL, getNbThreads, getPort, isSSLEnabled, setAddress, setBackLog, setEnableSSL, setNbThreads, setPortpublic TcpTransport()
public TcpTransport(int tcpPort)
tcpPort - The portpublic TcpTransport(int tcpPort,
int nbThreads)
tcpPort - The portnbThreads - The number of threads to create in the acceptorpublic TcpTransport(String address, int tcpPort)
address - The addresstcpPort - The portpublic TcpTransport(int tcpPort,
int nbThreads,
int backLog)
tcpPort - The portnbThreads - The number of threads to create in the acceptorbackLog - The queue size for incoming messages, waiting for the
acceptor to be readyUnknownHostExceptionpublic TcpTransport(String address, int tcpPort, int nbThreads, int backLog)
address - The addresstcpPort - The portnbThreads - The number of threads to create in the acceptorbackLog - The queue size for incoming messages, waiting for the
acceptor to be readypublic void init()
init in interface Transportinit in class AbstractTransportpublic org.apache.mina.transport.socket.SocketAcceptor getAcceptor()
AbstractTransportgetAcceptor in interface TransportgetAcceptor in class AbstractTransportpublic void setNeedClientAuth(boolean needClientAuth)
needClientAuth - the flag to setpublic boolean isNeedClientAuth()
true if the NeedClientAuth SSL flag is setpublic void setWantClientAuth(boolean wantClientAuth)
wantClientAuth - the flag to setpublic boolean isWantClientAuth()
true if the WantClientAuth SSL flag is setpublic List<String> getEnabledProtocols()
public void setEnabledProtocols(List<String> enabledProtocols)
enabledProtocols - The list of enabled protocolspublic void setEnabledCiphers(List<String> cipherSuite)
enabledCiphers - The list of enabled cipherspublic String toString()
toString in class AbstractTransportObject.toString()Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.