LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RedirectHandler Class Reference

#include <CmdResourceHandlers.h>

Public Member Functions

 RedirectHandler (const std::string &urlRe, const std::string &appId, bool schemeform)
 
 RedirectHandler (const std::string &urlRe, const std::string &appId, bool schemeform, const std::string &handler_tag)
 
virtual ~RedirectHandler ()
 
 RedirectHandler ()
 
const std::string & urlRe () const
 
const std::string & appId () const
 
bool matches (const std::string &url) const
 
bool reValid () const
 
bool addVerb (const std::string &verb, const std::string &jsonizedParams)
 
void removeVerb (const std::string &verb)
 
bool operator== (const RedirectHandler &c) const
 
bool operator!= (const RedirectHandler &c) const
 
bool equals (const std::string &url, const std::string &appId)
 
 RedirectHandler (const RedirectHandler &c)
 
RedirectHandleroperator= (const RedirectHandler &rhs)
 
bool valid () const
 
void markInvalid ()
 
bool isSchemeForm () const
 
const std::string & tag () const
 
void setTag (const std::string &newtag)
 
uint32_t index ()
 
uint32_t setIndex (uint32_t newindex)
 
std::string toJsonString ()
 
struct json_object * toJson ()
 
const std::map< std::string,
std::string > & 
verbs ()
 

Friends

class RedirectHandlerNode
 

Constructor & Destructor Documentation

RedirectHandler::RedirectHandler ( const std::string &  urlRe,
const std::string &  appId,
bool  schemeform 
)

Constructor.

RedirectHandler::RedirectHandler ( const std::string &  urlRe,
const std::string &  appId,
bool  schemeform,
const std::string &  handler_tag 
)
RedirectHandler::~RedirectHandler ( )
virtual

Destructor.

RedirectHandler::RedirectHandler ( )
RedirectHandler::RedirectHandler ( const RedirectHandler c)

Member Function Documentation

bool RedirectHandler::addVerb ( const std::string &  verb,
const std::string &  jsonizedParams 
)
const std::string& RedirectHandler::appId ( ) const
inline
bool RedirectHandler::equals ( const std::string &  url,
const std::string &  appId 
)
inline
uint32_t RedirectHandler::index ( )
inline
bool RedirectHandler::isSchemeForm ( ) const
inline
void RedirectHandler::markInvalid ( )
inline
bool RedirectHandler::matches ( const std::string &  url) const

Determine if a given URL string matches the URL regular expression for this redirect handler.

bool RedirectHandler::operator!= ( const RedirectHandler c) const
inline
RedirectHandler & RedirectHandler::operator= ( const RedirectHandler rhs)
bool RedirectHandler::operator== ( const RedirectHandler c) const
inline
void RedirectHandler::removeVerb ( const std::string &  verb)
bool RedirectHandler::reValid ( ) const

Is the URL regular expression for this redirect handler valid?

uint32_t RedirectHandler::setIndex ( uint32_t  newindex)
inline
void RedirectHandler::setTag ( const std::string &  newtag)
inline
const std::string& RedirectHandler::tag ( ) const
inline
struct json_object * RedirectHandler::toJson ( )
read
std::string RedirectHandler::toJsonString ( )
const std::string& RedirectHandler::urlRe ( ) const
inline
bool RedirectHandler::valid ( ) const
inline
const std::map<std::string,std::string>& RedirectHandler::verbs ( )
inline

Friends And Related Function Documentation

friend class RedirectHandlerNode
friend

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