|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.params.AbstractHttpParams
@Deprecated public abstract class AbstractHttpParams
Abstract base class for parameter collections. Type specific setters and getters are mapped to the abstract, generic getters and setters.
Constructor Summary | |
---|---|
protected |
AbstractHttpParams()
Deprecated. Instantiates parameters. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.http.params.HttpParams |
---|
copy, getParameter, removeParameter, setParameter |
Constructor Detail |
---|
protected AbstractHttpParams()
Method Detail |
---|
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 name
setLongParameter
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 name
setIntParameter
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 name
setDoubleParameter
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 name
setBooleanParameter
in interface HttpParams
name
- parameter namevalue
- parameter valuepublic boolean isParameterTrue(String name)
HttpParams
true
.
isParameterTrue
in interface HttpParams
name
- parameter name
true
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 name
true
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
- - always
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |