reSIProcate/stack  9694
Public Member Functions | Static Public Member Functions
resip::ApplicationSip Class Reference

SIP body type to represent contents with an Content-Type application/sip. More...

#include <ApplicationSip.hxx>

Inheritance diagram for resip::ApplicationSip:
Inheritance graph
[legend]
Collaboration diagram for resip::ApplicationSip:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ApplicationSip (const Mime &contentsType=getStaticType())
 ApplicationSip (const HeaderFieldValue &hfv, const Mime &contentsType)
 ApplicationSip (const Data &data, const Mime &contentsType)
 ApplicationSip (const ApplicationSip &rhs)
ApplicationSipoperator= (const ApplicationSip &rhs)
virtual Contentsclone () const
 duplicate an ApplicationSip object

Static Public Member Functions

static const MimegetStaticType ()
static bool init ()

Detailed Description

SIP body type to represent contents with an Content-Type application/sip.

Note:
Applications may need to explicitly mention this type to induce static registration. Applications that mention only SipFrag may not be able to determine the content instance for content-type: application/sip

map content-type application/sip to the same parser as message/sip some Cisco gateways send NOTIFY with content-type application/sip

Definition at line 20 of file ApplicationSip.hxx.


Constructor & Destructor Documentation

ApplicationSip::ApplicationSip ( const Mime contentsType = getStaticType())

Definition at line 22 of file ApplicationSip.cxx.

Referenced by clone().

   : SipFrag(contentsType)
{}
ApplicationSip::ApplicationSip ( const HeaderFieldValue hfv,
const Mime contentsType 
)

Definition at line 26 of file ApplicationSip.cxx.

   : SipFrag(hfv, contentsType)
{
}
resip::ApplicationSip::ApplicationSip ( const Data data,
const Mime contentsType 
)
ApplicationSip::ApplicationSip ( const ApplicationSip rhs)

Definition at line 31 of file ApplicationSip.cxx.

   : SipFrag(rhs)
{
}

Member Function Documentation

Contents * ApplicationSip::clone ( ) const [virtual]

duplicate an ApplicationSip object

Returns:
pointer to a new ApplicationSip object

Reimplemented from resip::SipFrag.

Definition at line 44 of file ApplicationSip.cxx.

References ApplicationSip().

{
   return new ApplicationSip(*this);
}

Here is the call graph for this function:

const Mime & ApplicationSip::getStaticType ( ) [static]

Reimplemented from resip::SipFrag.

Definition at line 50 of file ApplicationSip.cxx.

References type.

{
   static Mime type("application", "sip");
   return type;
}
bool ApplicationSip::init ( ) [static]

Reimplemented from resip::SipFrag.

Definition at line 15 of file ApplicationSip.cxx.

{
   static ContentsFactory<ApplicationSip> factory;
   (void)factory;
   return true;
}
ApplicationSip & ApplicationSip::operator= ( const ApplicationSip rhs)

Definition at line 37 of file ApplicationSip.cxx.

{
    SipFrag::operator=(rhs);
    return *this;
}

The documentation for this class was generated from the following files: