public class PortRangeServerSocketFactory extends java.lang.Object implements ServerSocketFactory, org.jacorb.config.Configurable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MAX_PROP |
static java.lang.String |
MIN_PROP |
| Constructor and Description |
|---|
PortRangeServerSocketFactory() |
PortRangeServerSocketFactory(ServerSocketFactory delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.jacorb.config.Configuration config) |
java.net.ServerSocket |
createServerSocket(int port) |
java.net.ServerSocket |
createServerSocket(int port,
int backlog)
Returns a server socket which uses all network interfaces on
the host, and is bound to the specified port.
|
java.net.ServerSocket |
createServerSocket(int port,
int backlog,
java.net.InetAddress ifAddress)
Returns a server socket which uses all network interfaces on
the host, is bound to a the specified port, and uses the
specified connection backlog.
|
protected int |
getPortProperty(org.jacorb.config.Configuration config,
java.lang.String name) |
public static final java.lang.String MIN_PROP
public static final java.lang.String MAX_PROP
public PortRangeServerSocketFactory(ServerSocketFactory delegate)
public PortRangeServerSocketFactory()
public void configure(org.jacorb.config.Configuration config)
throws org.jacorb.config.ConfigurationException
configure in interface org.jacorb.config.Configurableorg.jacorb.config.ConfigurationExceptionpublic java.net.ServerSocket createServerSocket(int port,
int backlog)
throws java.io.IOException
ServerSocketFactorycreateServerSocket in interface ServerSocketFactoryport - - the port to listen tobacklog - - how many connections are queuedjava.io.IOException - - for networking errorspublic java.net.ServerSocket createServerSocket(int port,
int backlog,
java.net.InetAddress ifAddress)
throws java.io.IOException
ServerSocketFactorycreateServerSocket in interface ServerSocketFactoryport - - the port to listen tobacklog - - how many connections are queuedjava.io.IOException - - for networking errorspublic java.net.ServerSocket createServerSocket(int port)
throws java.net.BindException
createServerSocket in interface ServerSocketFactoryjava.net.BindExceptionprotected int getPortProperty(org.jacorb.config.Configuration config,
java.lang.String name)
throws org.jacorb.config.ConfigurationException
org.jacorb.config.ConfigurationException