|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.params.AbstractHttpParams
org.apache.http.params.DefaultedHttpParams
public final class DefaultedHttpParams
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.
| Constructor Summary | |
|---|---|
DefaultedHttpParams(HttpParams local,
HttpParams defaults)
Create the defaulted set of HttpParams. |
|
| Method Summary | |
|---|---|
HttpParams |
copy()
Deprecated. (4.1) |
Set<String> |
getDefaultNames()
Returns the current set of defaults names. |
HttpParams |
getDefaults()
Deprecated. (4.1.1) do not use, will be removed in a later version |
Set<String> |
getLocalNames()
Returns the current set of local names. |
Set<String> |
getNames()
Returns the current set of names from both the local and default HttpParams instances. |
Object |
getParameter(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(String name)
Attempts to remove the parameter from the local collection. |
HttpParams |
setParameter(String name,
Object value)
Sets the parameter in the local collection. |
| Methods inherited from class org.apache.http.params.AbstractHttpParams |
|---|
getBooleanParameter, getDoubleParameter, getIntParameter, getLongParameter, isParameterFalse, isParameterTrue, setBooleanParameter, setDoubleParameter, setIntParameter, setLongParameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultedHttpParams(HttpParams local,
HttpParams defaults)
local - the mutable set of HttpParamsdefaults - the default set of HttpParams, not mutated by this class| Method Detail |
|---|
@Deprecated public HttpParams copy()
public Object getParameter(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(String name)
name - parameter name
public HttpParams setParameter(String name,
Object value)
name - parameter namevalue - parameter value@Deprecated public HttpParams getDefaults()
public Set<String> getNames()
getNames in interface HttpParamsNamesgetNames in class AbstractHttpParamsUnsupportedOperationException - if either the local or default HttpParams instances do not implement HttpParamsNamespublic Set<String> getDefaultNames()
UnsupportedOperationException - if the default HttpParams instance does not implement HttpParamsNamespublic Set<String> getLocalNames()
UnsupportedOperationException - if the local HttpParams instance does not implement HttpParamsNames
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||