|
Build 1.0_r1(from source) | |||||||||
| 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. |
Object |
clone()
Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver. |
HttpParams |
copy()
Creates a copy of these parameters. |
protected void |
copyParams(HttpParams target)
Copies the locally defined parameters to the argument parameters. |
Object |
getParameter(String name)
Obtains the value of the given parameter. |
boolean |
isParameterSet(String name)
|
boolean |
isParameterSetLocally(String name)
|
boolean |
removeParameter(String name)
Removes the parameter with the specified name. |
HttpParams |
setParameter(String name,
Object value)
Assigns the value to the parameter with the given name. |
void |
setParameters(String[] names,
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 Object getParameter(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(String name,
Object value)
HttpParams
setParameter in interface HttpParamsname - parameter namevalue - parameter valuepublic boolean removeParameter(String name)
HttpParams
removeParameter in interface HttpParamsname - parameter name
public void setParameters(String[] names,
Object value)
names - array of parameter namevalue - parameter valuepublic boolean isParameterSet(String name)
public boolean isParameterSetLocally(String name)
public void clear()
public HttpParams copy()
BasicHttpParams,
then calls copyParams(HttpParams) to populate the copy.
copy in interface HttpParams
public Object clone()
throws CloneNotSupportedException
ObjectClasses which wish to support cloning must specify that they implement the Cloneable interface, since the implementation checks for this.
clone in class ObjectCloneNotSupportedException - if the receiver's class does not
implement the interface Cloneable.protected void copyParams(HttpParams target)
copy().
target - the parameters to which to copy
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||