|
reSIProcate/stack
9694
|
Represents the "Status-Line" element in the RFC 3261 grammar. More...
#include <StatusLine.hxx>


Public Member Functions | |
| StatusLine () | |
| StatusLine (const HeaderFieldValue &hfv) | |
| StatusLine (const char *buf, int length) | |
| StatusLine (const StatusLine &) | |
| StatusLine & | operator= (const StatusLine &) |
| int & | responseCode () |
| int | responseCode () const |
| int & | statusCode () |
| int | statusCode () const |
| const Data & | getSipVersion () const |
| Data & | reason () |
| const Data & | reason () const |
| virtual void | parse (ParseBuffer &pb) |
| virtual StartLine * | clone () const |
| virtual StartLine * | clone (void *location) const |
| virtual EncodeStream & | encodeParsed (EncodeStream &str) const |
| virtual const Data & | errorContext () const |
Private Attributes | |
| int | mResponseCode |
| Data | mSipVersion |
| Data | mReason |
Represents the "Status-Line" element in the RFC 3261 grammar.
Definition at line 15 of file StatusLine.hxx.
| StatusLine::StatusLine | ( | ) |
Definition at line 20 of file StatusLine.cxx.
Referenced by clone().
: StartLine(), mResponseCode(-1), mSipVersion(Data::Share,Symbols::DefaultSipVersion), mReason() {}
| StatusLine::StatusLine | ( | const HeaderFieldValue & | hfv | ) |
Definition at line 27 of file StatusLine.cxx.
: StartLine(hfv), mResponseCode(-1), mSipVersion(Data::Share,Symbols::DefaultSipVersion), mReason() {}
| StatusLine::StatusLine | ( | const char * | buf, |
| int | length | ||
| ) |
Definition at line 34 of file StatusLine.cxx.
: StartLine(buf, length), mResponseCode(-1), mSipVersion(Data::Share,Symbols::DefaultSipVersion), mReason() {}
| StatusLine::StatusLine | ( | const StatusLine & | rhs | ) |
Definition at line 41 of file StatusLine.cxx.
: StartLine(rhs), mResponseCode(rhs.mResponseCode), mSipVersion(rhs.mSipVersion), mReason(rhs.mReason) {}
| StartLine * StatusLine::clone | ( | ) | const [virtual] |
Implements resip::StartLine.
Definition at line 62 of file StatusLine.cxx.
References StatusLine().
{
return new StatusLine(*this);
}

| StartLine * StatusLine::clone | ( | void * | location | ) | const [virtual] |
Implements resip::StartLine.
Definition at line 68 of file StatusLine.cxx.
References StatusLine().
{
return new (location) StatusLine(*this);
}

| EncodeStream & StatusLine::encodeParsed | ( | EncodeStream & | str | ) | const [virtual] |
Implements resip::StartLine.
Definition at line 137 of file StatusLine.cxx.
References mReason, mResponseCode, mSipVersion, and resip::Symbols::SPACE.
{
str << mSipVersion << Symbols::SPACE
<< mResponseCode << Symbols::SPACE
<< mReason;
return str;
}
| const Data & StatusLine::errorContext | ( | ) | const [virtual] |
Implements resip::StartLine.
Definition at line 146 of file StatusLine.cxx.
{
static const Data statLine("Status Line");
return statLine;
}
| const Data & StatusLine::getSipVersion | ( | ) | const |
Definition at line 102 of file StatusLine.cxx.
References resip::LazyParser::checkParsed(), and mSipVersion.
{
checkParsed();
return mSipVersion;
}

| StatusLine & StatusLine::operator= | ( | const StatusLine & | rhs | ) |
Definition at line 49 of file StatusLine.cxx.
References mReason, mResponseCode, and mSipVersion.
{
if (this != &rhs)
{
StartLine::operator=(rhs);
mResponseCode = rhs.mResponseCode;
mSipVersion = rhs.mSipVersion;
mReason = rhs.mReason;
}
return *this;
}
| void StatusLine::parse | ( | ParseBuffer & | pb | ) | [virtual] |
Implements resip::StartLine.
Definition at line 123 of file StatusLine.cxx.
References resip::ParseBuffer::data(), resip::ParseBuffer::integer(), mReason, mResponseCode, mSipVersion, resip::ParseBuffer::skipNonWhitespace(), resip::ParseBuffer::skipToEnd(), and resip::ParseBuffer::skipWhitespace().
{
const char* start = pb.skipWhitespace();
pb.skipNonWhitespace();
pb.data(mSipVersion, start);
start = pb.skipWhitespace();
mResponseCode = pb.integer();
start = pb.skipWhitespace();
pb.skipToEnd();
pb.data(mReason, start);
}

| Data & StatusLine::reason | ( | ) |
Definition at line 109 of file StatusLine.cxx.
References resip::LazyParser::checkParsed(), and mReason.
{
checkParsed();
return mReason;
}

| const Data & StatusLine::reason | ( | ) | const |
Definition at line 116 of file StatusLine.cxx.
References resip::LazyParser::checkParsed(), and mReason.
{
checkParsed();
return mReason;
}

| int & StatusLine::responseCode | ( | ) |
Definition at line 74 of file StatusLine.cxx.
References resip::LazyParser::checkParsed(), and mResponseCode.
{
checkParsed();
return mResponseCode;
}

| int StatusLine::responseCode | ( | ) | const |
Definition at line 81 of file StatusLine.cxx.
References resip::LazyParser::checkParsed(), and mResponseCode.
{
checkParsed();
return mResponseCode;
}

| int & StatusLine::statusCode | ( | ) |
Definition at line 88 of file StatusLine.cxx.
References resip::LazyParser::checkParsed(), and mResponseCode.
{
checkParsed();
return mResponseCode;
}

| int StatusLine::statusCode | ( | ) | const |
Definition at line 95 of file StatusLine.cxx.
References resip::LazyParser::checkParsed(), and mResponseCode.
{
checkParsed();
return mResponseCode;
}

Data resip::StatusLine::mReason [private] |
Definition at line 41 of file StatusLine.hxx.
Referenced by encodeParsed(), operator=(), parse(), and reason().
int resip::StatusLine::mResponseCode [private] |
Definition at line 39 of file StatusLine.hxx.
Referenced by encodeParsed(), operator=(), parse(), responseCode(), and statusCode().
Data resip::StatusLine::mSipVersion [private] |
Definition at line 40 of file StatusLine.hxx.
Referenced by encodeParsed(), getSipVersion(), operator=(), and parse().
1.7.5.1