org.apache.http
Class ProxyHost

java.lang.Object
  extended by org.apache.http.HttpHost
      extended by org.apache.http.ProxyHost

public class ProxyHost
extends HttpHost

Holds all of the variables needed to describe an HTTP connection to a proxy. Proxy hosts always use plain HTTP connection when communicating with clients.

Since:
3.0
Author:
Michael Becke, Mike Bowler, Oleg Kalnichevski, Laura Werner

Constructor Summary
ProxyHost(ProxyHost httpproxy)
          Copy constructor for ProxyHost.
ProxyHost(java.lang.String hostname)
          Constructor for ProxyHost.
ProxyHost(java.lang.String hostname, int port)
          Constructor for ProxyHost.
 
Method Summary
 
Methods inherited from class org.apache.http.HttpHost
equals, getHostName, getPort, getScheme, hashCode, toHostString, toString, toURI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProxyHost

public ProxyHost(ProxyHost httpproxy)
Copy constructor for ProxyHost.

Parameters:
httpproxy - the HTTP host to copy details from

ProxyHost

public ProxyHost(java.lang.String hostname,
                 int port)
Constructor for ProxyHost.

Parameters:
hostname - the hostname (IP or DNS name). Can be null.
port - the port. Value -1 can be used to set default scheme port

ProxyHost

public ProxyHost(java.lang.String hostname)
Constructor for ProxyHost.

Parameters:
hostname - the hostname (IP or DNS name). Can be null.


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