com.infoengine.au
Class DefaultSocketFactory

java.lang.Object
  extended bycom.infoengine.au.DefaultSocketFactory
All Implemented Interfaces:
SocketFactory

public class DefaultSocketFactory
extends Object
implements SocketFactory


Constructor Summary
DefaultSocketFactory()
          Constructor
 
Method Summary
 Socket createSocket(String service, String host, int port)
          Creates a socket that establishes a network connection to a named service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSocketFactory

public DefaultSocketFactory()
Constructor

Method Detail

createSocket

public Socket createSocket(String service,
                           String host,
                           int port)
                    throws IOException,
                           UnknownHostException
Creates a socket that establishes a network connection to a named service.

Specified by:
createSocket in interface SocketFactory
Parameters:
service - The name of the Info*Engine service to which the socket will be connected.
host - The name of the host on which the service instance resides.
port - The port number on which the service instance listens for connection requests.
Returns:
The connected socket.
Throws:
IOEException - if the connection can not be established
UnknownHostException - if the host is not known
IOException