net.jini.jeri.http
Class HttpEndpoint.Connection
java.lang.Object
com.sun.jini.jeri.internal.http.HttpClientConnection
net.jini.jeri.http.HttpEndpoint.Connection
- All Implemented Interfaces:
- TimedConnection
- Enclosing class:
- HttpEndpoint
private final class HttpEndpoint.Connection
- extends HttpClientConnection
HTTP connection for sending requests.
Method Summary |
(package private) void |
checkConnectPermission()
|
protected void |
idle()
Adds connection to idle connection cache, schedules timeout. |
boolean |
shutdown(boolean force)
Attempts to close connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
proxyHost
private final String proxyHost
proxyPort
private final int proxyPort
HttpEndpoint.Connection
HttpEndpoint.Connection(String host,
int port,
Constraints.Distilled distilled)
throws IOException
- Creates a direct connection to given host/port.
- Throws:
IOException
HttpEndpoint.Connection
HttpEndpoint.Connection(String host,
int port,
String proxyHost,
int proxyPort,
boolean persist,
Constraints.Distilled distilled)
throws IOException
- Creates a proxied connection to given host/port.
- Throws:
IOException
idle
protected void idle()
- Adds connection to idle connection cache, schedules timeout.
- Overrides:
idle
in class HttpClientConnection
shutdown
public boolean shutdown(boolean force)
- Attempts to close connection.
- Specified by:
shutdown
in interface TimedConnection
- Overrides:
shutdown
in class HttpClientConnection
checkConnectPermission
void checkConnectPermission()
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.