org.apache.http.params
public
abstract
class
org.apache.http.params.AbstractHttpParams
Abstract base class for parameter collections.
Type specific setters and getters are mapped to the abstract,
generic getters and setters.
Known Direct Subclasses
Summary
Protected Constructors
Public 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
Protected Constructors
protected
AbstractHttpParams()
Instantiates parameters.
Public Methods
public
boolean
getBooleanParameter(String name, boolean defaultValue)
Returns a
Boolean parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.
public
double
getDoubleParameter(String name, double defaultValue)
Returns a
Double parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.
public
int
getIntParameter(String name, int defaultValue)
Returns an
Integer parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.
public
long
getLongParameter(String name, long defaultValue)
Returns a
Long parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.
public
boolean
isParameterFalse(String name)
Checks if a boolean parameter is not set or false
.
public
boolean
isParameterTrue(String name)
Checks if a boolean parameter is set to true
.
public
HttpParams
setBooleanParameter(String name, boolean value)
Assigns a
Boolean to the parameter with the given name
public
HttpParams
setDoubleParameter(String name, double value)
Assigns a
Double to the parameter with the given name
public
HttpParams
setLongParameter(String name, long value)
Assigns a
Long to the parameter with the given name