public abstract class AbstractSocketFactory extends java.lang.Object implements SocketFactory, org.jacorb.config.Configurable
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AbstractSocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.jacorb.config.Configuration configuration) |
java.net.Socket |
createSocket(java.lang.String host,
int port,
int timeout)
to ensure we throw the correct exception in case a timeout occurs we provide
a final implementation of this method here, delegate to subclass-specific implementations
and handle the correct conversion of the exception in one place.
|
protected abstract java.net.Socket |
doCreateSocket(java.lang.String host,
int port,
int timeout) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSocket, isSSLpublic void configure(org.jacorb.config.Configuration configuration)
throws org.jacorb.config.ConfigurationException
configure in interface org.jacorb.config.Configurableorg.jacorb.config.ConfigurationExceptionpublic final java.net.Socket createSocket(java.lang.String host,
int port,
int timeout)
throws java.net.UnknownHostException,
java.io.IOException
createSocket in interface SocketFactoryhost - the host nameport - the port numbertimeout - the timeout value to be used in millisecondsjava.io.IOExceptionjava.net.UnknownHostExceptionprotected abstract java.net.Socket doCreateSocket(java.lang.String host,
int port,
int timeout)
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOExceptionjava.net.UnknownHostException