reSIProcate/stack  9694
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes
resip::X509Contents Class Reference

SIP body type for holding X509 contents (MIME content-type application/pkix-cert). More...

#include <X509Contents.hxx>

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

List of all members.

Public Member Functions

 X509Contents ()
 X509Contents (const Data &text)
 X509Contents (const HeaderFieldValue &hfv, const Mime &contentType)
 X509Contents (const Data &data, const Mime &contentType)
 X509Contents (const X509Contents &rhs)
virtual ~X509Contents ()
X509Contentsoperator= (const X509Contents &rhs)
virtual Contentsclone () const
 duplicate an X509Contents object
virtual EncodeStreamencodeParsed (EncodeStream &str) const
virtual void parse (ParseBuffer &pb)
Datatext ()

Static Public Member Functions

static const MimegetStaticType ()
static bool init ()

Static Public Attributes

static const X509Contents Empty

Private Attributes

Data mText

Detailed Description

SIP body type for holding X509 contents (MIME content-type application/pkix-cert).

Definition at line 14 of file X509Contents.hxx.


Constructor & Destructor Documentation

X509Contents::X509Contents ( )

Definition at line 28 of file X509Contents.cxx.

Referenced by clone().

X509Contents::X509Contents ( const Data text)

Definition at line 34 of file X509Contents.cxx.

   : Contents(getStaticType()),
     mText(txt)
{
}
X509Contents::X509Contents ( const HeaderFieldValue hfv,
const Mime contentType 
)

Definition at line 46 of file X509Contents.cxx.

   : Contents(hfv, contentsType),
     mText()
{
}
X509Contents::X509Contents ( const Data data,
const Mime contentType 
)

Definition at line 40 of file X509Contents.cxx.

   : Contents(contentsType),
     mText(txt)
{
}
X509Contents::X509Contents ( const X509Contents rhs)

Definition at line 52 of file X509Contents.cxx.

   : Contents(rhs),
     mText(rhs.mText)
{
}
X509Contents::~X509Contents ( ) [virtual]

Definition at line 58 of file X509Contents.cxx.

{
}

Member Function Documentation

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

duplicate an X509Contents object

Returns:
pointer to a new X509Contents object

Implements resip::Contents.

Definition at line 74 of file X509Contents.cxx.

References X509Contents().

{
   return new X509Contents(*this);
}

Here is the call graph for this function:

EncodeStream & X509Contents::encodeParsed ( EncodeStream str) const [virtual]

Implements resip::LazyParser.

Definition at line 87 of file X509Contents.cxx.

References mText.

{
   //DebugLog(<< "X509Contents::encodeParsed " << mText);
   str << mText;
   return str;
}
const Mime & X509Contents::getStaticType ( ) [static]

Definition at line 80 of file X509Contents.cxx.

References type.

{
   static Mime type("application", "pkix-cert");
   return type;
}
bool X509Contents::init ( ) [static]

Reimplemented from resip::Contents.

Definition at line 21 of file X509Contents.cxx.

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

Definition at line 63 of file X509Contents.cxx.

References mText.

{
   if (this != &rhs)
   {
      Contents::operator=(rhs);
      mText = rhs.mText;
   }
   return *this;
}
void X509Contents::parse ( ParseBuffer pb) [virtual]

Implements resip::LazyParser.

Definition at line 96 of file X509Contents.cxx.

References resip::ParseBuffer::data(), mText, resip::ParseBuffer::position(), and resip::ParseBuffer::skipToEnd().

{
   const char* anchor = pb.position();
   pb.skipToEnd();
   pb.data(mText, anchor);
}

Here is the call graph for this function:

Data& resip::X509Contents::text ( ) [inline]

Definition at line 37 of file X509Contents.hxx.

References resip::LazyParser::checkParsed(), and mText.

{checkParsed(); return mText;}

Here is the call graph for this function:


Member Data Documentation

Definition at line 17 of file X509Contents.hxx.

Definition at line 42 of file X509Contents.hxx.

Referenced by encodeParsed(), operator=(), parse(), and text().


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