private final class HttpEndpoint.Connection extends HttpClientConnection
Modifier and Type | Field and Description |
---|---|
private String |
proxyHost |
private int |
proxyPort |
Constructor and Description |
---|
HttpEndpoint.Connection(String host,
int port,
Constraints.Distilled distilled)
Creates a direct connection to given host/port.
|
HttpEndpoint.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, ping
private final String proxyHost
private final int proxyPort
HttpEndpoint.Connection(String host, int port, Constraints.Distilled distilled) throws IOException
IOException
HttpEndpoint.Connection(String host, int port, String proxyHost, int proxyPort, boolean persist, Constraints.Distilled distilled) throws IOException
IOException
protected void idle()
idle
in class HttpClientConnection
public boolean shutdown(boolean force)
shutdown
in interface TimedConnection
shutdown
in class HttpClientConnection
void checkConnectPermission()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.