private final class HttpEndpoint.Connection extends HttpClientConnection
| Modifier and Type | Field and Description |
|---|---|
private String |
proxyHost |
private int |
proxyPort |
| Constructor and Description |
|---|
Connection(String host,
int port,
Constraints.Distilled distilled)
Creates a direct connection to given host/port.
|
Connection(String host,
int port,
String proxyHost,
int proxyPort,
boolean persist,
Constraints.Distilled distilled)
Creates a proxied connection to given host/port.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
checkConnectPermission() |
protected void |
idle()
Adds connection to idle connection cache, schedules timeout.
|
boolean |
shutdown(boolean force)
Attempts to close connection.
|
getSocket, newRequest, pingprivate final String proxyHost
private final int proxyPort
Connection(String host, int port, Constraints.Distilled distilled) throws IOException
IOExceptionConnection(String host, int port, String proxyHost, int proxyPort, boolean persist, Constraints.Distilled distilled) throws IOException
IOExceptionprotected void idle()
idle in class HttpClientConnectionpublic boolean shutdown(boolean force)
shutdown in interface TimedConnectionshutdown in class HttpClientConnectionvoid checkConnectPermission()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.