@Deprecated @Contract(threading=SAFE) public class BasicHttpParams extends AbstractHttpParams implements Serializable, Cloneable
HttpParams interface.
Please note access to the internal structures of this class is not synchronized and therefore this class may be thread-unsafe.
| Constructor and Description |
|---|
BasicHttpParams()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
Removes all parameters from this collection.
|
Object |
clone()
Deprecated.
Clones the instance.
|
HttpParams |
copy()
Deprecated.
Creates a copy of these parameters.
|
void |
copyParams(HttpParams target)
Deprecated.
Copies the locally defined parameters to the argument parameters.
|
Set<String> |
getNames()
Deprecated.
Returns the current set of names.
|
Object |
getParameter(String name)
Deprecated.
Obtains the value of the given parameter.
|
boolean |
isParameterSet(String name)
Deprecated.
Is the parameter set?
|
boolean |
isParameterSetLocally(String name)
Deprecated.
Is the parameter set in this object?
|
boolean |
removeParameter(String name)
Deprecated.
Removes the parameter with the specified name.
|
HttpParams |
setParameter(String name,
Object value)
Deprecated.
Assigns the value to the parameter with the given name.
|
void |
setParameters(String[] names,
Object value)
Deprecated.
Assigns the value to all the parameter with the given names
|
String |
toString()
Deprecated.
|
getBooleanParameter, getDoubleParameter, getIntParameter, getLongParameter, isParameterFalse, isParameterTrue, setBooleanParameter, setDoubleParameter, setIntParameter, setLongParameterpublic Object getParameter(String name)
HttpParamsgetParameter in interface HttpParamsname - the parent name.null if the parameter is not set or if it
is explicitly set to nullHttpParams.setParameter(String, Object)public HttpParams setParameter(String name, Object value)
HttpParamssetParameter in interface HttpParamsname - parameter namevalue - parameter valuepublic boolean removeParameter(String name)
HttpParamsremoveParameter in interface HttpParamsname - parameter namepublic void setParameters(String[] names, Object value)
names - array of parameter namesvalue - parameter valuepublic boolean isParameterSet(String name)
Uses getParameter(String) (which is overrideable) to
fetch the parameter value, if any.
Also @see isParameterSetLocally(String)
name - parameter namepublic boolean isParameterSetLocally(String name)
The parameter value is fetched directly.
Also @see isParameterSet(String)
name - parameter namepublic void clear()
public HttpParams copy()
clone().copy in interface HttpParamsUnsupportedOperationException - if the clone() failspublic Object clone() throws CloneNotSupportedException
copyParams(HttpParams) to copy the parameters.clone in class ObjectCloneNotSupportedExceptionpublic void copyParams(HttpParams target)
clone().target - the parameters to which to copypublic Set<String> getNames()
getNames in interface HttpParamsNamesgetNames in class AbstractHttpParamsCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.