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 java.lang.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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleangetBooleanParameter(java.lang.String name, boolean defaultValue)Deprecated.Returns aBooleanparameter value with the given name.doublegetDoubleParameter(java.lang.String name, double defaultValue)Deprecated.Returns aDoubleparameter value with the given name.intgetIntParameter(java.lang.String name, int defaultValue)Deprecated.Returns anIntegerparameter value with the given name.longgetLongParameter(java.lang.String name, long defaultValue)Deprecated.Returns aLongparameter value with the given name.java.util.Set<java.lang.String>getNames()Deprecated.Returns the current set of names; in the case of stacked parameters, returns the names from all the participating HttpParams instances.booleanisParameterFalse(java.lang.String name)Deprecated.Checks if a boolean parameter is not set orfalse.booleanisParameterTrue(java.lang.String name)Deprecated.Checks if a boolean parameter is set totrue.HttpParamssetBooleanParameter(java.lang.String name, boolean value)Deprecated.Assigns aBooleanto the parameter with the given nameHttpParamssetDoubleParameter(java.lang.String name, double value)Deprecated.Assigns aDoubleto the parameter with the given nameHttpParamssetIntParameter(java.lang.String name, int value)Deprecated.Assigns anIntegerto the parameter with the given nameHttpParamssetLongParameter(java.lang.String name, long value)Deprecated.Assigns aLongto the parameter with the given name-
Methods 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 Detail
-
getLongParameter
public long getLongParameter(java.lang.String name, long defaultValue)Deprecated.Description copied from interface:HttpParamsReturns aLongparameter value with the given name. If the parameter is not explicitly set, the default value is returned.- Specified by:
getLongParameterin interfaceHttpParams- Parameters:
name- the parent name.defaultValue- the default value.- Returns:
- a
Longthat represents the value of the parameter. - See Also:
HttpParams.setLongParameter(String, long)
-
setLongParameter
public HttpParams setLongParameter(java.lang.String name, long value)
Deprecated.Description copied from interface:HttpParamsAssigns aLongto the parameter with the given name- Specified by:
setLongParameterin interfaceHttpParams- Parameters:
name- parameter namevalue- parameter value
-
getIntParameter
public int getIntParameter(java.lang.String name, int defaultValue)Deprecated.Description copied from interface:HttpParamsReturns anIntegerparameter value with the given name. If the parameter is not explicitly set, the default value is returned.- Specified by:
getIntParameterin interfaceHttpParams- Parameters:
name- the parent name.defaultValue- the default value.- Returns:
- a
Integerthat represents the value of the parameter. - See Also:
HttpParams.setIntParameter(String, int)
-
setIntParameter
public HttpParams setIntParameter(java.lang.String name, int value)
Deprecated.Description copied from interface:HttpParamsAssigns anIntegerto the parameter with the given name- Specified by:
setIntParameterin interfaceHttpParams- Parameters:
name- parameter namevalue- parameter value
-
getDoubleParameter
public double getDoubleParameter(java.lang.String name, double defaultValue)Deprecated.Description copied from interface:HttpParamsReturns aDoubleparameter value with the given name. If the parameter is not explicitly set, the default value is returned.- Specified by:
getDoubleParameterin interfaceHttpParams- Parameters:
name- the parent name.defaultValue- the default value.- Returns:
- a
Doublethat represents the value of the parameter. - See Also:
HttpParams.setDoubleParameter(String, double)
-
setDoubleParameter
public HttpParams setDoubleParameter(java.lang.String name, double value)
Deprecated.Description copied from interface:HttpParamsAssigns aDoubleto the parameter with the given name- Specified by:
setDoubleParameterin interfaceHttpParams- Parameters:
name- parameter namevalue- parameter value
-
getBooleanParameter
public boolean getBooleanParameter(java.lang.String name, boolean defaultValue)Deprecated.Description copied from interface:HttpParamsReturns aBooleanparameter value with the given name. If the parameter is not explicitly set, the default value is returned.- Specified by:
getBooleanParameterin interfaceHttpParams- Parameters:
name- the parent name.defaultValue- the default value.- Returns:
- a
Booleanthat represents the value of the parameter. - See Also:
HttpParams.setBooleanParameter(String, boolean)
-
setBooleanParameter
public HttpParams setBooleanParameter(java.lang.String name, boolean value)
Deprecated.Description copied from interface:HttpParamsAssigns aBooleanto the parameter with the given name- Specified by:
setBooleanParameterin interfaceHttpParams- Parameters:
name- parameter namevalue- parameter value
-
isParameterTrue
public boolean isParameterTrue(java.lang.String name)
Deprecated.Description copied from interface:HttpParamsChecks if a boolean parameter is set totrue.- Specified by:
isParameterTruein interfaceHttpParams- Parameters:
name- parameter name- Returns:
trueif the parameter is set to valuetrue,falseif it is not set or set tofalse
-
isParameterFalse
public boolean isParameterFalse(java.lang.String name)
Deprecated.Description copied from interface:HttpParamsChecks if a boolean parameter is not set orfalse.- Specified by:
isParameterFalsein interfaceHttpParams- Parameters:
name- parameter name- Returns:
trueif the parameter is either not set or set to valuefalse,falseif it is set totrue
-
getNames
public java.util.Set<java.lang.String> 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:
getNamesin interfaceHttpParamsNames- Returns:
- the names, as a Set<String>
- Throws:
java.lang.UnsupportedOperationException- - always- Since:
- 4.2
-
-