|
||||||||||
| 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
Default implementation of HttpParams interface.
Please note access to the internal structures of this class is not synchronized and therefore this class may be thread-unsafe.
| Constructor Summary | |
|---|---|
BasicHttpParams()
|
|
| Method Summary | |
|---|---|
void |
clear()
Removes all parameters from this collection. |
java.lang.Object |
clone()
|
HttpParams |
copy()
Deprecated. |
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)
Is the parameter set? |
boolean |
isParameterSetLocally(java.lang.String name)
Is the parameter set in this object? |
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 HttpParamsname - the parent name.
null if the parameter is not set or if it
is explicitly set to nullHttpParams.setParameter(String, Object)
public HttpParams setParameter(java.lang.String name,
java.lang.Object value)
HttpParams
setParameter in interface HttpParamsname - parameter namevalue - parameter valuepublic boolean removeParameter(java.lang.String name)
HttpParams
removeParameter in interface HttpParamsname - parameter name
public void setParameters(java.lang.String[] names,
java.lang.Object value)
names - array of parameter namesvalue - parameter valuepublic boolean isParameterSet(java.lang.String name)
Uses getParameter(String) (which is overrideable) to
fetch the parameter value, if any.
Also @see isParameterSetLocally(String)
name - parameter name
public boolean isParameterSetLocally(java.lang.String name)
The parameter value is fetched directly.
Also @see isParameterSet(String)
name - parameter 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.Objectjava.lang.CloneNotSupportedExceptionprotected 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 | |||||||||