|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.microsoft.tfs.core.httpclient.params.DefaultHttpParams
com.microsoft.tfs.core.httpclient.params.HostParams
public class HostParams
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.
| Field Summary | |
|---|---|
static java.lang.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 DefaultHttpParams.getDefaultParams() as a parent. |
|
HostParams(HttpParams defaults)
Creates a new collection of parameters with the given parent. |
|
| Method Summary | |
|---|---|
java.lang.String |
getVirtualHost()
Returns the virtual host name. |
void |
setVirtualHost(java.lang.String hostname)
Sets the virtual host name. |
| Methods inherited from class com.microsoft.tfs.core.httpclient.params.DefaultHttpParams |
|---|
clear, clone, getBooleanParameter, getDefaultParams, getDefaults, getDoubleParameter, getIntParameter, getLongParameter, getParameter, isParameterFalse, isParameterSet, isParameterSetLocally, isParameterTrue, setBooleanParameter, setDefaults, setDoubleParameter, setHttpParamsFactory, setIntParameter, setLongParameter, setParameter, setParameters |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_HEADERS
This parameter expects a value of type Collection. The
collection is expected to contain
Headers.
"http.default-headers"| Constructor Detail |
|---|
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.
DefaultHttpParams.getDefaultParams()public HostParams(HttpParams defaults)
defaults - the parent collection to defer to, if a parameter is not explictly
set in the collection itself.DefaultHttpParams.getDefaultParams()| Method Detail |
|---|
public void setVirtualHost(java.lang.String hostname)
hostname - The host namepublic java.lang.String getVirtualHost()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||