• BlackBerry Dynamics
  • Runtime library for Android applications
  • 12.0.1.79
CoreProtocolPNames Interface Reference

Defines parameter names for protocol execution in HttpCore. More...

Inheritance diagram for CoreProtocolPNames:
AllClientPNames HttpProtocolParams

Description

Version
Revision
576077
Since
4.0

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 Attributes

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 Data Documentation

◆ PROTOCOL_VERSION

final String PROTOCOL_VERSION = "http.protocol.version"
static

This parameter expects a value of type com.good.gd.apache.http.ProtocolVersion.

◆ HTTP_ELEMENT_CHARSET

final String HTTP_ELEMENT_CHARSET = "http.protocol.element-charset"
static

This parameter expects a value of type String.

◆ HTTP_CONTENT_CHARSET

final String HTTP_CONTENT_CHARSET = "http.protocol.content-charset"
static

This parameter expects a value of type String.

◆ USER_AGENT

final String USER_AGENT = "http.useragent"
static

This parameter expects a value of type String.

◆ ORIGIN_SERVER

final String ORIGIN_SERVER = "http.origin-server"
static

This parameter expects a value of type String.

◆ STRICT_TRANSFER_ENCODING

final String STRICT_TRANSFER_ENCODING = "http.protocol.strict-transfer-encoding"
static

This parameter expects a value of type Boolean.

◆ USE_EXPECT_CONTINUE

final String USE_EXPECT_CONTINUE = "http.protocol.expect-continue"
static

Activates 'Expect: 100-continue' handshake for the entity enclosing methods. The purpose of the 'Expect: 100-continue' handshake to allow a client that is sending a request message with a request body to determine if the origin server is willing to accept the request (based on the request headers) before the client sends the request body.

The use of the 'Expect: 100-continue' handshake can result in noticable peformance improvement for entity enclosing requests (such as POST and PUT) that require the target server's authentication.

'Expect: 100-continue' handshake should be used with caution, as it may cause problems with HTTP servers and proxies that do not support HTTP/1.1 protocol.

This parameter expects a value of type Boolean.

◆ WAIT_FOR_CONTINUE

final String WAIT_FOR_CONTINUE = "http.protocol.wait-for-continue"
static

Defines the maximum period of time in milliseconds the client should spend waiting for a 100-continue response.

This parameter expects a value of type Integer.