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