org.apache.http.params.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.
Summary
Public Constructors
Public Methods
Protected Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
copy,
getBooleanParameter,
getDoubleParameter,
getIntParameter,
getLongParameter,
getParameter,
isParameterFalse,
isParameterTrue,
removeParameter,
setBooleanParameter,
setDoubleParameter,
setIntParameter,
setLongParameter,
setParameter
Details
Public Constructors
Public Methods
public
void
clear()
Removes all parameters from this collection.
public
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.
Classes which wish to support cloning must specify that they implement
the Cloneable interface, since the implementation checks for this.
Returns
- Object a shallow copy of this object.
Creates a copy of these parameters.
The implementation here instantiates
BasicHttpParams,
then calls
copyParams(HttpParams) to populate the copy.
Returns
- a new set of params holding a copy of the
local parameters in this object.
public
boolean
isParameterSet(String name)
public
boolean
isParameterSetLocally(String name)
public
boolean
removeParameter(String name)
public
void
setParameters(String[] names, Object value)
Assigns the value to all the parameter with the given names
Parameters
names
| array of parameter name |
value
| parameter value
|
Protected Methods
protected
void
copyParams(HttpParams target)
Copies the locally defined parameters to the argument parameters.
This method is called from
copy().
Parameters
target
| the parameters to which to copy
|