• BlackBerry Dynamics
  • Runtime library for Android applications
  • 12.0.1.79
DefaultedHttpParams Class Reference

com.good.gd.apache.http.params.HttpParams implementation that delegates resolution of a parameter to the given default com.good.gd.apache.http.params.HttpParams instance if the parameter is not present in the local one. More...

Inheritance diagram for DefaultedHttpParams:
AbstractHttpParams HttpParams

Description

The state of the local collection can be mutated, whereas the default collection is treated as read-only.

Author
Oleg Kalnichevski
Version
Revision
610763

Notice

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

HttpParams copy ()
 Creates a copy of the local collection with the same default.
 
Object getParameter (final String name)
 Retrieves the value of the parameter from the local collection and, if the parameter is not set locally, delegates its resolution to the default collection.
 
boolean removeParameter (final String name)
 Attempts to remove the parameter from the local collection. More...
 
HttpParams setParameter (final String name, final Object value)
 Sets the parameter in the local collection. More...
 
- Public Member Functions inherited from AbstractHttpParams
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...
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractHttpParams
 AbstractHttpParams ()
 Instantiates parameters.
 

Member Function Documentation

◆ removeParameter()

boolean removeParameter ( final String  name)

This method does not modify the default collection.

Implements HttpParams.

◆ setParameter()

HttpParams setParameter ( final String  name,
final Object  value 
)

This method does not modify the default collection.

Implements HttpParams.