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

RWMimeContentLocationHeader

Module:  Internet Protocols Module   Package:  MIME


RWMimeContentLocationHeaderRWMimeHeaderRWHandleBase

Local Index

Members

Header File

#include <rw/mime/RWMimeContentLocationHeader.h> 

Description

RWMimeContentLocationHeader represents the Content-Location header of a MIME part. The Content-Location header declares a URI for the MIME part containing the header. When a part declares a URI, the part can be referenced from elsewhere in the message by using the URI. This header is specified for use in multipart/related messages, which typically contain an HTML document and a set of images referenced in that document.

For example, a MIME part containing an image can set the URI for the image with a Content-Location header:

An HTML document in the same message can reference the image using the URI:

<IMG SRC="images/logo.gif">

By setting a URI for each image within the message, the complete set of files needed to render an HTML document can be included in a message without changing the text of the HTML document.

The value of a Content-Location header must meet the format requirements for a URI. The value does not, however, need to indicate an actual resource reachable through the Internet.

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

Reference

RWMimeContentLocationHeader conforms to the Content-Location header requirements specified in RFC 2557, Section 4.2. RFC 1630 specifies the format for a URI.

Public Static Data Member

static const RWCString Label;

Public Constructors

RWMimeContentLocationHeader(void);

NOTE -- A header with an empty value does not meet the requirements for a Content-Location header.
RWMimeContentLocationHeader(const RWCString& uri);
RWMimeContentLocationHeader(const RWMimeContentLocationHeader& second);
RWMimeContentLocationHeader(const RWMimeHeader& second);

Public Destructor

virtual ~RWMimeContentLocationHeader();

Public Member Operator

RWMimeContentLocationHeader&
operator=(const RWMimeContentLocationHeader& second);

Public Member Functions

RWCString
getURI(void) const;
void
setURI(const RWCString& uri);

Protected Member Functions

RWMimeStructuredHeaderImp&
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.