metaproxy  1.13.0
Classes | Public Member Functions | Private Attributes | List of all members
metaproxy_1::filter::Bounce Class Reference

#include <filter_bounce.hpp>

Inheritance diagram for metaproxy_1::filter::Bounce:
Inheritance graph
Collaboration diagram for metaproxy_1::filter::Bounce:
Collaboration graph

Classes

class  Rep
 

Public Member Functions

 Bounce ()
 
 ~Bounce ()
 
void process (metaproxy_1::Package &package) const
 
void configure (const xmlNode *ptr, bool test_only, const char *path)
 

Private Attributes

boost::scoped_ptr< Repm_p
 

Detailed Description

Definition at line 31 of file filter_bounce.hpp.

Constructor & Destructor Documentation

metaproxy_1::filter::Bounce::Bounce ( )
metaproxy_1::filter::Bounce::~Bounce ( )

Member Function Documentation

void metaproxy_1::filter::Bounce::configure ( const xmlNode *  ptr,
bool  test_only,
const char *  path 
)

Definition at line 126 of file filter_bounce.cpp.

References m_p.

128 {
129  for (ptr = ptr->children; ptr; ptr = ptr->next)
130  {
131  if (ptr->type != XML_ELEMENT_NODE)
132  continue;
133  else if (!strcmp((const char *) ptr->name, "echo"))
134  {
135  m_p->echo = mp::xml::get_bool(ptr, 0);
136  }
137  else
138  {
139  throw mp::filter::FilterException
140  ("Bad element '"
141  + std::string((const char *) ptr->name)
142  + "' in bounce filter");
143  }
144  }
145 
146 }
boost::scoped_ptr< Rep > m_p
void metaproxy_1::filter::Bounce::process ( metaproxy_1::Package &  package) const

Member Data Documentation

boost::scoped_ptr<Rep> metaproxy_1::filter::Bounce::m_p
private

Definition at line 32 of file filter_bounce.hpp.

Referenced by configure(), and http_echo().


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