net.jini.jeri.ssl
Class HttpsEndpoint.HttpClient

java.lang.Object
  extended by com.sun.jini.jeri.internal.http.HttpClientConnection
      extended by net.jini.jeri.ssl.HttpsEndpoint.HttpClient
All Implemented Interfaces:
TimedConnection
Enclosing class:
HttpsEndpoint

private static final class HttpsEndpoint.HttpClient
extends HttpClientConnection

Subclass of HttpClientConnection that closes the associated connection when it shuts down and moves it to the idle list when it becomes idle.


Field Summary
private  HttpsEndpoint.HttpsConnection connection
          The associated secure connection.
 
Constructor Summary
HttpsEndpoint.HttpClient(String host, int port, HttpsEndpoint.HttpsConnection connection)
           
HttpsEndpoint.HttpClient(String targetHost, int targetPort, String proxyHost, int proxyPort, HttpsEndpoint.HttpsConnection connection)
           
 
Method Summary
protected  void idle()
          Tells the connection that it is idle.
 boolean shutdown(boolean force)
          Closes the associated secure 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

connection

private final HttpsEndpoint.HttpsConnection connection
The associated secure connection.

Constructor Detail

HttpsEndpoint.HttpClient

HttpsEndpoint.HttpClient(String host,
                         int port,
                         HttpsEndpoint.HttpsConnection connection)
                   throws IOException
Throws:
IOException

HttpsEndpoint.HttpClient

HttpsEndpoint.HttpClient(String targetHost,
                         int targetPort,
                         String proxyHost,
                         int proxyPort,
                         HttpsEndpoint.HttpsConnection connection)
                   throws IOException
Throws:
IOException
Method Detail

idle

protected void idle()
Tells the connection that it is idle.

Overrides:
idle in class HttpClientConnection

shutdown

public boolean shutdown(boolean force)
Closes the associated secure connection.

Specified by:
shutdown in interface TimedConnection
Overrides:
shutdown in class HttpClientConnection


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.