com.epam.common.transport.server
Class ConnectAddressSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by com.epam.common.transport.server.ConnectAddressSocketFactory

public class ConnectAddressSocketFactory
extends SocketFactory


Constructor Summary
ConnectAddressSocketFactory(String connectAddress)
           
 
Method Summary
 boolean available(int port)
           
 Socket createSocket(InetAddress inetAddress, int port)
           
 Socket createSocket(InetAddress inetAddress, int port, InetAddress localAddress, int localPort)
           
 Socket createSocket(String host, int port)
           
 Socket createSocket(String host, int port, InetAddress localAddress, int localPort)
           
 int getNextAvailablePort()
           
 
Methods inherited from class javax.net.SocketFactory
createSocket, getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectAddressSocketFactory

public ConnectAddressSocketFactory(String connectAddress)
Method Detail

createSocket

public Socket createSocket(String host,
                           int port)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException

createSocket

public Socket createSocket(String host,
                           int port,
                           InetAddress localAddress,
                           int localPort)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException

createSocket

public Socket createSocket(InetAddress inetAddress,
                           int port)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException

createSocket

public Socket createSocket(InetAddress inetAddress,
                           int port,
                           InetAddress localAddress,
                           int localPort)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException

available

public boolean available(int port)

getNextAvailablePort

public int getNextAvailablePort()


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.