Android
org.apache.http.params
public final class

org.apache.http.params.BasicHttpParams

java.lang.Object
org.apache.http.params.AbstractHttpParams HttpParams
org.apache.http.params.BasicHttpParams Serializable Cloneable

This class represents a collection of HTTP protocol parameters. Protocol parameters may be linked together to form a hierarchy. If a particular parameter value has not been explicitly defined in the collection itself, its value will be drawn from the parent collection of parameters.

Summary

Public Constructors

            BasicHttpParams()

Public Methods

          void  clear()
Removes all parameters from this collection.
          Object  clone()
Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.
          HttpParams  copy()
Creates a copy of these parameters.
          Object  getParameter(String name)
          boolean  isParameterSet(String name)
          boolean  isParameterSetLocally(String name)
          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.
Methods inherited from class org.apache.http.params.AbstractHttpParams
Methods inherited from class java.lang.Object
Methods inherited from interface org.apache.http.params.HttpParams

Details

Public Constructors

public BasicHttpParams()

Public Methods

public void clear()

Removes all parameters from this collection.

public Object clone()

Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.

Classes which wish to support cloning must specify that they implement the Cloneable interface, since the implementation checks for this.

Returns

  • Object a shallow copy of this object.

public HttpParams copy()

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)

public boolean isParameterSetLocally(String name)

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 name
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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48