Package org.apache.http.params
Class SyncBasicHttpParams
- java.lang.Object
-
- org.apache.http.params.AbstractHttpParams
-
- org.apache.http.params.BasicHttpParams
-
- org.apache.http.params.SyncBasicHttpParams
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,HttpParams
,HttpParamsNames
@Contract(threading=SAFE) @Deprecated public class SyncBasicHttpParams extends BasicHttpParams
Deprecated.(4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config'Thread-safe extension of theBasicHttpParams
.- Since:
- 4.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SyncBasicHttpParams()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clear()
Deprecated.Removes all parameters from this collection.java.lang.Object
clone()
Deprecated.Clones the instance.java.lang.Object
getParameter(java.lang.String name)
Deprecated.Obtains the value of the given parameter.boolean
isParameterSet(java.lang.String name)
Deprecated.Is the parameter set?boolean
isParameterSetLocally(java.lang.String name)
Deprecated.Is the parameter set in this object?boolean
removeParameter(java.lang.String name)
Deprecated.Removes the parameter with the specified name.HttpParams
setParameter(java.lang.String name, java.lang.Object value)
Deprecated.Assigns the value to the parameter with the given name.void
setParameters(java.lang.String[] names, java.lang.Object value)
Deprecated.Assigns the value to all the parameter with the given names-
Methods inherited from class org.apache.http.params.BasicHttpParams
copy, copyParams, getNames, toString
-
Methods inherited from class org.apache.http.params.AbstractHttpParams
getBooleanParameter, getDoubleParameter, getIntParameter, getLongParameter, isParameterFalse, isParameterTrue, setBooleanParameter, setDoubleParameter, setIntParameter, setLongParameter
-
-
-
-
Method Detail
-
removeParameter
public boolean removeParameter(java.lang.String name)
Deprecated.Description copied from interface:HttpParams
Removes the parameter with the specified name.- Specified by:
removeParameter
in interfaceHttpParams
- Overrides:
removeParameter
in classBasicHttpParams
- Parameters:
name
- parameter name- Returns:
- true if the parameter existed and has been removed, false else.
-
setParameter
public HttpParams setParameter(java.lang.String name, java.lang.Object value)
Deprecated.Description copied from interface:HttpParams
Assigns the value to the parameter with the given name.- Specified by:
setParameter
in interfaceHttpParams
- Overrides:
setParameter
in classBasicHttpParams
- Parameters:
name
- parameter namevalue
- parameter value
-
getParameter
public java.lang.Object getParameter(java.lang.String name)
Deprecated.Description copied from interface:HttpParams
Obtains the value of the given parameter.- Specified by:
getParameter
in interfaceHttpParams
- Overrides:
getParameter
in classBasicHttpParams
- Parameters:
name
- the parent name.- Returns:
- an object that represents the value of the parameter,
null
if the parameter is not set or if it is explicitly set tonull
- See Also:
HttpParams.setParameter(String, Object)
-
isParameterSet
public boolean isParameterSet(java.lang.String name)
Deprecated.Description copied from class:BasicHttpParams
Is the parameter set?Uses
BasicHttpParams.getParameter(String)
(which is overrideable) to fetch the parameter value, if any.- Overrides:
isParameterSet
in classBasicHttpParams
- Parameters:
name
- parameter name- Returns:
- true if parameter is defined and non-null
-
isParameterSetLocally
public boolean isParameterSetLocally(java.lang.String name)
Deprecated.Description copied from class:BasicHttpParams
Is the parameter set in this object?The parameter value is fetched directly.
Also @see
BasicHttpParams.isParameterSet(String)
- Overrides:
isParameterSetLocally
in classBasicHttpParams
- Parameters:
name
- parameter name- Returns:
- true if parameter is defined and non-null
-
setParameters
public void setParameters(java.lang.String[] names, java.lang.Object value)
Deprecated.Description copied from class:BasicHttpParams
Assigns the value to all the parameter with the given names- Overrides:
setParameters
in classBasicHttpParams
- Parameters:
names
- array of parameter namesvalue
- parameter value
-
clear
public void clear()
Deprecated.Description copied from class:BasicHttpParams
Removes all parameters from this collection.- Overrides:
clear
in classBasicHttpParams
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Deprecated.Description copied from class:BasicHttpParams
Clones the instance. UsesBasicHttpParams.copyParams(HttpParams)
to copy the parameters.- Overrides:
clone
in classBasicHttpParams
- Throws:
java.lang.CloneNotSupportedException
-
-