org.apache.http.params.HttpParams |
Known Indirect Subclasses |
HttpParams interface represents a collection of immutable values that define a runtime behavior of a component. HTTP parameters should be simple objects: integers, doubles, strings, collections and objects that remain immutable at runtime. HttpParams is expected to be used in the 'write once - ready many' mode. Once initialized HTTP parameters are not expected to mutate in the course of HTTP message processing.
The purpose of this intreface 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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
No replacement.
| |||||||||||
Returns a Boolean parameter value with the given name.
| |||||||||||
Returns a Double parameter value with the given name.
| |||||||||||
Returns an Integer parameter value with the given name.
| |||||||||||
Returns a Long parameter value with the given name.
| |||||||||||
Obtains the value of the given parameter.
| |||||||||||
Checks if a boolean parameter is not set or
false . | |||||||||||
Checks if a boolean parameter is set to
true . | |||||||||||
Removes the parameter with the specified name.
| |||||||||||
Assigns a Boolean to the parameter with the given name
| |||||||||||
Assigns a Double to the parameter with the given name
| |||||||||||
Assigns an Integer to the parameter with the given name
| |||||||||||
Assigns a Long to the parameter with the given name
| |||||||||||
Assigns the value to the parameter with the given name.
|
This method is deprecated.
No replacement.
Creates a copy of these parameters.
Returns a Boolean parameter value with the given name. If the parameter is not explicitly set, the default value is returned.
name | the parent name. |
---|---|
defaultValue | the default value. |
Returns a Double parameter value with the given name. If the parameter is not explicitly set, the default value is returned.
name | the parent name. |
---|---|
defaultValue | the default value. |
Returns an Integer parameter value with the given name. If the parameter is not explicitly set, the default value is returned.
name | the parent name. |
---|---|
defaultValue | the default value. |
Returns a Long parameter value with the given name. If the parameter is not explicitly set, the default value is returned.
name | the parent name. |
---|---|
defaultValue | the default value. |
Obtains the value of the given parameter.
name | the parent name. |
---|
null
if the parameter is not set or if it
is explicitly set to null
Checks if a boolean parameter is not set or false
.
name | parameter name |
---|
true
Checks if a boolean parameter is set to true
.
name | parameter name |
---|
false
Removes the parameter with the specified name.
name | parameter name |
---|
Assigns a Boolean to the parameter with the given name
name | parameter name |
---|---|
value | parameter value |
Assigns a Double to the parameter with the given name
name | parameter name |
---|---|
value | parameter value |
Assigns an Integer to the parameter with the given name
name | parameter name |
---|---|
value | parameter value |
Assigns a Long to the parameter with the given name
name | parameter name |
---|---|
value | parameter value |
Assigns the value to the parameter with the given name.
name | parameter name |
---|---|
value | parameter value |