public class

BasicHttpParams

extends AbstractHttpParams
implements Serializable Cloneable
java.lang.Object
   ↳ org.apache.http.params.AbstractHttpParams
     ↳ org.apache.http.params.BasicHttpParams
Known Direct Subclasses

Class Overview

Default implementation of HttpParams interface.

Please note access to the internal structures of this class is not synchronized and therefore this class may be thread-unsafe.

Summary

Public Constructors
BasicHttpParams()
Public Methods
void clear()
Removes all parameters from this collection.
Object clone()
HttpParams copy()
This method is deprecated. No replacement.
Object getParameter(String name)
boolean isParameterSet(String name)
Is the parameter set?

Uses getParameter(String) (which is overrideable) to fetch the parameter value, if any.

boolean isParameterSetLocally(String name)
Is the parameter set in this object?

The parameter value is fetched directly.

boolean removeParameter(String name)
HttpParams setParameter(String name, Object value)
void setParameters(String[] names, Object value)
Assigns the value to all the parameter with the given names
Protected Methods
void copyParams(HttpParams target)
Copies the locally defined parameters to the argument parameters.
[Expand]
Inherited Methods
From class org.apache.http.params.AbstractHttpParams
From class java.lang.Object
From interface org.apache.http.params.HttpParams

Public Constructors

public BasicHttpParams ()

Public Methods

public void clear ()

Removes all parameters from this collection.

public Object clone ()

public HttpParams copy ()

This method is deprecated.
No replacement.

Creates a copy of these parameters. The implementation here instantiates BasicHttpParams, then calls copyParams(HttpParams) to populate the copy.

Returns
  • a new set of params holding a copy of the local parameters in this object.

public Object getParameter (String name)

public boolean isParameterSet (String name)

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

public boolean isParameterSetLocally (String name)

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

public boolean removeParameter (String name)

public HttpParams setParameter (String name, Object value)

public void setParameters (String[] names, Object value)

Assigns the value to all the parameter with the given names

Parameters
names array of parameter names
value parameter value

Protected Methods

protected void copyParams (HttpParams target)

Copies the locally defined parameters to the argument parameters. This method is called from copy().

Parameters
target the parameters to which to copy