Class HostParams
java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.params.DefaultHttpParams
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.params.HostParams
- All Implemented Interfaces:
HttpParams
,Serializable
,Cloneable
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.- Since:
- 3.0
- Version:
- $Revision: 480424 $
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Defines the request headers to be sent per default with each request. -
Constructor Summary
ConstructorDescriptionCreates a new collection of parameters with the collection returned byDefaultHttpParams.getDefaultParams()
as a parent.HostParams
(HttpParams defaults) Creates a new collection of parameters with the given parent. -
Method Summary
Modifier and TypeMethodDescriptionReturns the virtual host name.void
setVirtualHost
(String hostname) Sets the virtual host name.Methods inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.params.DefaultHttpParams
clear, clone, getBooleanParameter, getDefaultParams, getDefaults, getDoubleParameter, getIntParameter, getLongParameter, getParameter, isParameterFalse, isParameterSet, isParameterSetLocally, isParameterTrue, setBooleanParameter, setDefaults, setDoubleParameter, setHttpParamsFactory, setIntParameter, setLongParameter, setParameter, setParameters
-
Field Details
-
DEFAULT_HEADERS
Defines the request headers to be sent per default with each request.This parameter expects a value of type
Collection
. The collection is expected to containHeader
s.- See Also:
-
-
Constructor Details
-
HostParams
public HostParams()Creates a new collection of parameters with the collection returned byDefaultHttpParams.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.- See Also:
-
HostParams
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.- Parameters:
defaults
- the parent collection to defer to, if a parameter is not explictly set in the collection itself.- See Also:
-
-
Method Details
-
setVirtualHost
Sets the virtual host name.- Parameters:
hostname
- The host name
-
getVirtualHost
Returns the virtual host name.- Returns:
- The virtual host name
-