public class

SyncBasicHttpParams

extends BasicHttpParams
java.lang.Object
   ↳ org.apache.http.params.AbstractHttpParams
     ↳ org.apache.http.params.BasicHttpParams
       ↳ org.apache.http.params.SyncBasicHttpParams

Class Overview

Thread-safe extension of the BasicHttpParams.

Summary

Public Constructors
SyncBasicHttpParams()
Public Methods
synchronized void clear()
Removes all parameters from this collection.
synchronized Object clone()
synchronized Object getParameter(String name)
synchronized boolean isParameterSet(String name)
Is the parameter set?

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

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

The parameter value is fetched directly.

synchronized boolean removeParameter(String name)
synchronized HttpParams setParameter(String name, Object value)
synchronized void setParameters(String[] names, Object value)
Assigns the value to all the parameter with the given names
[Expand]
Inherited Methods
From class org.apache.http.params.BasicHttpParams
From class org.apache.http.params.AbstractHttpParams
From class java.lang.Object
From interface org.apache.http.params.HttpParams

Public Constructors

public SyncBasicHttpParams ()

Public Methods

public synchronized void clear ()

Removes all parameters from this collection.

public synchronized Object clone ()

public synchronized Object getParameter (String name)

public synchronized 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 synchronized 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 synchronized boolean removeParameter (String name)

public synchronized HttpParams setParameter (String name, Object value)

public synchronized 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