com.sun.jini.discovery.internal
Class EndpointBasedClient.PrearrangedSocketFactory
java.lang.Object
javax.net.SocketFactory
com.sun.jini.discovery.internal.EndpointBasedClient.PrearrangedSocketFactory
- Enclosing class:
- EndpointBasedClient
private static class EndpointBasedClient.PrearrangedSocketFactory
- extends SocketFactory
Socket factory which returns a prearranged socket.
socket
private final Socket socket
EndpointBasedClient.PrearrangedSocketFactory
EndpointBasedClient.PrearrangedSocketFactory(Socket socket)
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.