| java.lang.Object org.apache.commons.httpclient.params.DefaultHttpParams
All known Subclasses: org.apache.commons.httpclient.params.HttpMethodParams, org.apache.commons.httpclient.params.HttpConnectionParams, org.apache.commons.httpclient.params.HostParams,
DefaultHttpParams | public class DefaultHttpParams implements HttpParams,Serializable,Cloneable(Code) | | 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.
author: Oleg Kalnichevski version: $Revision: 510589 $ since: 3.0 |
Method Summary | |
public void | clear() Removes all parameters from this collection. | public Object | clone() Clones this collection of parameters. | 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) |
DefaultHttpParams | public DefaultHttpParams(HttpParams defaults)(Code) | | 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 parameteris not explictly set in the collection itself. |
clear | public void clear()(Code) | | Removes all parameters from this collection.
|
getBooleanParameter | public boolean getBooleanParameter(String name, boolean defaultValue)(Code) | | |
getDoubleParameter | public double getDoubleParameter(String name, double defaultValue)(Code) | | |
getIntParameter | public int getIntParameter(String name, int defaultValue)(Code) | | |
getLongParameter | public long getLongParameter(String name, long defaultValue)(Code) | | |
isParameterFalse | public boolean isParameterFalse(String name)(Code) | | |
isParameterSet | public boolean isParameterSet(String name)(Code) | | |
isParameterSetLocally | public boolean isParameterSetLocally(String name)(Code) | | |
isParameterTrue | public boolean isParameterTrue(String name)(Code) | | |
setBooleanParameter | public void setBooleanParameter(String name, boolean value)(Code) | | |
setDoubleParameter | public void setDoubleParameter(String name, double value)(Code) | | |
setIntParameter | public void setIntParameter(String name, int value)(Code) | | |
setLongParameter | public void setLongParameter(String name, long value)(Code) | | |
setParameters | public synchronized void setParameters(String[] names, Object value)(Code) | | Assigns the value to all the parameter with the given names
Parameters: names - array of parameter name Parameters: value - parameter value |
|
|