private static class EndpointBasedClient.PrearrangedSocketFactory extends SocketFactory
| Constructor and Description |
|---|
PrearrangedSocketFactory(Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
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() |
getDefaultprivate final Socket socket
PrearrangedSocketFactory(Socket socket)
public Socket createSocket() throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress host, int port, InetAddress localHost, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.