@NotThreadSafe 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() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all parameters from this collection.
|
Object |
clone()
Clones the instance.
|
HttpParams |
copy()
Deprecated.
(4.1)
|
void |
copyParams(HttpParams target)
Copies the locally defined parameters to the argument parameters.
|
Set<String> |
getNames()
Returns the current set of names.
|
Object |
getParameter(String name)
Obtains the value of the given parameter.
|
boolean |
isParameterSet(String name)
Is the parameter set?
|
boolean |
isParameterSetLocally(String name)
Is the parameter set in this object?
|
boolean |
removeParameter(String name)
Removes the parameter with the specified name.
|
HttpParams |
setParameter(String name,
Object value)
Assigns the value to the parameter with the given name.
|
void |
setParameters(String[] names,
Object value)
Assigns the value to all the parameter with the given names
|
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()
@Deprecated 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–2013 The Apache Software Foundation. All rights reserved.