@Deprecated public final class DefaultedHttpParams extends AbstractHttpParams
HttpParams implementation that delegates resolution of a parameter
to the given default HttpParams instance if the parameter is not
present in the local one. The state of the local collection can be mutated,
whereas the default collection is treated as read-only.| 构造器和说明 |
|---|
DefaultedHttpParams(HttpParams local,
HttpParams defaults)
已过时。
Create the defaulted set of HttpParams.
|
| 限定符和类型 | 方法和说明 |
|---|---|
HttpParams |
copy()
已过时。
Creates a copy of the local collection with the same default
|
java.util.Set<java.lang.String> |
getDefaultNames()
已过时。
Returns the current set of defaults names.
|
HttpParams |
getDefaults()
已过时。
|
java.util.Set<java.lang.String> |
getLocalNames()
已过时。
Returns the current set of local names.
|
java.util.Set<java.lang.String> |
getNames()
已过时。
Returns the current set of names
from both the local and default HttpParams instances.
|
java.lang.Object |
getParameter(java.lang.String name)
已过时。
Retrieves the value of the parameter from the local collection and, if the
parameter is not set locally, delegates its resolution to the default
collection.
|
boolean |
removeParameter(java.lang.String name)
已过时。
Attempts to remove the parameter from the local collection.
|
HttpParams |
setParameter(java.lang.String name,
java.lang.Object value)
已过时。
Sets the parameter in the local collection.
|
getBooleanParameter, getDoubleParameter, getIntParameter, getLongParameter, isParameterFalse, isParameterTrue, setBooleanParameter, setDoubleParameter, setIntParameter, setLongParameterpublic DefaultedHttpParams(HttpParams local, HttpParams defaults)
local - the mutable set of HttpParamsdefaults - the default set of HttpParams, not mutated by this classpublic HttpParams copy()
public java.lang.Object getParameter(java.lang.String name)
name - the parent name.null if the parameter is not set or if it
is explicitly set to nullHttpParams.setParameter(String, Object)public boolean removeParameter(java.lang.String name)
name - parameter namepublic HttpParams setParameter(java.lang.String name, java.lang.Object value)
name - parameter namevalue - parameter valuepublic HttpParams getDefaults()
public java.util.Set<java.lang.String> getNames()
getNames 在接口中 HttpParamsNamesgetNames 在类中 AbstractHttpParamsjava.lang.UnsupportedOperationException - if either the local or default HttpParams instances do not implement HttpParamsNamespublic java.util.Set<java.lang.String> getDefaultNames()
java.lang.UnsupportedOperationException - if the default HttpParams instance does not implement HttpParamsNamespublic java.util.Set<java.lang.String> getLocalNames()
java.lang.UnsupportedOperationException - if the local HttpParams instance does not implement HttpParamsNames