com.sun.jini.discovery.internal
Class EndpointBasedClient.PrearrangedSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by com.sun.jini.discovery.internal.EndpointBasedClient.PrearrangedSocketFactory
Enclosing class:
EndpointBasedClient

private static class EndpointBasedClient.PrearrangedSocketFactory
extends SocketFactory

Socket factory which returns a prearranged socket.


Field Summary
private  Socket socket
           
 
Constructor Summary
EndpointBasedClient.PrearrangedSocketFactory(Socket socket)
           
 
Method Summary
 Socket createSocket()
           
 Socket createSocket(InetAddress host, int port)
           
 Socket createSocket(InetAddress host, int port, InetAddress localHost, int localPort)
           
 Socket createSocket(String host, int port)
           
 Socket createSocket(String host, int port, InetAddress localHost, int localPort)
           
 String toString()
           
 
Methods inherited from class javax.net.SocketFactory
getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

socket

private final Socket socket
Constructor Detail

EndpointBasedClient.PrearrangedSocketFactory

EndpointBasedClient.PrearrangedSocketFactory(Socket socket)
Method Detail

createSocket

public Socket createSocket()
                    throws IOException
Overrides:
createSocket in class SocketFactory
Throws:
IOException

createSocket

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

createSocket

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

createSocket

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

createSocket

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

toString

public String toString()
Overrides:
toString in class Object


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.