SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Represents the Content-Disposition header of a MIME part. More...
#include <rw/mime/RWMimeContentDispositionHeader.h>
Static Public Attributes | |
static const RWCString | Label |
Protected Member Functions | |
RWMimeContentDispositionHeaderImp & | body (void) const |
virtual bool | checkLabel (const RWCString &label) const |
Protected Member Functions inherited from RWMimeHeader | |
RWMimeHeaderImp & | body (void) const |
Protected Member Functions inherited from RWHandleBase | |
RWHandleBase (const RWHandleBase &second) | |
RWHandleBase (RWBodyBase *body) | |
RWHandleBase (RWStaticCtor) | |
RWHandleBase (void) | |
~RWHandleBase (void) | |
RWBodyBase & | body (void) const |
RWHandleBase & | operator= (const RWHandleBase &second) |
RWMimeContentDispositionHeader represents the Content-Disposition header of a MIME part. The Content-Disposition specifies the way in which a recipient should present the part.
The Content-Disposition Header specification, RFC 1806, defines two values for the header. A value of inline
states that the part should be presented at the same time the rest of the message is presented. A value of attachment
states that the part should be treated as a separate file attached to the message. The specification also defines an optional filename parameter that provides a filename for the MIME part.
An instance of this class is a handle to a private, reference-counted body.
RWMimeContentDispositionHeader::RWMimeContentDispositionHeader | ( | void | ) |
Default constructor. Constructs a header with no value.
RWMimeContentDispositionHeader::RWMimeContentDispositionHeader | ( | const RWMimeContentDisposition & | contentDisposition | ) |
Constructs a header with the value contentDisposition.
RWMimeContentDispositionHeader::RWMimeContentDispositionHeader | ( | const RWMimeContentDispositionHeader & | second | ) |
Copy constructor. Constructs a new handle to the body second refers to.
RWMimeContentDispositionHeader::RWMimeContentDispositionHeader | ( | 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-Description"
.
|
virtual |
Destructor.
|
protected |
Returns a reference to the underlying implementation.
|
protectedvirtual |
Returns true
if label matches "Content-Disposition"
, false
otherwise. The comparison is case-insensitive. The RWCString should contain 7-bit US-ASCII data.
Reimplemented from RWMimeHeader.
RWMimeContentDisposition RWMimeContentDispositionHeader::getContentDisposition | ( | void | ) | const |
Returns a copy of self's value as an RWMimeContentDisposition.
RWMimeContentDispositionHeader & RWMimeContentDispositionHeader::operator= | ( | const RWMimeContentDispositionHeader & | second | ) |
Assignment operator. Makes self a handle identical to second.
void RWMimeContentDispositionHeader::setContentDisposition | ( | const RWMimeContentDisposition & | contentDisposition | ) |
Sets self's value to contentDisposition.
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |