Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

cgicc::HTTPHeader Class Reference

Abstract base class for all simple HTTP response headers. More...

#include <cgicc/HTTPHeader.h>

Inheritance diagram for cgicc::HTTPHeader::

cgicc::MStreamable cgicc::HTTPContentHeader cgicc::HTTPRedirectHeader cgicc::HTTPStatusHeader cgicc::HTTPHTMLHeader cgicc::HTTPPlainHeader List of all members.

Public Methods

Constructors and Destructor
 HTTPHeader (const std::string &data)
 Constructor. More...

 HTTPHeader (const HTTPHeader &header)
 Copy constructor. More...

virtual ~HTTPHeader ()
 Destructor. More...

Cookie Management
HTTPHeader & setCookie (const HTTPCookie &cookie)
 Set a cookie to go out with this HTTPResponseHeader. More...

const std::vector< HTTPCookie > & getCookies () const
 Get a list of all cookies associated with this header. More...

Accessor Method
std::string getData () const
Subclass Methods
virtual void render (std::ostream &out) const=0
 Write this HTTPHeader to a stream. More...

Detailed Description

Abstract base class for all simple HTTP response headers.

Definition at line 50 of file HTTPHeader.h.

Constructor & Destructor Documentation

cgicc::HTTPHeader::HTTPHeader const std::string &    data


data  The header data.

cgicc::HTTPHeader::HTTPHeader const HTTPHeader &    header

Copy constructor.

header  The HTTPHeader to copy.

virtual cgicc::HTTPHeader::~HTTPHeader   [virtual]


Member Function Documentation

const std:: vector<HTTPCookie>& cgicc::HTTPHeader::getCookies   const [inline]

Get a list of all cookies associated with this header.

All the cookies associated with this header

Definition at line 94 of file HTTPHeader.h.

std:: string cgicc::HTTPHeader::getData   const [inline]

Get the data contained in this HTTP header.

The data contained in this header.

Definition at line 108 of file HTTPHeader.h.

virtual void cgicc::HTTPHeader::render std::ostream &    out const [pure virtual]

Write this HTTPHeader to a stream.

Subclasses must implement this function.

out  The ostream to which to write.

Reimplemented from cgicc::MStreamable.

Reimplemented in cgicc::HTTPContentHeader, cgicc::HTTPRedirectHeader, and cgicc::HTTPStatusHeader.

HTTPHeader& cgicc::HTTPHeader::setCookie const HTTPCookie   cookie [inline]

Set a cookie to go out with this HTTPResponseHeader.

cookie  The HTTPCookie to set

Definition at line 86 of file HTTPHeader.h.

The documentation for this class was generated from the following file:
GNU cgicc - A C++ class library for writing CGI applications
Copyright © 1996 - 2002 Stephen F. Booth
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front Cover Texts, and with no Back-Cover Texts.
Documentation generated Sun Mar 17 16:40:58 2002 for cgicc by doxygen