@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, waitcopy, getParameter, removeParameter, setParameterprotected AbstractHttpParams()
public long getLongParameter(String name, long defaultValue)
HttpParamsLong parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.getLongParameter in interface HttpParamsname - 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)
HttpParamsLong to the parameter with the given namesetLongParameter in interface HttpParamsname - parameter namevalue - parameter valuepublic int getIntParameter(String name, int defaultValue)
HttpParamsInteger parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.getIntParameter in interface HttpParamsname - 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)
HttpParamsInteger to the parameter with the given namesetIntParameter in interface HttpParamsname - parameter namevalue - parameter valuepublic double getDoubleParameter(String name, double defaultValue)
HttpParamsDouble parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.getDoubleParameter in interface HttpParamsname - 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)
HttpParamsDouble to the parameter with the given namesetDoubleParameter in interface HttpParamsname - parameter namevalue - parameter valuepublic boolean getBooleanParameter(String name, boolean defaultValue)
HttpParamsBoolean parameter value with the given name.
If the parameter is not explicitly set, the default value is returned.getBooleanParameter in interface HttpParamsname - 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)
HttpParamsBoolean to the parameter with the given namesetBooleanParameter in interface HttpParamsname - parameter namevalue - parameter valuepublic boolean isParameterTrue(String name)
HttpParamstrue.isParameterTrue in interface HttpParamsname - parameter nametrue if the parameter is set to value true,
false if it is not set or set to falsepublic boolean isParameterFalse(String name)
HttpParamsfalse.isParameterFalse in interface HttpParamsname - parameter nametrue if the parameter is either not set or
set to value false,
false if it is set to truepublic Set<String> getNames()
Dummy implementation - must be overridden by subclasses.
getNames in interface HttpParamsNamesUnsupportedOperationException - - alwaysCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.