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

RWMimeMultipartRelatedType

Module:  Internet Protocols Module   Package:  MIME


RWMimeMultipartRelatedTypeRWMimeMultipartType RWMimeContentTypeRWHandleBase

Local Index

Members

Header File

#include <rw/mime/RWMimeMultipartRelatedType.h> 

Description

RWMimeMultipartRelatedType represents a Content-Type value with the media type multipart and the subtype related. A multipart/related MIME part contains a set of other MIME parts intended for use as a whole. For example, a single multipart/related message can contain an HTML page and the images referenced in the page.

A multipart/related Content-Type value includes parameters describing how the recipient should process the message.

RWMimeMultipartRelatedType inherits general purpose functions for working with a parameter list and convenience functions for working with the boundary parameter. The class provides functions for working with the type parameter, the start parameter, and the start-info parameter.

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

Reference

RWMimeMultipartRelatedType conforms to the requirements in RFC 2387 for the value of a multipart/related Content-Type header.

Public Constructor

RWMimeMultipartRelatedType(void);

NOTE -- A default-constructed RWMimeMultipartRelatedType is invalid. A multipart/related content type must contain a type parameter.
RWMimeMultipartRelatedType(const RWCString& type,
                           const RWCString& start="",
                           const RWCString& start_info = "",
                           const RWCString& boundary = "");

NOTE -- The multipart/related specification requires the value of the type parameter to match the Content-Type of the part to be processed first. The constructor cannot test this requirement.
RWMimeMultipartRelatedType(const RWMimeMultipartRelatedType&
                           second);
RWMimeMultipartRelatedType(const RWMimeContentType& second);

Public Destructor

virtual ~RWMimeMultipartRelatedType(void);

Public Member Operator

RWMimeMultipartRelatedType&
operator=(const RWMimeMultipartRelatedType& second);

Public Member Function

RWCString
getStart(void) const;
RWCString
getStartInfo(void) const;
RWCString
getType(void) const;
void
setStart(const RWCString& contentId);

NOTE -- The multipart/related specification requires the value of the start parameter to match the Content-ID of a part contained in the MIME message. The function itself cannot enforce this requirement.
void
setStartInfo(const RWCString& startInfo);
void
setType(const RWCString& type);

NOTE -- The multipart/related specification requires the value of the type parameter to match the Content-Type of the part to be processed first. The function itself cannot enforce this requirement.

Protected Member Function

virtual bool
checkType(const RWCString& mediaType,
          const RWCString& subType) 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.