|
||||||||||
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.BasicHttpParams
public class BasicHttpParams
This class represents a collection of HTTP protocol parameters. 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 | |
---|---|
protected HttpParams |
defaults
The optional set of default values to defer to. |
Constructor Summary | |
---|---|
BasicHttpParams()
|
|
BasicHttpParams(HttpParams defaults)
Creates a new collection of parameters with the given parent. |
Method Summary | |
---|---|
void |
clear()
Removes all parameters from this collection. |
HttpParams |
copy()
Creates a copy of these parameters. |
protected void |
copyParams(HttpParams target)
Copies the locally defined parameters to the argument parameters. |
HttpParams |
getDefaults()
Obtains default parameters, if set. |
java.lang.Object |
getParameter(java.lang.String name)
Returns a parameter value with the given name. |
boolean |
isParameterSet(java.lang.String name)
Returns true if the parameter is set at any level, false otherwise. |
boolean |
isParameterSetLocally(java.lang.String name)
WARNING: This method is not part of the API. |
void |
setDefaults(HttpParams params)
Provides default parameters. |
HttpParams |
setParameter(java.lang.String name,
java.lang.Object value)
Assigns the value to the parameter with the given name |
void |
setParameters(java.lang.String[] names,
java.lang.Object value)
Assigns the value to all the parameter with the given names |
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 |
Methods inherited from interface org.apache.http.params.HttpParams |
---|
getBooleanParameter, getDoubleParameter, getIntParameter, getLongParameter, isParameterFalse, isParameterTrue, setBooleanParameter, setDoubleParameter, setIntParameter, setLongParameter |
Field Detail |
---|
protected HttpParams defaults
Constructor Detail |
---|
public BasicHttpParams(HttpParams defaults)
defaults
- the parent collection to defer to, if a parameter
is not explictly set in the collection itself.public BasicHttpParams()
Method Detail |
---|
public HttpParams getDefaults()
getDefaults
in interface HttpLinkedParams
null
HttpLinkedParams.setDefaults(HttpParams)
public void setDefaults(HttpParams params)
setDefaults
in interface HttpLinkedParams
params
- the new defaults, or null
to unsetHttpLinkedParams.getDefaults()
public java.lang.Object getParameter(java.lang.String name)
HttpParams
getParameter
in interface HttpParams
name
- the parent name.
HttpParams.setParameter(String, Object)
public HttpParams setParameter(java.lang.String name, java.lang.Object value)
HttpParams
setParameter
in interface HttpParams
name
- parameter namevalue
- parameter valuepublic void setParameters(java.lang.String[] names, java.lang.Object value)
names
- array of parameter namevalue
- parameter valuepublic boolean isParameterSet(java.lang.String name)
HttpParams
isParameterSet
in interface HttpParams
name
- parameter name
public boolean isParameterSetLocally(java.lang.String name)
HttpLinkedParams
isParameterSetLocally
in interface HttpLinkedParams
name
- the parameter name
HttpLinkedParams.getDefaults()
,
HttpLinkedParams.setDefaults(HttpParams)
public void clear()
public HttpParams copy()
BasicHttpParams
with the same default parameters as this object, then calls
copyParams(HttpParams)
to populate the copy.
copyParams(HttpParams)
.
copy
in interface HttpParams
getDefaults()
are not copied.protected void copyParams(HttpParams target)
getDefaults()
are not copied.
This method is called from copy()
.
target
- the parameters to which to copy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |