|
||||||||||
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 final 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.
Constructor Summary | |
---|---|
BasicHttpParams()
|
Method Summary | |
---|---|
void |
clear()
Removes all parameters from this collection. |
java.lang.Object |
clone()
|
HttpParams |
copy()
Creates a copy of these parameters. |
protected void |
copyParams(HttpParams target)
Copies the locally defined parameters to the argument parameters. |
java.lang.Object |
getParameter(java.lang.String name)
Obtains the value of the given parameter. |
boolean |
isParameterSet(java.lang.String name)
|
boolean |
isParameterSetLocally(java.lang.String name)
|
boolean |
removeParameter(java.lang.String name)
Removes the parameter with the specified name. |
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 |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicHttpParams()
Method Detail |
---|
public java.lang.Object getParameter(java.lang.String name)
HttpParams
getParameter
in interface HttpParams
name
- the parent name.
null
if the parameter is not set or if it
is explicitly set to null
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 boolean removeParameter(java.lang.String name)
HttpParams
removeParameter
in interface HttpParams
name
- parameter name
public void setParameters(java.lang.String[] names, java.lang.Object value)
names
- array of parameter namevalue
- parameter valuepublic boolean isParameterSet(java.lang.String name)
public boolean isParameterSetLocally(java.lang.String name)
public void clear()
public HttpParams copy()
BasicHttpParams
,
then calls copyParams(HttpParams)
to populate the copy.
copy
in interface HttpParams
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
protected void copyParams(HttpParams target)
copy()
.
target
- the parameters to which to copy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |