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

This class implements an adaptor around the com.good.gd.apache.http.params.HttpParams interface to simplify manipulation of the HTTP protocol specific parameters. More...

Inheritance diagram for HttpProtocolParams:
CoreProtocolPNames

Description


Note that the implements relation to com.good.gd.apache.http.params.CoreProtocolPNames is for compatibility with existing application code only. References to the parameter names should use the interface, not this class.

Author
Oleg Kalnichevski
Version
Revision
576089
Since
4.0
See also
CoreProtocolPNames

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.
 */

Static Public Member Functions

static String getHttpElementCharset (final HttpParams params)
 Returns the charset to be used for writing HTTP headers. More...
 
static void setHttpElementCharset (final HttpParams params, final String charset)
 Sets the charset to be used for writing HTTP headers. More...
 
static String getContentCharset (final HttpParams params)
 Returns the default charset to be used for writing content body, when no charset explicitly specified. More...
 
static void setContentCharset (final HttpParams params, final String charset)
 Sets the default charset to be used for writing content body, when no charset explicitly specified. More...
 
static ProtocolVersion getVersion (final HttpParams params)
 Returns protocol version to be used per default. More...
 
static void setVersion (final HttpParams params, final ProtocolVersion version)
 Assigns the protocol version to be used by the HTTP methods that this collection of parameters applies to. More...
 

Additional Inherited Members

- Static Public Attributes inherited from CoreProtocolPNames
static final String PROTOCOL_VERSION = "http.protocol.version"
 Defines the protocol version used per default. More...
 
static final String HTTP_ELEMENT_CHARSET = "http.protocol.element-charset"
 Defines the charset to be used for encoding HTTP protocol elements. More...
 
static final String HTTP_CONTENT_CHARSET = "http.protocol.content-charset"
 Defines the charset to be used per default for encoding content body. More...
 
static final String USER_AGENT = "http.useragent"
 Defines the content of the User-Agent header. More...
 
static final String ORIGIN_SERVER = "http.origin-server"
 Defines the content of the Server header. More...
 
static final String STRICT_TRANSFER_ENCODING = "http.protocol.strict-transfer-encoding"
 Defines whether responses with an invalid Transfer-Encoding header should be rejected. More...
 
static final String USE_EXPECT_CONTINUE = "http.protocol.expect-continue"
 
static final String WAIT_FOR_CONTINUE = "http.protocol.wait-for-continue"
 

Member Function Documentation

◆ getHttpElementCharset()

static String getHttpElementCharset ( final HttpParams  params)
static
Parameters
paramsHTTP parameters.
Returns
The charset

◆ setHttpElementCharset()

static void setHttpElementCharset ( final HttpParams  params,
final String  charset 
)
static
Parameters
paramsHTTP parameters.
charsetThe charset

◆ getContentCharset()

static String getContentCharset ( final HttpParams  params)
static
Parameters
paramsHTTP parameters.
Returns
The charset

◆ setContentCharset()

static void setContentCharset ( final HttpParams  params,
final String  charset 
)
static
Parameters
paramsHTTP parameters.
charsetThe charset

◆ getVersion()

static ProtocolVersion getVersion ( final HttpParams  params)
static
Parameters
paramsHTTP parameters.
Returns
protocol version

◆ setVersion()

static void setVersion ( final HttpParams  params,
final ProtocolVersion  version 
)
static
Parameters
paramsHTTP parameters.
versionthe protocol version