public class PortRangeSocketFactory extends AbstractSocketFactory
Modifier and Type | Field and Description |
---|---|
static String |
MAX_PROP |
static String |
MIN_PROP |
logger
Constructor and Description |
---|
PortRangeSocketFactory() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration config) |
Socket |
createSocket(String host,
int port)
create a connected stream Socket.
|
protected Socket |
doCreateSocket(String host,
int port,
int timeout) |
boolean |
isSSL(Socket socket) |
createSocket
public static final String MIN_PROP
public static final String MAX_PROP
public void configure(Configuration config) throws ConfigurationException
configure
in interface Configurable
configure
in class AbstractSocketFactory
ConfigurationException
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
SocketFactory
host
- the host nameport
- the port numberIOException
UnknownHostException
public boolean isSSL(Socket socket)
protected Socket doCreateSocket(String host, int port, int timeout) throws IOException
doCreateSocket
in class AbstractSocketFactory
IOException
Copyright © 2017 JacORB. All rights reserved.