Module: Internet Protocols Module Package: MIME
RWMimeContentTransferEncodingHeaderRWMimeHeaderRWHandleBase
body() checkLabel() |
getEncoding() Label |
operator=() RWMimeContentTransferEncodingHeader() |
setEncoding() ~RWMimeContentTransferEncodingHeader() |
#include <rw/mime/RWMimeContentTransferEncodingHeader.h>
RWMimeContentTransferEncodingHeader represents the Content-Transfer-Encoding header of a MIME part. The Content-Transfer-Encoding header identifies whether the body of the part has been encoded and/or the character set of the body. A value of 7bit, 8bit, or binary indicates that the body has not been encoded, and the data is 7-bit ASCII, 8-bit ASCII, or binary, respectively. A value of base64 or quoted-printable indicates that the body has been encoded. Since both base64 encoding and quoted-printable encoding result in 7-bit ASCII encoded messages, either of these values also indicates that the body contains 7-bit ASCII data.
An instance of this class is a handle to a private, reference-counted body.
RWMimeContentTransferEncodingHeader conforms to the Content-Transfer-Encoding header requirements specified in RFC 2045, Section 6. For more detail on encodings, see RFC 2045 or the discussion in the Internet Protocols Module User's Guide.
static const RWCString Label;
Static constant string containing "Content-Transfer-Encoding", the label for a Content-Transfer-Encoding header. The RWCString should contain 7-bit US-ASCII data.
RWMimeContentTransferEncodingHeader(void);
Default constructor. Constructs a header with the label "Content-Transfer-Encoding" and an empty value.
NOTE -- A header with an empty value does not meet the requirements for a Content-Transfer-Encoding header.
RWMimeContentTransferEncodingHeader(const RWCString& encoding);
Constructs a header with the label "Content-Transfer-Encoding" and the value encoding. Does not validate encoding. The RWCString should contain 7-bit US-ASCII data.
RWMimeContentTransferEncodingHeader(const RWMimeContentTransferEncoding& second);
Copy constructor. Constructs a new handle to the body second refers to.
RWMimeContentTransferEncodingHeader(const RWMimeHeader& second);
Conversion constructor. Constructs a new handle to the body second refers to. Throws RWMimeError if second does not have the label "Content-Transfer-Encoding".
virtual ~RWMimeContentTransferEncodingHeader(void);
Destructor.
RWMimeContentTransferEncodingHeader& operator=(const RWMimeContentTransferEncodingHeader& second);
Assignment operator. Makes self a handle identical to second.
RWCString getEncoding(void) const;
Returns the encoding value of this header. The RWCString should contain 7-bit US-ASCII data.
void setEncoding(const RWCString& encoding);
Sets the encoding value of this header. Does not validate encoding. The RWCString should contain 7-bit US-ASCII data.
RWMimeContentTransferEncodingHeaderImp& body(void) const;
Returns a reference to the underlying implementation.
virtual bool checkLabel(const RWCString& label) const;
Returns true if label matches "Content-Transfer-Encoding", false otherwise. The comparison is case-insensitive. The RWCString should contain 7-bit US-ASCII data.
© 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.