org.openorb.orb.net
Class ConfiguredSocketFactory

java.lang.Object
  extended by org.openorb.orb.net.ConfiguredSocketFactory
All Implemented Interfaces:
SocketFactory

public final class ConfiguredSocketFactory
extends java.lang.Object
implements SocketFactory

A socket factory that creates pre-configured sockets.

Version:
$Revision: 1.13 $ $Date: 2004/05/18 16:40:49 $
Author:
Richard G Clark, Michael Rumpf

Constructor Summary
ConfiguredSocketFactory(LoggerTeam logger, ORBLoader loader, java.lang.String prefix)
          Constructs a new socket factory.
 
Method Summary
 java.net.ServerSocket createServerSocket(java.net.InetAddress host, int port)
          Creates a new socket listening to the specified host and port.
 java.net.Socket createSocket(java.net.InetAddress host, int port)
          Creates a new socket to the specified host and port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfiguredSocketFactory

public ConfiguredSocketFactory(LoggerTeam logger,
                               ORBLoader loader,
                               java.lang.String prefix)
Constructs a new socket factory.

Parameters:
logger - the logger team to used
loader - the orb loader to be used
prefix - the property name prefix to use, e.g. "iiop"
Throws:
org.omg.CORBA.INITIALIZE - if problems occured during setup
Method Detail

createServerSocket

public java.net.ServerSocket createServerSocket(java.net.InetAddress host,
                                                int port)
                                         throws java.io.IOException
Description copied from interface: SocketFactory
Creates a new socket listening to the specified host and port.

Specified by:
createServerSocket in interface SocketFactory
Parameters:
host - the local host
port - the local port
Returns:
a configured ServerSocket instance.
Throws:
java.io.IOException - if an I/O error occurs when creating the socket.
See Also:
SocketFactory.createServerSocket(InetAddress,int)

createSocket

public java.net.Socket createSocket(java.net.InetAddress host,
                                    int port)
                             throws java.io.IOException
Description copied from interface: SocketFactory
Creates a new socket to the specified host and port.

Specified by:
createSocket in interface SocketFactory
Parameters:
host - the remote host
port - the remote port
Returns:
a configured Socket instance.
Throws:
java.io.IOException - if an I/O error occurs when creating the socket.
See Also:
SocketFactory.createSocket(InetAddress,int)