Package org.apache.http.params
Class AbstractHttpParams
java.lang.Object
org.apache.http.params.AbstractHttpParams
- All Implemented Interfaces:
HttpParams
,HttpParamsNames
- Direct Known Subclasses:
BasicHttpParams
,ClientParamsStack
,DefaultedHttpParams
@Deprecated
public abstract class AbstractHttpParams
extends Object
implements HttpParams, HttpParamsNames
Deprecated.
(4.3) use configuration classes provided 'org.apache.http.config'
and 'org.apache.http.client.config'
Abstract base class for parameter collections.
Type specific setters and getters are mapped to the abstract,
generic getters and setters.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getBooleanParameter
(String name, boolean defaultValue) Deprecated.Returns aBoolean
parameter value with the given name.double
getDoubleParameter
(String name, double defaultValue) Deprecated.Returns aDouble
parameter value with the given name.int
getIntParameter
(String name, int defaultValue) Deprecated.Returns anInteger
parameter value with the given name.long
getLongParameter
(String name, long defaultValue) Deprecated.Returns aLong
parameter value with the given name.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 orfalse
.boolean
isParameterTrue
(String name) Deprecated.Checks if a boolean parameter is set totrue
.setBooleanParameter
(String name, boolean value) Deprecated.Assigns aBoolean
to the parameter with the given namesetDoubleParameter
(String name, double value) Deprecated.Assigns aDouble
to the parameter with the given namesetIntParameter
(String name, int value) Deprecated.Assigns anInteger
to the parameter with the given namesetLongParameter
(String name, long value) Deprecated.Assigns aLong
to the parameter with the given nameMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.http.params.HttpParams
copy, getParameter, removeParameter, setParameter
-
Method Details
-
getLongParameter
Deprecated.Description copied from interface:HttpParams
Returns aLong
parameter value with the given name. If the parameter is not explicitly set, the default value is returned.- Specified by:
getLongParameter
in interfaceHttpParams
- Parameters:
name
- the parent name.defaultValue
- the default value.- Returns:
- a
Long
that represents the value of the parameter. - See Also:
-
setLongParameter
Deprecated.Description copied from interface:HttpParams
Assigns aLong
to the parameter with the given name- Specified by:
setLongParameter
in interfaceHttpParams
- Parameters:
name
- parameter namevalue
- parameter value
-
getIntParameter
Deprecated.Description copied from interface:HttpParams
Returns anInteger
parameter value with the given name. If the parameter is not explicitly set, the default value is returned.- Specified by:
getIntParameter
in interfaceHttpParams
- Parameters:
name
- the parent name.defaultValue
- the default value.- Returns:
- a
Integer
that represents the value of the parameter. - See Also:
-
setIntParameter
Deprecated.Description copied from interface:HttpParams
Assigns anInteger
to the parameter with the given name- Specified by:
setIntParameter
in interfaceHttpParams
- Parameters:
name
- parameter namevalue
- parameter value
-
getDoubleParameter
Deprecated.Description copied from interface:HttpParams
Returns aDouble
parameter value with the given name. If the parameter is not explicitly set, the default value is returned.- Specified by:
getDoubleParameter
in interfaceHttpParams
- Parameters:
name
- the parent name.defaultValue
- the default value.- Returns:
- a
Double
that represents the value of the parameter. - See Also:
-
setDoubleParameter
Deprecated.Description copied from interface:HttpParams
Assigns aDouble
to the parameter with the given name- Specified by:
setDoubleParameter
in interfaceHttpParams
- Parameters:
name
- parameter namevalue
- parameter value
-
getBooleanParameter
Deprecated.Description copied from interface:HttpParams
Returns aBoolean
parameter value with the given name. If the parameter is not explicitly set, the default value is returned.- Specified by:
getBooleanParameter
in interfaceHttpParams
- Parameters:
name
- the parent name.defaultValue
- the default value.- Returns:
- a
Boolean
that represents the value of the parameter. - See Also:
-
setBooleanParameter
Deprecated.Description copied from interface:HttpParams
Assigns aBoolean
to the parameter with the given name- Specified by:
setBooleanParameter
in interfaceHttpParams
- Parameters:
name
- parameter namevalue
- parameter value
-
isParameterTrue
Deprecated.Description copied from interface:HttpParams
Checks if a boolean parameter is set totrue
.- Specified by:
isParameterTrue
in interfaceHttpParams
- Parameters:
name
- parameter name- Returns:
true
if the parameter is set to valuetrue
,false
if it is not set or set tofalse
-
isParameterFalse
Deprecated.Description copied from interface:HttpParams
Checks if a boolean parameter is not set orfalse
.- Specified by:
isParameterFalse
in interfaceHttpParams
- Parameters:
name
- parameter name- Returns:
true
if the parameter is either not set or set to valuefalse
,false
if it is set totrue
-
getNames
Deprecated.Returns the current set of names; in the case of stacked parameters, returns the names from all the participating HttpParams instances. Changes to the underlying HttpParams are not reflected in the set - it is a snapshot.Dummy implementation - must be overridden by subclasses.
- Specified by:
getNames
in interfaceHttpParamsNames
- Returns:
- the names, as a Set<String>
- Throws:
UnsupportedOperationException
- - always- Since:
- 4.2
-