SIPMIMEInfo Class Reference

#include <sippdu.h>

List of all members.

Public Member Functions

 SIPMIMEInfo (BOOL compactForm=FALSE)
void SetForm (BOOL v)
PString GetContentType () const
void SetContentType (const PString &v)
PString GetContentEncoding () const
void SetContentEncoding (const PString &v)
PString GetFrom () const
void SetFrom (const PString &v)
PString GetAccept () const
void SetAccept (const PString &v)
PString GetAcceptEncoding () const
void SetAcceptEncoding (const PString &v)
PString GetAcceptLanguage () const
void SetAcceptLanguage (const PString &v)
PString GetAllow () const
void SetAllow (const PString &v)
PString GetCallID () const
void SetCallID (const PString &v)
PString GetContact () const
void SetContact (const PString &v)
void SetContact (const SIPURL &url)
PString GetSubject () const
void SetSubject (const PString &v)
PString GetTo () const
void SetTo (const PString &v)
PString GetVia () const
void SetVia (const PString &v)
PStringList GetViaList () const
void SetViaList (const PStringList &v)
PString GetReferTo () const
void SetReferTo (const PString &r)
PString GetReferredBy () const
void SetReferredBy (const PString &r)
PINDEX GetContentLength () const
void SetContentLength (PINDEX v)
BOOL IsContentLengthPresent () const
PString GetCSeq () const
void SetCSeq (const PString &v)
PString GetDate () const
void SetDate (const PString &v)
void SetDate (const PTime &t)
void SetDate (void)
unsigned GetExpires (unsigned dflt=UINT_MAX) const
void SetExpires (unsigned v)
PINDEX GetMaxForwards () const
void SetMaxForwards (PINDEX v)
PINDEX GetMinExpires () const
void SetMinExpires (PINDEX v)
PString GetProxyAuthenticate () const
void SetProxyAuthenticate (const PString &v)
PStringList GetRoute () const
void SetRoute (const PStringList &v)
PStringList GetRecordRoute () const
void SetRecordRoute (const PStringList &v)
unsigned GetCSeqIndex () const
PString GetSupported () const
void SetSupported (const PString &v)
PString GetUnsupported () const
void SetUnsupported (const PString &v)
PString GetEvent () const
void SetEvent (const PString &v)
PString GetSubscriptionState () const
void SetSubscriptionState (const PString &v)
PString GetUserAgent () const
void SetUserAgent (const PString &v)
PString GetOrganization () const
void SetOrganization (const PString &v)
void GetProductInfo (OpalProductInfo &info)
void SetProductInfo (const PString &ua, const OpalProductInfo &info)
PString GetWWWAuthenticate () const
void SetWWWAuthenticate (const PString &v)
PString GetSIPIfMatch () const
void SetSIPIfMatch (const PString &v)
PString GetSIPETag () const
void SetSIPETag (const PString &v)
PString GetFieldParameter (const PString &, const PString &)
void SetFieldParameter (const PString &, PString &, const PString &)
BOOL HasFieldParameter (const PString &, const PString &)

Protected Member Functions

PStringList GetRouteList (const char *name) const
void SetRouteList (const char *name, const PStringList &v)
PString GetFullOrCompact (const char *fullForm, char compactForm) const

Protected Attributes

BOOL compactForm
 Encode using compact form.


Detailed Description

Session Initiation Protocol MIME info container This is a string dictionary: for each item mime header is key, value is value. Headers may be full ("From") or compact ("f"). Colons not included. PMIMEInfo::ReadFrom (>>) parses from stream. That adds a header-value element for each mime line. If a mime header is duplicated in the stream then the additional value is appended to the existing, separated by "/n". PMIMEInfo::ReadFrom supports multi-line values if the next line starts with a space - it just appends the next line to the existing string with the separating space. There is no checking of header names or values. compactForm decides whether 'Set' methods store full or compact headers. 'Set' methods replace values, there is no method for appending except ReadFrom. 'Get' methods work whether stored headers are full or compact.

to do to satisfy RFC3261 (mandatory(*) & should): Accept Accept-Encoding Accept-Language Allow Max-Forwards Min-Expires Proxy-Authenticate Supported Unsupported WWW-Authenticate


Constructor & Destructor Documentation

SIPMIMEInfo::SIPMIMEInfo ( BOOL  compactForm = FALSE  ) 


Member Function Documentation

void SIPMIMEInfo::SetForm ( BOOL  v  )  [inline]

PString SIPMIMEInfo::GetContentType (  )  const

void SIPMIMEInfo::SetContentType ( const PString &  v  ) 

PString SIPMIMEInfo::GetContentEncoding (  )  const

void SIPMIMEInfo::SetContentEncoding ( const PString &  v  ) 

PString SIPMIMEInfo::GetFrom (  )  const

void SIPMIMEInfo::SetFrom ( const PString &  v  ) 

PString SIPMIMEInfo::GetAccept (  )  const

void SIPMIMEInfo::SetAccept ( const PString &  v  ) 

PString SIPMIMEInfo::GetAcceptEncoding (  )  const

void SIPMIMEInfo::SetAcceptEncoding ( const PString &  v  ) 

PString SIPMIMEInfo::GetAcceptLanguage (  )  const

void SIPMIMEInfo::SetAcceptLanguage ( const PString &  v  ) 

PString SIPMIMEInfo::GetAllow (  )  const

void SIPMIMEInfo::SetAllow ( const PString &  v  ) 

PString SIPMIMEInfo::GetCallID (  )  const

