org.apache.commons.httpclient

Class ProxyHost

Implemented Interfaces:
Cloneable

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.
Authors:
Michael Becke
Mike Bowler
Oleg Kalnichevski
Laura Werner
Since:
3.0

Constructor Summary

ProxyHost(String hostname)
Constructor for HttpHost.
ProxyHost(String hostname, int port)
Constructor for ProxyHost.
ProxyHost(ProxyHost httpproxy)
Copy constructor for HttpHost

Method Summary

Object
clone()

Methods inherited from class org.apache.commons.httpclient.HttpHost

clone, equals, getHostName, getPort, getProtocol, hashCode, toString, toURI

Constructor Details

ProxyHost

public ProxyHost(String hostname)
Constructor for HttpHost.
Parameters:
hostname - the hostname (IP or DNS name). Can be null.

ProxyHost

public ProxyHost(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 protocol port

ProxyHost

public ProxyHost(ProxyHost httpproxy)
Copy constructor for HttpHost
Parameters:
httpproxy - the HTTP host to copy details from

Method Details

clone

public Object clone()
Overrides:
clone in interface HttpHost
See Also:
java.lang.Object.clone()

Copyright (c) 1999-2005 - Apache Software Foundation