Save This Page
Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » params » [javadoc | source]
org.apache.commons.httpclient.params
public class: DefaultHttpParams [javadoc | source]
java.lang.Object
   org.apache.commons.httpclient.params.DefaultHttpParams

All Implemented Interfaces:
    Cloneable, Serializable, HttpParams

Direct Known Subclasses:
    HttpConnectionManagerParams, HostParams, HttpClientParams, HttpConnectionParams, HttpMethodParams

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.
Constructor:
 public DefaultHttpParams() 
 public DefaultHttpParams(HttpParams defaults) 
    Creates a new collection of parameters with the given parent. The collection will defer to its parent for a default value if a particular parameter is not explicitly set in the collection itself.
    Parameters:
    defaults - the parent collection to defer to, if a parameter is not explictly set in the collection itself.
Method from org.apache.commons.httpclient.params.DefaultHttpParams Summary:
clear,   clone,   getBooleanParameter,   getDefaultParams,   getDefaults,   getDoubleParameter,   getIntParameter,   getLongParameter,   getParameter,   isParameterFalse,   isParameterSet,   isParameterSetLocally,   isParameterTrue,   setBooleanParameter,   setDefaults,   setDoubleParameter,   setHttpParamsFactory,   setIntParameter,   setLongParameter,   setParameter,   setParameters
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.httpclient.params.DefaultHttpParams Detail:
 public  void clear() 
    Removes all parameters from this collection.
 public Object clone() throws CloneNotSupportedException 
    Clones this collection of parameters. Please note that paramter values themselves are not cloned.
 public boolean getBooleanParameter(String name,
    boolean defaultValue) 
 public static HttpParams getDefaultParams() 
    Gets the default HttpParams to be used.
 public synchronized HttpParams getDefaults() 
 public double getDoubleParameter(String name,
    double defaultValue) 
 public int getIntParameter(String name,
    int defaultValue) 
 public long getLongParameter(String name,
    long defaultValue) 
 public synchronized Object getParameter(String name) 
 public boolean isParameterFalse(String name) 
 public boolean isParameterSet(String name) 
 public boolean isParameterSetLocally(String name) 
 public boolean isParameterTrue(String name) 
 public  void setBooleanParameter(String name,
    boolean value) 
 public synchronized  void setDefaults(HttpParams params) 
 public  void setDoubleParameter(String name,
    double value) 
 public static  void setHttpParamsFactory(HttpParamsFactory httpParamsFactory) 
    Sets the factory that will provide the default HttpParams.
 public  void setIntParameter(String name,
    int value) 
 public  void setLongParameter(String name,
    long value) 
 public synchronized  void setParameter(String name,
    Object value) 
 public synchronized  void setParameters(String[] names,
    Object value) 
    Assigns the value to all the parameter with the given names