void SIPMIMEInfo::SetCallID ( const PString &  v  ) 

PString SIPMIMEInfo::GetContact (  )  const

void SIPMIMEInfo::SetContact ( const PString &  v  ) 

void SIPMIMEInfo::SetContact ( const SIPURL url  ) 

PString SIPMIMEInfo::GetSubject (  )  const

void SIPMIMEInfo::SetSubject ( const PString &  v  ) 

PString SIPMIMEInfo::GetTo (  )  const

void SIPMIMEInfo::SetTo ( const PString &  v  ) 

PString SIPMIMEInfo::GetVia (  )  const

void SIPMIMEInfo::SetVia ( const PString &  v  ) 

PStringList SIPMIMEInfo::GetViaList (  )  const

void SIPMIMEInfo::SetViaList ( const PStringList &  v  ) 

PString SIPMIMEInfo::GetReferTo (  )  const

void SIPMIMEInfo::SetReferTo ( const PString &  r  ) 

PString SIPMIMEInfo::GetReferredBy (  )  const

void SIPMIMEInfo::SetReferredBy ( const PString &  r  ) 

PINDEX SIPMIMEInfo::GetContentLength (  )  const

void SIPMIMEInfo::SetContentLength ( PINDEX  v  ) 

BOOL SIPMIMEInfo::IsContentLengthPresent (  )  const

PString SIPMIMEInfo::GetCSeq (  )  const

void SIPMIMEInfo::SetCSeq ( const PString &  v  ) 

PString SIPMIMEInfo::GetDate (  )  const

void SIPMIMEInfo::SetDate ( const PString &  v  ) 

void SIPMIMEInfo::SetDate ( const PTime &  t  ) 

void SIPMIMEInfo::SetDate ( void   ) 

unsigned SIPMIMEInfo::GetExpires ( unsigned  dflt = UINT_MAX  )  const

void SIPMIMEInfo::SetExpires ( unsigned  v  ) 

PINDEX SIPMIMEInfo::GetMaxForwards (  )  const

void SIPMIMEInfo::SetMaxForwards ( PINDEX  v  ) 

PINDEX SIPMIMEInfo::GetMinExpires (  )  const

void SIPMIMEInfo::SetMinExpires ( PINDEX  v  ) 

PString SIPMIMEInfo::GetProxyAuthenticate (  )  const

void SIPMIMEInfo::SetProxyAuthenticate ( const PString &  v  ) 

PStringList SIPMIMEInfo::GetRoute (  )  const

void SIPMIMEInfo::SetRoute ( const PStringList &  v  ) 

PStringList SIPMIMEInfo::GetRecordRoute (  )  const

void SIPMIMEInfo::SetRecordRoute ( const PStringList &  v  ) 

unsigned SIPMIMEInfo::GetCSeqIndex (  )  const [inline]

PString SIPMIMEInfo::GetSupported (  )  const

void SIPMIMEInfo::SetSupported ( const PString &  v  ) 

PString SIPMIMEInfo::GetUnsupported (  )  const

void SIPMIMEInfo::SetUnsupported ( const PString &  v  ) 

PString SIPMIMEInfo::GetEvent (  )  const

void SIPMIMEInfo::SetEvent ( const PString &  v  ) 

PString SIPMIMEInfo::GetSubscriptionState (  )  const

void SIPMIMEInfo::SetSubscriptionState ( const PString &  v  ) 

PString SIPMIMEInfo::GetUserAgent (  )  const

void SIPMIMEInfo::SetUserAgent ( const PString &  v  ) 

PString SIPMIMEInfo::GetOrganization (  )  const

void SIPMIMEInfo::SetOrganization ( const PString &  v  ) 

void SIPMIMEInfo::GetProductInfo ( OpalProductInfo info  ) 

void SIPMIMEInfo::SetProductInfo ( const PString &  ua,
const OpalProductInfo info 
)

PString SIPMIMEInfo::GetWWWAuthenticate (  )  const

void SIPMIMEInfo::SetWWWAuthenticate ( const PString &  v  ) 

PString SIPMIMEInfo::GetSIPIfMatch (  )  const

void SIPMIMEInfo::SetSIPIfMatch ( const PString &  v  ) 

PString SIPMIMEInfo::GetSIPETag (  )  const

void SIPMIMEInfo::SetSIPETag ( const PString &  v  ) 

PString SIPMIMEInfo::GetFieldParameter ( const PString &  ,
const PString &   
)

return the value of a header field parameter, empty if none

void SIPMIMEInfo::SetFieldParameter ( const PString &  ,
PString &  ,
const PString &   
)

set the value for a header field parameter, replace the current value, or add the parameter and its value if not already present.

BOOL SIPMIMEInfo::HasFieldParameter ( const PString &  ,
const PString &   
)

return TRUE if the header field parameter is present

PStringList SIPMIMEInfo::GetRouteList ( const char *  name  )  const [protected]

return list of route values from internal comma-delimited list

void SIPMIMEInfo::SetRouteList ( const char *  name,
const PStringList &  v 
) [protected]

store string list as one comma-delimited string of route values value formed as "<v[0]>,<v[1]>,<v[2]>" etc

PString SIPMIMEInfo::GetFullOrCompact ( const char *  fullForm,
char  compactForm 
) const [protected]

return string keyed by full or compact header


Member Data Documentation

BOOL SIPMIMEInfo::compactForm [protected]

Encode using compact form.


The documentation for this class was generated from the following file:
Generated on Fri Mar 7 06:34:07 2008 for OPAL by  doxygen 1.5.1