org.jacorb.orb.factory

Class PortRangeSocketFactory

public class PortRangeSocketFactory extends AbstractSocketFactory

a SocketFactory implementation that allows to specify the range of local ports that should be used by a created socket. the factory will read the attributes jacorb.net.socket_factory.port.min and jacorb.net.socket_factory.port.max from the configuration and use the specified values to configure the created sockets.

Version: $Id: PortRangeSocketFactory.java,v 1.14 2006/11/24 14:15:37 alphonse.bendt Exp $

Author: Steve Osselton

Field Summary
static StringMAX_PROP
static StringMIN_PROP
Method Summary
voidconfigure(Configuration config)
SocketcreateSocket(String host, int port)
SocketdoCreateSocket(String host, int port, int timeout)
booleanisSSL(Socket socket)

Field Detail

MAX_PROP

public static final String MAX_PROP

MIN_PROP

public static final String MIN_PROP

Method Detail

configure

public void configure(Configuration config)

createSocket

public Socket createSocket(String host, int port)

doCreateSocket

public Socket doCreateSocket(String host, int port, int timeout)

isSSL

public boolean isSSL(Socket socket)