org.apache.commons.httpclient.params
public class HostParams extends DefaultHttpParams
Since: 3.0
Version: $Revision: 224451 $
Field Summary | |
---|---|
static String | DEFAULT_HEADERS
Defines the request headers to be sent per default with each request.
|
Constructor Summary | |
---|---|
HostParams()
Creates a new collection of parameters with the collection returned
by {@link #getDefaultParams()} as a parent. | |
HostParams(HttpParams defaults)
Creates a new collection of parameters with the given parent.
|
Method Summary | |
---|---|
String | getVirtualHost()
Returns the virtual host name.
|
void | setVirtualHost(String hostname)
Sets the virtual host name.
|
This parameter expects a value of type {@link java.util.Collection}. The collection is expected to contain {@link org.apache.commons.httpclient.Header}s.
See Also: HostParams
Parameters: defaults the parent collection to defer to, if a parameter is not explictly set in the collection itself.
See Also: HostParams
Returns: The virtual host name
Parameters: hostname The host name