Abstract base class for parameter collections. More...
Type specific setters and getters are mapped to the abstract, generic getters and setters.
The following notice applies to the original API on which this API is based, and to its documentation. The documentation of this API has been revised from the original.
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */
Public Member Functions | |
long | getLongParameter (final String name, long defaultValue) |
Returns a Long parameter value with the given name. More... | |
HttpParams | setLongParameter (final String name, long value) |
Assigns a Long to the parameter with the given name. More... | |
int | getIntParameter (final String name, int defaultValue) |
Returns an Integer parameter value with the given name. More... | |
HttpParams | setIntParameter (final String name, int value) |
Assigns an Integer to the parameter with the given name. More... | |
double | getDoubleParameter (final String name, double defaultValue) |
Returns a Double parameter value with the given name. More... | |
HttpParams | setDoubleParameter (final String name, double value) |
Assigns a Double to the parameter with the given name. More... | |
boolean | getBooleanParameter (final String name, boolean defaultValue) |
Returns a Boolean parameter value with the given name. More... | |
HttpParams | setBooleanParameter (final String name, boolean value) |
Assigns a Boolean to the parameter with the given name. More... | |
boolean | isParameterTrue (final String name) |
Checks if a boolean parameter is set to true . More... | |
boolean | isParameterFalse (final String name) |
Checks if a boolean parameter is not set or false . More... | |
Public Member Functions inherited from HttpParams | |
Object | getParameter (String name) |
Obtains the value of the given parameter. More... | |
HttpParams | setParameter (String name, Object value) |
Assigns the value to the parameter with the given name. More... | |
HttpParams | copy () |
Creates a copy of these parameters. More... | |
boolean | removeParameter (String name) |
Removes the parameter with the specified name. More... | |
Protected Member Functions | |
AbstractHttpParams () | |
Instantiates parameters. | |
long getLongParameter | ( | final String | name, |
long | defaultValue | ||
) |
If the parameter is not explicitly set, the default value is returned.
name | the parent name. |
defaultValue | the default value. |
Implements HttpParams.
HttpParams setLongParameter | ( | final String | name, |
long | value | ||
) |
name | parameter name |
value | parameter value |
Implements HttpParams.
int getIntParameter | ( | final String | name, |
int | defaultValue | ||
) |
If the parameter is not explicitly set, the default value is returned.
name | the parent name. |
defaultValue | the default value. |
Implements HttpParams.
HttpParams setIntParameter | ( | final String | name, |
int | value | ||
) |
name | parameter name |
value | parameter value |
Implements HttpParams.
double getDoubleParameter | ( | final String | name, |
double | defaultValue | ||
) |
If the parameter is not explicitly set, the default value is returned.
name | the parent name. |
defaultValue | the default value. |
Implements HttpParams.
HttpParams setDoubleParameter | ( | final String | name, |
double | value | ||
) |
name | parameter name |
value | parameter value |
Implements HttpParams.
boolean getBooleanParameter | ( | final String | name, |
boolean | defaultValue | ||
) |
If the parameter is not explicitly set, the default value is returned.
name | the parent name. |
defaultValue | the default value. |
Implements HttpParams.
HttpParams setBooleanParameter | ( | final String | name, |
boolean | value | ||
) |
name | parameter name |
value | parameter value |
Implements HttpParams.
boolean isParameterTrue | ( | final String | name | ) |
name | parameter name |
true
if the parameter is set to value true
, false
if it is not set or set to false
Implements HttpParams.
boolean isParameterFalse | ( | final String | name | ) |
name | parameter name |
true
if the parameter is either not set or set to value false
, false
if it is set to true
Implements HttpParams.