@Deprecated public abstract class AbstractHttpParams extends Object implements HttpParams, HttpParamsNames
Modifier | Constructor and Description |
---|---|
protected |
AbstractHttpParams()
Deprecated.
Instantiates parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanParameter(String name,
boolean defaultValue)
Deprecated.
Returns a
Boolean parameter value with the given name. |
double |
getDoubleParameter(String name,
double defaultValue)
Deprecated.
Returns a
Double parameter value with the given name. |
int |
getIntParameter(String name,
int defaultValue)
Deprecated.
Returns an
Integer parameter value with the given name. |
long |
getLongParameter(String name,
long defaultValue)
Deprecated.
Returns a
Long parameter value with the given name. |
Set<String> |
getNames()
Deprecated.
Returns the current set of names;
in the case of stacked parameters, returns the names
from all the participating HttpParams instances.
|
boolean |
isParameterFalse(String name)
Deprecated.
Checks if a boolean parameter is not set or
false . |
boolean |
isParameterTrue(String name)
Deprecated.
Checks if a boolean parameter is set to
true . |
HttpParams |
setBooleanParameter(String name,
boolean value)
Deprecated.
Assigns a
Boolean to the parameter with the given name |
HttpParams |
setDoubleParameter(String name,
double value)
Deprecated.
Assigns a
Double to the parameter with the given name |
HttpParams |
setIntParameter(String name,
int value)
Deprecated.
Assigns an
Integer to the parameter with the given name |
HttpParams |
setLongParameter(String name,
long value)
Deprecated.
Assigns a
Long to the parameter with the given name |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copy, getParameter, removeParameter, setParameter
protected AbstractHttpParams()
public long getLongParameter(String name, long defaultValue)
HttpParams
Long
parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.getLongParameter
in interface HttpParams
name
- the parent name.defaultValue
- the default value.Long
that represents the value of the parameter.HttpParams.setLongParameter(String, long)
public HttpParams setLongParameter(String name, long value)
HttpParams
Long
to the parameter with the given namesetLongParameter
in interface HttpParams
name
- parameter namevalue
- parameter valuepublic int getIntParameter(String name, int defaultValue)
HttpParams
Integer
parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.getIntParameter
in interface HttpParams
name
- the parent name.defaultValue
- the default value.Integer
that represents the value of the parameter.HttpParams.setIntParameter(String, int)
public HttpParams setIntParameter(String name, int value)
HttpParams
Integer
to the parameter with the given namesetIntParameter
in interface HttpParams
name
- parameter namevalue
- parameter valuepublic double getDoubleParameter(String name, double defaultValue)
HttpParams
Double
parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.getDoubleParameter
in interface HttpParams
name
- the parent name.defaultValue
- the default value.Double
that represents the value of the parameter.HttpParams.setDoubleParameter(String, double)
public HttpParams setDoubleParameter(String name, double value)
HttpParams
Double
to the parameter with the given namesetDoubleParameter
in interface HttpParams
name
- parameter namevalue
- parameter valuepublic boolean getBooleanParameter(String name, boolean defaultValue)
HttpParams
Boolean
parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.getBooleanParameter
in interface HttpParams
name
- the parent name.defaultValue
- the default value.Boolean
that represents the value of the parameter.HttpParams.setBooleanParameter(String, boolean)
public HttpParams setBooleanParameter(String name, boolean value)
HttpParams
Boolean
to the parameter with the given namesetBooleanParameter
in interface HttpParams
name
- parameter namevalue
- parameter valuepublic boolean isParameterTrue(String name)
HttpParams
true
.isParameterTrue
in interface HttpParams
name
- parameter nametrue
if the parameter is set to value true
,
false
if it is not set or set to false
public boolean isParameterFalse(String name)
HttpParams
false
.isParameterFalse
in interface HttpParams
name
- parameter nametrue
if the parameter is either not set or
set to value false
,
false
if it is set to true
public Set<String> getNames()
Dummy implementation - must be overridden by subclasses.
getNames
in interface HttpParamsNames
UnsupportedOperationException
- - alwaysCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.