|
reSIProcate/repro
9694
|
#include <Processor.hxx>


Public Types | |
| enum | ChainType { NO_TYPE = 0, REQUEST_CHAIN, RESPONSE_CHAIN, TARGET_CHAIN } |
| enum | processor_action_t { Continue, WaitingForEvent, SkipThisChain, SkipAllChains } |
Public Member Functions | |
| Processor (const resip::Data &name, ChainType type=NO_TYPE) | |
| virtual | ~Processor () |
| virtual processor_action_t | process (RequestContext &)=0 |
| virtual void | setChainType (ChainType type) |
| virtual ChainType | getChainType () const |
| virtual void | setName (const resip::Data &name) |
| virtual const resip::Data & | getName () const |
| virtual void | pushAddress (const std::vector< short > &address) |
| virtual void | pushAddress (const short address) |
| virtual const std::vector < short > & | getAddress () const |
Protected Attributes | |
| std::vector< short > | mAddress |
| ChainType | mType |
| resip::Data | mName |
Definition at line 13 of file Processor.hxx.
Definition at line 16 of file Processor.hxx.
{
NO_TYPE=0,
REQUEST_CHAIN,
RESPONSE_CHAIN,
TARGET_CHAIN
} ChainType;
Definition at line 27 of file Processor.hxx.
{
Continue, // move onto the next Processor
WaitingForEvent, // stop Processor chain and wait for async response
SkipThisChain,
SkipAllChains
}
| Processor::Processor | ( | const resip::Data & | name, |
| ChainType | type = NO_TYPE |
||
| ) |
Definition at line 13 of file Processor.cxx.
| Processor::~Processor | ( | ) | [virtual] |
Definition at line 19 of file Processor.cxx.
{
}
| const std::vector< short > & Processor::getAddress | ( | ) | const [virtual] |
Definition at line 63 of file Processor.cxx.
{
return mAddress;
}
| Processor::ChainType Processor::getChainType | ( | ) | const [virtual] |
Definition at line 45 of file Processor.cxx.
{
return mType;
}
| const resip::Data & Processor::getName | ( | ) | const [virtual] |
Definition at line 57 of file Processor.cxx.
{
return mName;
}
| virtual processor_action_t repro::Processor::process | ( | RequestContext & | ) | [pure virtual] |
Implemented in repro::AsyncProcessor, repro::GeoProximityTargetSorter, repro::QValueTargetHandler, repro::RequestFilter, repro::CertificateAuthenticator, repro::LocationServer, repro::MessageSilo, repro::DigestAuthenticator, repro::IsTrustedNode, repro::ProcessorChain, repro::SimpleStaticRoute, repro::StaticRoute, repro::AmIResponsible, repro::GruuMonkey, repro::OutboundTargetHandler, repro::SimpleTargetHandler, repro::RecursiveRedirect, repro::ConstantLocationMonkey, and repro::StrictRouteFixup.
| void Processor::pushAddress | ( | const std::vector< short > & | address | ) | [virtual] |
Reimplemented in repro::ProcessorChain.
Definition at line 24 of file Processor.cxx.
{
for(std::vector<short>::const_iterator i=address.begin();i!=address.end();++i)
{
mAddress.push_back(*i);
}
}
| void Processor::pushAddress | ( | const short | address | ) | [virtual] |
Reimplemented in repro::ProcessorChain.
Definition at line 33 of file Processor.cxx.
{
mAddress.push_back(address);
}
| void Processor::setChainType | ( | ChainType | type | ) | [virtual] |
Reimplemented in repro::ProcessorChain.
Definition at line 39 of file Processor.cxx.
| void Processor::setName | ( | const resip::Data & | name | ) | [virtual] |
Definition at line 51 of file Processor.cxx.
{
mName = name;
}
std::vector<short> repro::Processor::mAddress [protected] |
Definition at line 50 of file Processor.hxx.
resip::Data repro::Processor::mName [protected] |
Definition at line 52 of file Processor.hxx.
ChainType repro::Processor::mType [protected] |
Definition at line 51 of file Processor.hxx.
1.7.5.1