Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.commons.httpclient.params.DefaultHttpParams
public class DefaultHttpParams
extends java.lang.Object
implements HttpParams, Serializable, Cloneable
Constructor Summary | |
| |
|
Method Summary | |
void |
|
Object |
|
boolean |
|
static HttpParams |
|
HttpParams | |
double |
|
int |
|
long |
|
Object |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
void |
|
void |
|
void |
|
static void |
|
void |
|
void |
|
void |
|
void |
|
public DefaultHttpParams()
Creates a new collection of parameters with the collection returned bygetDefaultParams()
as a parent. The collection will defer to its parent for a default value if a particular parameter is not explicitly set in the collection itself.
- See Also:
getDefaultParams()
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.
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.
- See Also:
java.io.Serializable
,java.lang.Object.clone()
public boolean getBooleanParameter(String name, boolean defaultValue)
- Specified by:
- getBooleanParameter in interface HttpParams
public static HttpParams getDefaultParams()
Gets the default HttpParams to be used.
- Returns:
- the value returned from
HttpParamsFactory#getDefaultParams()
- See Also:
HttpParamsFactory.getDefaultParams()
public double getDoubleParameter(String name, double defaultValue)
- Specified by:
- getDoubleParameter in interface HttpParams
public int getIntParameter(String name, int defaultValue)
- Specified by:
- getIntParameter in interface HttpParams
public long getLongParameter(String name, long defaultValue)
- Specified by:
- getLongParameter in interface HttpParams
public Object getParameter(String name)
- Specified by:
- getParameter in interface HttpParams
public boolean isParameterFalse(String name)
- Specified by:
- isParameterFalse in interface HttpParams
public boolean isParameterSet(String name)
- Specified by:
- isParameterSet in interface HttpParams
public boolean isParameterSetLocally(String name)
- Specified by:
- isParameterSetLocally in interface HttpParams
public boolean isParameterTrue(String name)
- Specified by:
- isParameterTrue in interface HttpParams
public void setBooleanParameter(String name, boolean value)
- Specified by:
- setBooleanParameter in interface HttpParams
public void setDefaults(HttpParams params)
- Specified by:
- setDefaults in interface HttpParams
public void setDoubleParameter(String name, double value)
- Specified by:
- setDoubleParameter in interface HttpParams
public static void setHttpParamsFactory(HttpParamsFactory httpParamsFactory)
Sets the factory that will provide the default HttpParams.
- Parameters:
httpParamsFactory
- an instance of HttpParamsFactory
- See Also:
getDefaultParams()
public void setIntParameter(String name, int value)
- Specified by:
- setIntParameter in interface HttpParams
public void setLongParameter(String name, long value)
- Specified by:
- setLongParameter in interface HttpParams
public void setParameter(String name, Object value)
- Specified by:
- setParameter in interface HttpParams
public void setParameters(String[] names, Object value)
Assigns the value to all the parameter with the given names
- Parameters:
names
- array of parameter namevalue
- parameter value