net.jini.jeri.http
Class HttpEndpoint.Connection

java.lang.Object
  extended by com.sun.jini.jeri.internal.http.HttpClientConnection
      extended by 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.


Field Summary
private  String proxyHost
           
private  int proxyPort
           
 
Constructor Summary
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.
 
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 com.sun.jini.jeri.internal.http.HttpClientConnection
getSocket, newRequest, ping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxyHost

private final String proxyHost

proxyPort

private final int proxyPort
Constructor Detail

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
Method Detail

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.