Android APIs
public final class

DefaultedHttpParams

extends AbstractHttpParams
java.lang.Object
   ↳ org.apache.http.params.AbstractHttpParams
     ↳ org.apache.http.params.DefaultedHttpParams

Class Overview

HttpParams implementation that delegates resolution of a parameter to the given default HttpParams instance if the parameter is not present in the local one. The state of the local collection can be mutated, whereas the default collection is treated as read-only.

Summary

Public Constructors
DefaultedHttpParams(HttpParams local, HttpParams defaults)
Public Methods
HttpParams copy()
Creates a copy of the local collection with the same default
HttpParams getDefaults()
Object getParameter(String name)
Retrieves the value of the parameter from the local collection and, if the parameter is not set locally, delegates its resolution to the default collection.
boolean removeParameter(String name)
Attempts to remove the parameter from the local collection.
HttpParams setParameter(String name, Object value)
Sets the parameter in the local collection.
[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 DefaultedHttpParams (HttpParams local, HttpParams defaults)

Added in API level 1

Public Methods

public HttpParams copy ()

Added in API level 1

Creates a copy of the local collection with the same default

public HttpParams getDefaults ()

Added in API level 1

public Object getParameter (String name)

Added in API level 1

Retrieves the value of the parameter from the local collection and, if the parameter is not set locally, delegates its resolution to the default collection.

public boolean removeParameter (String name)

Added in API level 1

Attempts to remove the parameter from the local collection. This method does not modify the default collection.

public HttpParams setParameter (String name, Object value)

Added in API level 1

Sets the parameter in the local collection. This method does not modify the default collection.