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

RWMimeContentDisposition

Module:  Internet Protocols Module   Package:  MIME


RWMimeContentDispositionRWHandleBase

Local Index

Members

Header File

#include <rw/mime/RWMimeContentDisposition.h> 

Description

RWMimeContentDisposition represents the value of a Content-Disposition header of a MIME part. The Content-Disposition specifies the way in which a recipient should present the part.

The value of a Content-Disposition header contains a disposition type and an optional filename parameter. This class provides a convenient interface for creating and working with Content-Disposition values.

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

Reference

RWMimeContentDisposition conforms to the Content-Disposition header requirements specified in RFC 1806.

Public Constructor

RWMimeContentDisposition(void);

NOTE -- A Content-Disposition value with no disposition type does not meet the requirements of RFC 1806.
RWMimeContentDisposition(const RWCString& type,
                         const RWCString& filename="");
RWMimeContentDisposition(const RWMimeContentDisposition & second);

Public Destructor

virtual ~RWMimeContentDisposition(void);

Public Member Operator

RWMimeContentDisposition&
operator=(const RWMimeContentDisposition& second);

Related Logical Operators

bool
operator==(const RWMimeContentDisposition& first,
           const RWMimeContentDisposition& second);

Equality operator. Returns true if first is equal to second, false otherwise. The function compares the disposition types using a case-insensitive string comparison. Compares the number of parameters the objects contain, then compares each parameter in each object with the parameter of the same name in the other object. Parameter comparisons use a case-insensitive comparison for parameter name and a case-sensitive comparison for parameter value.

bool
operator!=(const RWMimeContentDisposition& first,
           const RWMimeContentDisposition& second);

Inequality operator. Returns true if first is equal to second, false otherwise. The function compares the disposition types using a case-insensitive string comparison. Compares the number of parameters the objects contain, then compares each parameter in each object with the parameter of the same name in the other object. Parameter comparisons use a case-insensitive comparison for parameter name and a case-sensitive comparison for parameter value.

Public Member Functions

RWCString
asString(void) const;
size_t
findParameter(const RWCString& name,
              size_t start = 0) const;
void
fromString(const RWCString& dispositionValue);
RWCString
getFilename(void) const;
RWMimeParameter
getParameter(size_t i) const;
size_t
getParameterCount(void) const;
RWCString
getParameterValue(const RWCString& name,
                  size_t start = 0) const;
RWCString
getType(void) const;
void
insertParameter(const RWMimeParameter& parameter);
void
removeAllParameters(void);
void
removeParameter(size_t position);
void
setFilename(const RWCString& filename);
void
setParameterValue(const RWCString& name
                  const RWCString& value,
                  size_t start = 0);
void
setType(const RWCString& type);

Protected Member Functions

RWMimeContentDispositionImp&
body(void) 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.