ANNA Suite  2020b
Multipurpose development suite for Telco applications
Public Member Functions | List of all members
anna::http::Request Class Reference

#include <Request.hpp>

Inheritance diagram for anna::http::Request:
Inheritance graph
[legend]
Collaboration diagram for anna::http::Request:
Collaboration graph
[legend]

Public Member Functions

 Request ()
 
Method::Type::_v getMethod () const
 
const std::string & getURI () const
 
void setMethod (const Method::Type::_v method)
 
void setURI (const std::string &uri)
 
std::string asString () const
 
- Public Member Functions inherited from anna::http::Message
Type::_v getType () const
 
const std::string & getVersion () const
 
Version::_v getVersionAsEnum () const
 
const std::string & getExtraParameters () const
 
void setVersion (const std::string &version)
 
void setVersion (const Version::_v version)
 
comm::MessagesetBody (const xml::Node *node) noexcept(false)
 
HeadercreateHeader (const Header::Type::_v type) noexcept(false)
 
HeadercreateHeader (const std::string &name) noexcept(false)
 
const Headerfind (const Header::Type::_v type) const
 
Headerfind (const Header::Type::_v type)
 
Headerfind (const char *name)
 
void clear ()
 
header_iterator header_begin ()
 
header_iterator header_end ()
 
const_header_iterator header_begin () const
 
const_header_iterator header_end () const
 
const DataBlockcode () noexcept(false)
 
- Public Member Functions inherited from anna::comm::Message
 Message ()
 
virtual ~Message ()
 
const DataBlockgetBody () const
 
MessagesetBody (const DataBlock &body) noexcept(false)
 
MessagesetBody (const char *buffer, const int size) noexcept(false)
 
void clearBody ()
 
- Public Member Functions inherited from anna::DataBlock
 DataBlock (const bool deepCopy=false)
 
 DataBlock (const char *buffer, const int size, const bool deepCopy=false) noexcept(false)
 
 DataBlock (const DataBlock &other) noexcept(false)
 
virtual ~DataBlock ()
 
int getMaxSize () const
 
int getSize () const
 
const char * getData () const
 
bool isEmpty () const
 
bool deepCopy () const
 
void setSize (const int size) noexcept(false)
 
DataBlockoperator+= (const char c) noexcept(false)
 
DataBlockoperator+= (const DataBlock &right) noexcept(false)
 
DataBlockoperator+= (const std::string &str) noexcept(false)
 
const char operator[] (const int pos) const noexcept(false)
 
char & operator[] (const int pos) noexcept(false)
 
void append (const char *data, const int len) noexcept(false)
 
void append (const DataBlock &other) noexcept(false)
 
void assign (const DataBlock &right) noexcept(false)
 
void assign (const char *buffer, const int size) noexcept(false)
 
DataBlockoperator= (const DataBlock &right) noexcept(false)
 
DataBlockoperator= (const char c) noexcept(false)
 
DataBlockoperator= (const std::string &str) noexcept(false)
 
void allocate (const int nbytes) noexcept(false)
 
void clear () noexcept(false)
 
void remove (const int pos, const int nbytes) noexcept(false)
 
void remove (const int nbytes) noexcept(false)
 
std::string asString (const int characterByLine=24) const
 

Additional Inherited Members

- Public Types inherited from anna::http::Message
typedef Recycler< Header >::iterator header_iterator
 
typedef Recycler< Header >::const_iterator const_header_iterator
 
- Static Public Member Functions inherited from anna::http::Message
static Headerheader (header_iterator &ii)
 
static const Headerheader (const_header_iterator &ii)
 
- Protected Member Functions inherited from anna::http::Message
 Message (const Type::_v type)
 
- Protected Member Functions inherited from anna::comm::Message
 Message (const StatusCodeBuffer::_v statusCodeBuffer)
 
 Message (DataBlock &codeBuffer)
 
- Protected Member Functions inherited from anna::DataBlock
void initialize (const char *buffer, const int size) noexcept(false)
 
void setBuffer (const char *buffer)
 
void setMaxSize (const int maxSize)
 
- Protected Attributes inherited from anna::comm::Message
DataBlocka_codeBuffer
 

Detailed Description

Clase que modela las peticiones HTTP segun la RFC 2616.

Constructor & Destructor Documentation

◆ Request()

anna::http::Request::Request ( )
inlineexplicit

Constructor.

Member Function Documentation

◆ asString()

std::string anna::http::Request::asString ( ) const
virtual

Devuelve una cadena con toda la informacion relevante de este objeto.

Returns
una cadena con toda la informacion relevante de este objeto.

Implements anna::http::Message.

◆ getMethod()

Method::Type::_v anna::http::Request::getMethod ( ) const
inline

Devuelve el metodo asociado a esta peticion.

Returns
el metodo asociado a esta peticion.
33 { return a_method; }

◆ getURI()

const std::string& anna::http::Request::getURI ( ) const
inline

Devuelve la URI asociado a esta peticion.

Returns
la URI asociado a esta peticion.
39 { return a_uri; }

◆ setMethod()

void anna::http::Request::setMethod ( const Method::Type::_v  method)
inline

Establece el metodo de esta peticion.

Parameters
methodMetodo a establecer para la peticion.
45 { a_method = method; }

◆ setURI()

void anna::http::Request::setURI ( const std::string &  uri)
inline

Establece el URI de esta peticion.

Parameters
uriURI a establecer para la peticion.
51 { a_uri = uri; }
Here is the call graph for this function:

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