tnt::Mapping Class Reference

#include <tnt/mapping.h>

Public Types

typedef Maptarget::args_type args_type

Public Member Functions

 Mapping ()
 Mapping (const std::string &vhost, const std::string &url, const std::string &method, int ssl, const Maptarget &target)
const std::string & getVHost () const
const std::string & getUrl () const
const std::string & getMethod () const
int getSsl () const
const Maptarget & getTarget () const
MappingsetPathInfo (const std::string &p)
MappingsetHttpReturn (unsigned httpreturn)
MappingsetArgs (const args_type &a)
MappingsetArg (const std::string &name, const std::string &value)
MappingpushArg (const std::string &value)
 Emulate old positional argument list.
MappingsetVHost (const std::string &vhost)
MappingsetUrl (const std::string &url)
MappingsetMethod (const std::string &method)
MappingsetSsl (bool sw)
MappingunsetSsl ()
bool match (const HttpRequest &request, cxxtools::RegexSMatch &smatch) const

Member Typedef Documentation

typedef Maptarget::args_type tnt::Mapping::args_type

Constructor & Destructor Documentation

tnt::Mapping::Mapping ( )
inline
tnt::Mapping::Mapping ( const std::string &  vhost,
const std::string &  url,
const std::string &  method,
int  ssl,
const Maptarget &  target 
)

Member Function Documentation

const std::string& tnt::Mapping::getMethod ( ) const
inline
int tnt::Mapping::getSsl ( ) const
inline
const Maptarget& tnt::Mapping::getTarget ( ) const
inline
const std::string& tnt::Mapping::getUrl ( ) const
inline
const std::string& tnt::Mapping::getVHost ( ) const
inline
bool tnt::Mapping::match ( const HttpRequest request,
cxxtools::RegexSMatch smatch 
) const
Mapping& tnt::Mapping::pushArg ( const std::string &  value)

Emulate old positional argument list.

Deprecated:
Mapping& tnt::Mapping::setArg ( const std::string &  name,
const std::string &  value 
)
inline
Mapping& tnt::Mapping::setArgs ( const args_type a)
inline
Mapping& tnt::Mapping::setHttpReturn ( unsigned  httpreturn)
inline
Mapping& tnt::Mapping::setMethod ( const std::string &  method)
inline
Mapping& tnt::Mapping::setPathInfo ( const std::string &  p)
inline
Mapping& tnt::Mapping::setSsl ( bool  sw)
inline
Mapping& tnt::Mapping::setUrl ( const std::string &  url)
inline
Mapping& tnt::Mapping::setVHost ( const std::string &  vhost)
inline
Mapping& tnt::Mapping::unsetSsl ( )
inline

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