org.apache.http
Interface HttpProxyConnection

All Superinterfaces:
HttpClientConnection, HttpConnection
All Known Implementing Classes:
DefaultHttpProxyConnection

public interface HttpProxyConnection
extends HttpClientConnection

An HTTP connection through a proxy. The semantics of

Since:
4.0
Version:
$Revision: 391135 $
Author:
Oleg Kalnichevski

Method Summary
 HttpHost getTunnelTarget()
          Returns the target host as provided by
 boolean isSecure()
          Checks if the tunnel uses a secure socket.
 boolean isTunnelActive()
          Checks if
 void tunnelTo(HttpHost targetHost, HttpParams params)
          After this connection is opened to the proxy, this method may be called to create a new connection over it.
 
Methods inherited from interface org.apache.http.HttpClientConnection
flush, getLocalAddress, getTargetHost, isResponseAvailable, open, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader, setLocalAddress, setTargetHost
 
Methods inherited from interface org.apache.http.HttpConnection
close, isOpen, isStale, shutdown
 

Method Detail

tunnelTo

void tunnelTo(HttpHost targetHost,
              HttpParams params)
              throws java.io.IOException
After this connection is opened to the proxy, this method may be called to create a new connection over it. Subsequent data is sent over the resulting connection.

Parameters:
targetHost - The final target host
params - The parameters effective for this connection
Throws:
java.io.IOException

getTunnelTarget

HttpHost getTunnelTarget()
Returns the target host as provided by


isTunnelActive

boolean isTunnelActive()
Checks if

Returns:
true if tunnelTo has been called, false if not

isSecure

boolean isSecure()
Checks if the tunnel uses a secure socket.

Returns:
true if this is a secure tunnel.


Copyright 2005-2005-2006 Apache Software Foundation. All Rights Reserved.