1#ifndef RESIP_Contents_hxx
2#define RESIP_Contents_hxx
20class HeaderFieldValue;
76 const Mime& contentsType);
130 const Data& contents);
168 const H_ContentType::Type&
header(
const H_ContentType& headerType)
const;
178 H_ContentType::Type&
header(
const H_ContentType& headerType);
188 const H_ContentDisposition::Type&
header(
const H_ContentDisposition& headerType)
const;
196 H_ContentDisposition::Type&
header(
const H_ContentDisposition& headerType);
206 const H_ContentTransferEncoding::Type&
header(
const H_ContentTransferEncoding& headerType)
const;
214 H_ContentTransferEncoding::Type&
header(
const H_ContentTransferEncoding& headerType);
224 const H_ContentLanguages::Type&
header(
const H_ContentLanguages& headerType)
const;
232 H_ContentLanguages::Type&
header(
const H_ContentLanguages& headerType);
331 for (std::vector<char*>::iterator i =
mBufferList.begin();
Base class for all SIP body types.
void addBuffer(char *buf)
bool exists(const HeaderBase &headerType) const
checks to see if a header is present
virtual Data getBodyData() const
int & version()
returns the major version of MIME used by the contents
virtual Contents * getContents()
access to wrapped contents (signed, encrypted)
H_ContentDescription::Type * mDescription
std::vector< char * > mBufferList
const H_ContentType::Type & header(const H_ContentType &headerType) const
returns the value of the Content-Type header Throws an Contents::Exception if the header doesn't exis...
EncodeStream & encodeHeaders(EncodeStream &str) const
encodes headers to an output stream
Contents & operator=(const Contents &rhs)
Assignment operator.
const Mime & getType() const
getter for mime type of message
H_ContentLanguages::Type * mLanguages
static Contents * createContents(const Mime &contentType, const Data &contents)
factory method to create a Contents object from a mime type and a payload
H_ContentTransferEncoding::Type * mTransferEncoding
void preParseHeaders(ParseBuffer &pb)
Preforms preparsing on the headers stored in the ParseBuffer pb.
H_ContentDisposition::Type * mDisposition
Contents * getContents(const Mime &)
void remove(const HeaderBase &headerType)
removes a header if it is present
int & minorVersion()
returns the minor version of MIME used by the contents
virtual Contents * clone() const =0
returns a copy of a Contents object
virtual const Data & errorContext() const
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Content-ID MIME header identifier class.
Content-ID MIME header identifier class.
The base-class for all lazily-parsed SIP grammar elements.
Represents the "media-type" element in the RFC 3261 grammar.
Provides string-parsing functionality with protection from buffer overflow.
Represents the "header-value" element in the RFC 3261 grammar (ie, an unknown header field value).
Represents the "token" element in the RFC 3261 grammar.
dcm! – add UnusedChecking(_enum) below;
H_ContentDescription h_ContentDescription
bool operator==(const char *lhs, const Data &rhs)
bool operator!=(const Data &lhs, const Data &rhs)