sipxtacklib  Version 3.3
Public Member Functions | List of all members
MimeBodyPart Class Reference

#include <MimeBodyPart.h>

Inheritance diagram for MimeBodyPart:
Inheritance graph
[legend]
Collaboration diagram for MimeBodyPart:
Collaboration graph
[legend]

Public Member Functions

 MimeBodyPart (const HttpBody *parent=NULL, int parentBodyStartIndex=0, int rawBodyLength=0)
 
 MimeBodyPart (const HttpBody &httpBody, const UtlDList &parameters)
 Construct a MimeBodyPart from an HttpBody and a list of parameters. More...
 
 MimeBodyPart (const MimeBodyPart &rMimeBodyPart)
 
virtual ~MimeBodyPart ()
 
MimeBodyPartoperator= (const MimeBodyPart &rhs)
 
void attach (HttpBody *parent, int rawPartStart, int rawPartLength, int partStart, int partLength)
 Update the members that locate this MimeBodyPart within its parent HttpBody. More...
 
int getRawStart () const
 
int getRawLength () const
 
int getStart () const
 
int getLength () const
 
virtual void getBytes (const char **bytes, int *length) const
 
UtlBoolean getPartHeaderValue (const char *headerName, UtlString &headerValue) const
 
UtlDList * getParameters ()
 
- Public Member Functions inherited from HttpBody
 HttpBody (const char *bytes=NULL, int length=-1, const char *contentType=NULL)
 
 HttpBody (const char *contentType)
 
 HttpBody (const HttpBody &rHttpBody)
 
virtual ~HttpBody ()
 
HttpBodyoperator= (const HttpBody &rhs)
 
void appendBodyPart (const HttpBody &body, const UtlDList &parameters)
 Append a multipart body part to an existing multiparty body. More...
 
virtual void getBytes (UtlString *bytes, int *length) const
 
virtual const char * getBytes () const
 
UtlBoolean getMultipartBytes (int partIndex, const char **bytes, int *length, int *start) const
 
const MimeBodyPartgetMultipart (int partIndex) const
 
int getMultipartCount () const
 
BodyClassTypes getClassType () const
 
const char * getMultipartBoundary () const
 Get the multipart boundary string. More...
 
const char * getContentType () const
 Get the content type string. More...
 
UtlBoolean isMultipart () const
 

Additional Inherited Members

- Public Types inherited from HttpBody
enum  BodyClassTypes {
  UNKNOWN_BODY_CLASS = 0,
  HTTP_BODY_CLASS,
  SMIME_BODY_CLASS,
  SDP_BODY_CLASS,
  PIDF_BODY_CLASS,
  DIALOG_EVENT_BODY_CLASS
}
 
- Static Public Member Functions inherited from HttpBody
static HttpBodycopyBody (const HttpBody &sourceBody)
 Copy the source HttpBody using the correct derived class constructor. More...
 
static HttpBodycreateBody (const char *bodyBytes, int bodyBytesLength, const char *contentType, const char *contentEncoding)
 Pseudo body factory. More...
 
- Protected Attributes inherited from HttpBody
int bodyLength
 
UtlString mBody
 
UtlString mMultipartBoundary
 
int mBodyPartCount
 
MimeBodyPartmpBodyParts [MAX_HTTP_BODY_PARTS]
 
BodyClassTypes mClassType
 

Constructor & Destructor Documentation

MimeBodyPart ( const HttpBody parent = NULL,
int  parentBodyStartIndex = 0,
int  rawBodyLength = 0 
)
MimeBodyPart ( const HttpBody httpBody,
const UtlDList &  parameters 
)

Construct a MimeBodyPart from an HttpBody and a list of parameters.

Does not attach the MimeBodyPart to a parent, or set the members showing its location in the parent. For that you need attach().

MimeBodyPart ( const MimeBodyPart rMimeBodyPart)
~MimeBodyPart ( )
virtual

Member Function Documentation

MimeBodyPart & operator= ( const MimeBodyPart rhs)
void attach ( HttpBody parent,
int  rawPartStart,
int  rawPartLength,
int  partStart,
int  partLength 
)

Update the members that locate this MimeBodyPart within its parent HttpBody.

int getRawStart ( ) const
inline
int getRawLength ( ) const
inline
int getStart ( ) const
inline
int getLength ( ) const
inlinevirtual

Reimplemented from HttpBody.

void getBytes ( const char **  bytes,
int *  length 
) const
virtual

Reimplemented from HttpBody.

UtlBoolean getPartHeaderValue ( const char *  headerName,
UtlString &  headerValue 
) const
UtlDList * getParameters ( )
inline

sipXtackLib home page