Deprecated
(4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config'
The purpose of this interface is to define a behavior of other components. Usually each complex component has its own HTTP parameter collection.
Instances of this interface can be linked together to form a hierarchy. In the simplest form one set of parameters can use content of another one to obtain default values of parameters not present in the local set.
| Modifier and Type | Method and Description |
|---|---|
| public HttpParams | Returns: a new set of parameters holding the same values as this one
Deprecated
as a consequence of
Creates a copy of these parameters.
HttpParams being deprecated.
|
| public boolean | Returns: aBoolean that represents the value of the parameter.the parent name. name, boolean the default value. defaultValue)Returns a |
| public double | Returns: aDouble that represents the value of the parameter.the parent name. name, double the default value. defaultValue)Returns a |
| public int | Returns: aInteger that represents the value of the parameter.the parent name. name, int the default value. defaultValue)Returns an |
| public long | Returns: aLong that represents the value of the parameter.the parent name. name, long the default value. defaultValue)Returns a |
| public Object | Returns: an object that represents the value of the parameter,null if the parameter is not set or if it
is explicitly set to nullthe parent name. name)Obtains the value of the given parameter. |
| public boolean | Returns: true if the parameter is either not set or
set to value false,
false if it is set to trueparameter name name)Checks if a boolean parameter is not set or |
| public boolean | Returns: true if the parameter is set to value true,
false if it is not set or set to falseparameter name name)Checks if a boolean parameter is set to |
| public boolean | Returns: true if the parameter existed and has been removed, false else.parameter name name)Removes the parameter with the specified name. |
| public HttpParams | setBooleanParameter(String
parameter name name, boolean parameter value value)
Deprecated
as a consequence of
Assigns a HttpParams being deprecated.
Boolean to the parameter with the given name
|
| public HttpParams | setDoubleParameter(String
parameter name name, double parameter value value)
Deprecated
as a consequence of
Assigns a HttpParams being deprecated.
Double to the parameter with the given name
|
| public HttpParams | setIntParameter(String
parameter name name, int parameter value value)
Deprecated
as a consequence of
Assigns an HttpParams being deprecated.
Integer to the parameter with the given name
|
| public HttpParams | setLongParameter(String
parameter name name, long parameter value value)
Deprecated
as a consequence of
Assigns a HttpParams being deprecated.
Long to the parameter with the given name
|
| public HttpParams | setParameter(String
parameter name name, Object parameter value value)
Deprecated
as a consequence of
Assigns the value to the parameter with the given name.
HttpParams being deprecated.
|
| copy | back to summary |
|---|---|
| public HttpParams copy()
Deprecated as a consequence of Creates a copy of these parameters.
| |
| getBooleanParameter | back to summary |
|---|---|
| public boolean getBooleanParameter(String name, boolean defaultValue) Returns a
| |
| getDoubleParameter | back to summary |
|---|---|
| public double getDoubleParameter(String name, double defaultValue) Returns a
| |
| getIntParameter | back to summary |
|---|---|
| public int getIntParameter(String name, int defaultValue) Returns an
| |
| getLongParameter | back to summary |
|---|---|
| public long getLongParameter(String name, long defaultValue) Returns a
| |
| getParameter | back to summary |
|---|---|
| public Object getParameter(String name) Obtains the value of the given parameter.
| |
| isParameterFalse | back to summary |
|---|---|
| public boolean isParameterFalse(String name) Checks if a boolean parameter is not set or
| |
| isParameterTrue | back to summary |
|---|---|
| public boolean isParameterTrue(String name) Checks if a boolean parameter is set to
| |
| removeParameter | back to summary |
|---|---|
| public boolean removeParameter(String name) Removes the parameter with the specified name.
| |
| setBooleanParameter | back to summary |
|---|---|
| public HttpParams setBooleanParameter(String name, boolean value)
Deprecated as a consequence of Assigns a
| |
| setDoubleParameter | back to summary |
|---|---|
| public HttpParams setDoubleParameter(String name, double value)
Deprecated as a consequence of Assigns a
| |
| setIntParameter | back to summary |
|---|---|
| public HttpParams setIntParameter(String name, int value)
Deprecated as a consequence of Assigns an
| |
| setLongParameter | back to summary |
|---|---|
| public HttpParams setLongParameter(String name, long value)
Deprecated as a consequence of Assigns a
| |
| setParameter | back to summary |
|---|---|
| public HttpParams setParameter(String name, Object value)
Deprecated as a consequence of Assigns the value to the parameter with the given name. | |