|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jini.jeri.http.HttpEndpoint.SocketFactoryAdapter
private static final class HttpEndpoint.SocketFactoryAdapter
SocketFactory -> HttpClientSocketFactory adapter.
Field Summary | |
---|---|
private Constraints.Distilled |
distilled
|
private SocketFactory |
sf
|
Constructor Summary | |
---|---|
HttpEndpoint.SocketFactoryAdapter(SocketFactory sf,
Constraints.Distilled distilled)
|
Method Summary | |
---|---|
private Socket |
connectToHost(String host,
int port,
Constraints.Distilled distilled)
Returns a socket connected to the specified host and port, according to the specified constraints. |
private Socket |
connectToSocketAddress(SocketAddress socketAddress,
Constraints.Distilled distilled)
Returns a socket connected to the specified address, with a timeout governed by the specified constraints. |
Socket |
createSocket(String host,
int port)
Creates client socket connected to the given host and port. |
Socket |
createTunnelSocket(Socket s)
Creates layered socket on top of given base socket, for use when tunneling HTTP messages through a proxy. |
private Socket |
newSocket()
Returns a new unconnected socket, using this endpoint's socket factory if non-null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final SocketFactory sf
private final Constraints.Distilled distilled
Constructor Detail |
---|
HttpEndpoint.SocketFactoryAdapter(SocketFactory sf, Constraints.Distilled distilled)
Method Detail |
---|
public Socket createSocket(String host, int port) throws IOException
HttpClientSocketFactory
createSocket
in interface HttpClientSocketFactory
IOException
private Socket connectToHost(String host, int port, Constraints.Distilled distilled) throws IOException
IOException
private Socket connectToSocketAddress(SocketAddress socketAddress, Constraints.Distilled distilled) throws IOException
IOException
private Socket newSocket() throws IOException
IOException
public Socket createTunnelSocket(Socket s) throws IOException
HttpClientSocketFactory
createTunnelSocket
in interface HttpClientSocketFactory
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |