org.apache.commons.httpclient
Class ProxyHost
- Cloneable
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.
ProxyHost
public ProxyHost(String hostname)
Constructor for HttpHost.
hostname
- the hostname (IP or DNS name). Can be null
.
ProxyHost
public ProxyHost(String hostname,
int port)
Constructor for ProxyHost.
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
httpproxy
- the HTTP host to copy details from
Copyright (c) 1999-2005 - Apache Software Foundation