org.apache.commons.httpclient.params
Class HostParams
- Cloneable, HttpParams, Serializable
This class represents a collection of HTTP protocol parameters applicable to
instances of HostConfiguration
.
Protocol parameters may be linked together to form a hierarchy. If a particular
parameter value has not been explicitly defined in the collection itself, its
value will be drawn from the parent collection of parameters.
Version:
- Oleg Kalnichevski
- 3.0
static String | DEFAULT_HEADERS - Defines the request headers to be sent per default with each request.
|
clear , clone , getBooleanParameter , getDefaultParams , getDefaults , getDoubleParameter , getIntParameter , getLongParameter , getParameter , isParameterFalse , isParameterSet , isParameterSetLocally , isParameterTrue , setBooleanParameter , setDefaults , setDoubleParameter , setHttpParamsFactory , setIntParameter , setLongParameter , setParameter , setParameters |
DEFAULT_HEADERS
public static final String DEFAULT_HEADERS
Defines the request headers to be sent per default with each request.
This parameter expects a value of type
java.util.Collection
. The
collection is expected to contain
Header
s.
HostParams
public HostParams()
Creates a new collection of parameters with the collection returned
by
getDefaultParams()
as a parent. The collection will defer
to its parent for a default value if a particular parameter is not
explicitly set in the collection itself.
getDefaultParams()
HostParams
public HostParams(HttpParams defaults)
Creates a new collection of parameters with the given parent.
The collection will defer to its parent for a default value
if a particular parameter is not explicitly set in the collection
itself.
defaults
- the parent collection to defer to, if a parameter
is not explictly set in the collection itself.
getDefaultParams()
getVirtualHost
public String getVirtualHost()
Returns the virtual host name.
- The virtual host name
setVirtualHost
public void setVirtualHost(String hostname)
Sets the virtual host name.
hostname
- The host name
Copyright (c) 1999-2005 - Apache Software Foundation