Protocols::Http::ResponseHeader Class Reference

#include <ResponseHeader.h> [code]

Inherits Protocols::Http::HeaderBase.

Inheritance diagram for Protocols::Http::ResponseHeader:

Inheritance graph
[legend]
Collaboration diagram for Protocols::Http::ResponseHeader:

Collaboration graph
[legend]
List of all members.

Detailed Description

ResponseHeader extends HeaderBase and implement the status start line:
	Status-Line		= HTTP-Version SP Status-Code SP Reason-Phrase CRLF
	

Definition at line 40 of file ResponseHeader.h.

Public Member Functions

auto_ptr< DataBasecopy () const
 Virtual copy constructor.
 ResponseHeader (int statusCode=0, const QByteArray &reasonPhrase=QByteArray(), int majorVer=1, int minorVer=1)
 Constructs a ResponseHeader object.
int statusCode () const
 Returns the HTTP status code from the Status-Line of the HTTP response.
QByteArray reasonPhrase () const
 Returns the HTTP reason phrase from the Status-Line of the HTTP response.
int majorVersion () const
 Returns the HTTP major version from the Status-Line of the HTTP response.
int minorVersion () const
 Returns the HTTP minor version from the Status-Line of the HTTP response.

Private Member Functions

bool parseStartLine (const QByteArray &startLine)
 Reimplements the base class function to parse the first header line.
QByteArray rawStartLine () const
 Reimplements the base class function to generate the first header line.
 Q_DECLARE_SHARED_DATA (Data)

Classes

class  Data
 Extends the implicitly shared private data of the base class. More...


Constructor & Destructor Documentation

ResponseHeader::ResponseHeader int  statusCode = 0,
const QByteArray &  reasonPhrase = QByteArray(),
int  majorVersion = 1,
int  minorVersion = 1
 

Constructs a ResponseHeader object.

Parameters:
statusCode is the HTTP status code to use.
reasonPhrase is the HTTP reason phrase to use.
majorVersion is the major HTTP version to use.
minorVersion is the minor HTTP version to use.

Definition at line 40 of file ResponseHeader.cpp.


Member Function Documentation

auto_ptr< DataBase > ResponseHeader::copy  )  const [virtual]
 

Virtual copy constructor.

Reimplemented from Protocols::Http::HeaderBase.

Definition at line 28 of file ResponseHeader.cpp.

int Protocols::Http::ResponseHeader::majorVersion  )  const [inline]
 

Returns the HTTP major version from the Status-Line of the HTTP response.

Definition at line 85 of file ResponseHeader.h.

int Protocols::Http::ResponseHeader::minorVersion  )  const [inline]
 

Returns the HTTP minor version from the Status-Line of the HTTP response.

Definition at line 89 of file ResponseHeader.h.

bool ResponseHeader::parseStartLine const QByteArray &  startLine  )  [private, virtual]
 

Reimplements the base class function to parse the first header line.

Reimplemented from Protocols::Http::HeaderBase.

Definition at line 54 of file ResponseHeader.cpp.

Protocols::Http::ResponseHeader::Q_DECLARE_SHARED_DATA Data   )  [private]
 

QByteArray ResponseHeader::rawStartLine  )  const [private, virtual]
 

Reimplements the base class function to generate the first header line.

Reimplemented from Protocols::Http::HeaderBase.

Definition at line 72 of file ResponseHeader.cpp.

QByteArray Protocols::Http::ResponseHeader::reasonPhrase  )  const [inline]
 

Returns the HTTP reason phrase from the Status-Line of the HTTP response.

Definition at line 81 of file ResponseHeader.h.

int Protocols::Http::ResponseHeader::statusCode  )  const [inline]
 

Returns the HTTP status code from the Status-Line of the HTTP response.

Definition at line 77 of file ResponseHeader.h.


The documentation for this class was generated from the following files: