Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Internet Protocols Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWMimeGenericHeader

Module:  Internet Protocols Module   Package:  MIME


RWMimeGenericHeaderRWMimeHeaderRWHandleBase

Local Index

Members

Header File

#include <rw/mime/RWMimeGenericHeader.h> 

Description

RWMimeGenericHeader represents Internet Message Format headers other than the headers defined by MIME. A header consists of a label and a value. MIME requires that both the label and value contain only printable characters in the US-ASCII character set. The name may not contain a colon. To create a header with a value in another character set, encode the value according to the guidelines in RFC 2047.

The label appears first in the header, and is separated from the value by a colon. So, the header line

contains the label From, a colon as a separator, and the value Rudi Marquez <rudi_marquez@roguewave.com>. RWMimeGenericHeader represents this structure by containing a pair of strings, one string for the label and one string for the value.

This class only represents headers which are not defined in the MIME specification. For MIME headers, use the class corresponding to the header instead. The class enforces this constraint by refusing to accept a label for another header type. The constructors and assignment operator throw RWMimeError if the label provided is a label for any other header type.

An instance of this class is a handle to a private, reference-counted body.

Reference

RWMimeGenericHeader conforms to the header requirements specified in Section 2.2 of RFC 2822, the Internet Message Format specification. RFC 2822 is an update of RFC 822, which originally defined the format for Internet message headers.

Public Constructors

RWMimeGenericHeader(void);

NOTE -- A header with an empty label and an empty value does not meet the requirements of an Internet Message Format header.
RWMimeGenericHeader(const RWCString& label, const RWCString& value);
RWMimeGenericHeader(const RWMimeGenericHeader& second);
RWMimeGenericHeader(const RWMimeHeader& second);

Public Destructor

virtual ~RWMimeGenericHeader(void);

Public Member Operator

RWMimeHeader&
operator=(const RWMimeGenericHeader& second);

Public Member Functions

RWCString
getValue(void) const;
void
setValue(const RWCString& value);

Protected Member Functions

RWMimeUnstructuredHeaderImp&
body(void) const;
virtual bool
checkLabel(const RWCString& label) const;


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.