reSIProcate/repro  9694
Public Member Functions
repro::ConstantLocationMonkey Class Reference

#include <ConstantLocationMonkey.hxx>

Inheritance diagram for repro::ConstantLocationMonkey:
Inheritance graph
[legend]
Collaboration diagram for repro::ConstantLocationMonkey:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ConstantLocationMonkey ()
virtual ~ConstantLocationMonkey ()
virtual processor_action_t process (RequestContext &)

Detailed Description

Definition at line 8 of file ConstantLocationMonkey.hxx.


Constructor & Destructor Documentation

ConstantLocationMonkey::ConstantLocationMonkey ( )

Definition at line 17 of file ConstantLocationMonkey.cxx.

                                               :
   Processor("ConstantLocationMonkey")
{}
ConstantLocationMonkey::~ConstantLocationMonkey ( ) [virtual]

Definition at line 21 of file ConstantLocationMonkey.cxx.

{}

Member Function Documentation

Processor::processor_action_t ConstantLocationMonkey::process ( RequestContext context) [virtual]

Implements repro::Processor.

Definition at line 25 of file ConstantLocationMonkey.cxx.

{
  DebugLog(<< "Monkey handling request: " << *this 
           << "; reqcontext = " << context);

  if (context.getOriginalRequest().header(h_RequestLine).uri().user() == "inner")
  {
     context.getResponseContext().addTarget(NameAddr("<sip:inner@72.29.230.162>"));
  }
  else if (context.getOriginalRequest().header(h_RequestLine).uri().user() == "outer")
  {
     context.getResponseContext().addTarget(NameAddr("<sip:101@sipedge.sipit.net>"));     
  }
  
  return Processor::Continue;
}

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