@Contract(threading=SAFE) @Deprecated public class SyncBasicHttpParams extends BasicHttpParams
BasicHttpParams
.Constructor and Description |
---|
SyncBasicHttpParams()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Deprecated.
Removes all parameters from this collection.
|
Object |
clone()
Deprecated.
Clones the instance.
|
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
|
copy, copyParams, getNames, toString
getBooleanParameter, getDoubleParameter, getIntParameter, getLongParameter, isParameterFalse, isParameterTrue, setBooleanParameter, setDoubleParameter, setIntParameter, setLongParameter
public boolean removeParameter(String name)
HttpParams
removeParameter
in interface HttpParams
removeParameter
in class BasicHttpParams
name
- parameter namepublic HttpParams setParameter(String name, Object value)
HttpParams
setParameter
in interface HttpParams
setParameter
in class BasicHttpParams
name
- parameter namevalue
- parameter valuepublic Object getParameter(String name)
HttpParams
getParameter
in interface HttpParams
getParameter
in class BasicHttpParams
name
- the parent name.null
if the parameter is not set or if it
is explicitly set to null
HttpParams.setParameter(String, Object)
public boolean isParameterSet(String name)
BasicHttpParams
Uses BasicHttpParams.getParameter(String)
(which is overrideable) to
fetch the parameter value, if any.
isParameterSet
in class BasicHttpParams
name
- parameter namepublic boolean isParameterSetLocally(String name)
BasicHttpParams
The parameter value is fetched directly.
Also @see BasicHttpParams.isParameterSet(String)
isParameterSetLocally
in class BasicHttpParams
name
- parameter namepublic void setParameters(String[] names, Object value)
BasicHttpParams
setParameters
in class BasicHttpParams
names
- array of parameter namesvalue
- parameter valuepublic void clear()
BasicHttpParams
clear
in class BasicHttpParams
public Object clone() throws CloneNotSupportedException
BasicHttpParams
BasicHttpParams.copyParams(HttpParams)
to copy the parameters.clone
in class BasicHttpParams
CloneNotSupportedException
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.