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

Represents a status line as returned from a HTTP server. More...

Inheritance diagram for BasicStatusLine:
StatusLine

Description

See RFC2616 section 6.1. This class is immutable and therefore inherently thread safe.

See also
HttpStatus
Author
Jeff Dever
Mike Bowler
Version
Id
BasicStatusLine.java 604625 2007-12-16 14:11:11Z olegk
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

 BasicStatusLine (final ProtocolVersion version, int statusCode, final String reasonPhrase)
 Creates a new status line with the given version, status, and reason. More...
 
int getStatusCode ()
 
ProtocolVersion getProtocolVersion ()
 
String getReasonPhrase ()
 

Constructor & Destructor Documentation

◆ BasicStatusLine()

BasicStatusLine ( final ProtocolVersion  version,
int  statusCode,
final String  reasonPhrase 
)
Parameters
versionthe protocol version of the response
statusCodethe status code of the response
reasonPhrasethe reason phrase to the status code, or null

Member Function Documentation

◆ getStatusCode()

int getStatusCode ( )
Returns
the Status-Code

Implements StatusLine.

◆ getProtocolVersion()

ProtocolVersion getProtocolVersion ( )
Returns
the HTTP-Version

Implements StatusLine.

◆ getReasonPhrase()

String getReasonPhrase ( )
Returns
the Reason-Phrase

Implements StatusLine.