Package org.apache.http.params
Class BasicHttpParams
- java.lang.Object
 - 
- org.apache.http.params.AbstractHttpParams
 - 
- org.apache.http.params.BasicHttpParams
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable,java.lang.Cloneable,HttpParams,HttpParamsNames
- Direct Known Subclasses:
 SyncBasicHttpParams
@Deprecated @Contract(threading=SAFE) public class BasicHttpParams extends AbstractHttpParams implements java.io.Serializable, java.lang.Cloneable
Deprecated.(4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config'Default implementation ofHttpParamsinterface.Please note access to the internal structures of this class is not synchronized and therefore this class may be thread-unsafe.
- Since:
 - 4.0
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description BasicHttpParams()Deprecated. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclear()Deprecated.Removes all parameters from this collection.java.lang.Objectclone()Deprecated.Clones the instance.HttpParamscopy()Deprecated.Creates a copy of these parameters.voidcopyParams(HttpParams target)Deprecated.Copies the locally defined parameters to the argument parameters.java.util.Set<java.lang.String>getNames()Deprecated.Returns the current set of names.java.lang.ObjectgetParameter(java.lang.String name)Deprecated.Obtains the value of the given parameter.booleanisParameterSet(java.lang.String name)Deprecated.Is the parameter set?booleanisParameterSetLocally(java.lang.String name)Deprecated.Is the parameter set in this object?booleanremoveParameter(java.lang.String name)Deprecated.Removes the parameter with the specified name.HttpParamssetParameter(java.lang.String name, java.lang.Object value)Deprecated.Assigns the value to the parameter with the given name.voidsetParameters(java.lang.String[] names, java.lang.Object value)Deprecated.Assigns the value to all the parameter with the given namesjava.lang.StringtoString()Deprecated.- 
Methods inherited from class org.apache.http.params.AbstractHttpParams
getBooleanParameter, getDoubleParameter, getIntParameter, getLongParameter, isParameterFalse, isParameterTrue, setBooleanParameter, setDoubleParameter, setIntParameter, setLongParameter 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getParameter
public java.lang.Object getParameter(java.lang.String name)
Deprecated.Description copied from interface:HttpParamsObtains the value of the given parameter.- Specified by:
 getParameterin interfaceHttpParams- Parameters:
 name- the parent name.- Returns:
 - an object that represents the value of the parameter,
          
nullif the parameter is not set or if it is explicitly set tonull - See Also:
 HttpParams.setParameter(String, Object)
 
- 
setParameter
public HttpParams setParameter(java.lang.String name, java.lang.Object value)
Deprecated.Description copied from interface:HttpParamsAssigns the value to the parameter with the given name.- Specified by:
 setParameterin interfaceHttpParams- Parameters:
 name- parameter namevalue- parameter value
 
- 
removeParameter
public boolean removeParameter(java.lang.String name)
Deprecated.Description copied from interface:HttpParamsRemoves the parameter with the specified name.- Specified by:
 removeParameterin interfaceHttpParams- Parameters:
 name- parameter name- Returns:
 - true if the parameter existed and has been removed, false else.
 
 
- 
setParameters
public void setParameters(java.lang.String[] names, java.lang.Object value)Deprecated.Assigns the value to all the parameter with the given names- Parameters:
 names- array of parameter namesvalue- parameter value
 
- 
isParameterSet
public boolean isParameterSet(java.lang.String name)
Deprecated.Is the parameter set?Uses
getParameter(String)(which is overrideable) to fetch the parameter value, if any.Also @see
isParameterSetLocally(String)- Parameters:
 name- parameter name- Returns:
 - true if parameter is defined and non-null
 
 
- 
isParameterSetLocally
public boolean isParameterSetLocally(java.lang.String name)
Deprecated.Is the parameter set in this object?The parameter value is fetched directly.
Also @see
isParameterSet(String)- Parameters:
 name- parameter name- Returns:
 - true if parameter is defined and non-null
 
 
- 
clear
public void clear()
Deprecated.Removes all parameters from this collection. 
- 
copy
public HttpParams copy()
Deprecated.Creates a copy of these parameters. This implementation callsclone().- Specified by:
 copyin interfaceHttpParams- Returns:
 - a new set of params holding a copy of the local parameters in this object.
 - Throws:
 java.lang.UnsupportedOperationException- if the clone() fails
 
- 
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionDeprecated.Clones the instance. UsescopyParams(HttpParams)to copy the parameters.- Throws:
 java.lang.CloneNotSupportedException
 
- 
copyParams
public void copyParams(HttpParams target)
Deprecated.Copies the locally defined parameters to the argument parameters. This method is called fromclone().- Parameters:
 target- the parameters to which to copy- Since:
 - 4.2
 
 
- 
getNames
public java.util.Set<java.lang.String> getNames()
Deprecated.Returns the current set of names. Changes to the underlying HttpParams are not reflected in the set - it is a snapshot.- Specified by:
 getNamesin interfaceHttpParamsNames- Overrides:
 getNamesin classAbstractHttpParams- Returns:
 - the names, as a Set<String>
 - Since:
 - 4.2
 
 
- 
toString
public java.lang.String toString()
Deprecated.- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -