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

Represents an HTTP header field. More...

Inheritance diagram for BasicHeader:
Header

Description

The HTTP header fields follow the same generic format as that given in Section 3.1 of RFC 822. Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive. The field value MAY be preceded by any amount of LWS, though a single SP is preferred.

      message-header = field-name ":" [ field-value ]
      field-name     = token
      field-value    = *( field-content | LWS )
      field-content  = <the OCTETs making up the field-value
                       and consisting of either *TEXT or combinations
                       of token, separators, and quoted-string>
*
Author
Remy Maucherat
Mike Bowler
Oleg Kalnichevski
Version
Revision
652956
Date
2008-05-02 17:13:05 -0700 (Fri, 02 May 2008)
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.
 */

Public Member Functions

 BasicHeader (final String name, final String value)
 Constructor with name and value. More...
 
String getName ()
 Returns the header name. More...
 
String getValue ()
 Returns the header value. More...
 
String toString ()
 Returns a String representation of the header. More...
 
HeaderElement[] getElements () throws ParseException
 Returns an array of com.good.gd.apache.http.HeaderElement constructed from my value. More...
 

Constructor & Destructor Documentation

◆ BasicHeader()

BasicHeader ( final String  name,
final String  value 
)
Parameters
namethe header name
valuethe header value

Member Function Documentation

◆ getName()

String getName ( )
Returns
String name The name

Implements Header.

◆ getValue()

String getValue ( )
Returns
String value The current value.

Implements Header.

◆ toString()

String toString ( )
Returns
a string

◆ getElements()

HeaderElement [] getElements ( ) throws ParseException
See also
BasicHeaderValueParser::parseElements(String, HeaderValueParser)
Returns
an array of header elements
Exceptions
ParseExceptionin case of a parse error

Implements Header.