public class HostParams extends DefaultHttpParams
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.| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_HEADERS
Defines the request headers to be sent per default with each request.
|
| 构造器和说明 |
|---|
HostParams()
Creates a new collection of parameters with the collection returned
by
DefaultHttpParams.getDefaultParams() as a parent. |
HostParams(HttpParams defaults)
Creates a new collection of parameters with the given parent.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getVirtualHost()
Returns the virtual host name.
|
void |
setVirtualHost(String hostname)
Sets the virtual host name.
|
clear, clone, getBooleanParameter, getDefaultParams, getDefaults, getDoubleParameter, getIntParameter, getLongParameter, getParameter, isParameterFalse, isParameterSet, isParameterSetLocally, isParameterTrue, setBooleanParameter, setDefaults, setDoubleParameter, setHttpParamsFactory, setIntParameter, setLongParameter, setParameter, setParameterspublic static final String DEFAULT_HEADERS
This parameter expects a value of type Collection. The
collection is expected to contain com.ptteng.mall.order.util.apacheCommonUtil.httpclient.Headers.
public HostParams()
DefaultHttpParams.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.public HostParams(HttpParams defaults)
defaults - the parent collection to defer to, if a parameter
is not explictly set in the collection itself.DefaultHttpParams.getDefaultParams()Copyright © 2017. All rights reserved.