INET Framework for OMNeT++/OMNEST
inet::httptools::HttpRequestMessage Class Reference

Class generated from inet/applications/httptools/common/HttpMessages.msg:88 by nedtool. More...

#include <HttpMessages_m.h>

Inheritance diagram for inet::httptools::HttpRequestMessage:
inet::httptools::HttpBaseMessage

Public Member Functions

 HttpRequestMessage (const char *name=nullptr, short kind=0)
 
 HttpRequestMessage (const HttpRequestMessage &other)
 
virtual ~HttpRequestMessage ()
 
HttpRequestMessageoperator= (const HttpRequestMessage &other)
 
virtual HttpRequestMessagedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual bool badRequest () const
 
virtual void setBadRequest (bool badRequest)
 
- Public Member Functions inherited from inet::httptools::HttpBaseMessage
 HttpBaseMessage (const char *name=nullptr, short kind=0)
 
 HttpBaseMessage (const HttpBaseMessage &other)
 
virtual ~HttpBaseMessage ()
 
HttpBaseMessageoperator= (const HttpBaseMessage &other)
 
virtual const char * targetUrl () const
 
virtual void setTargetUrl (const char *targetUrl)
 
virtual const char * originatorUrl () const
 
virtual void setOriginatorUrl (const char *originatorUrl)
 
virtual int protocol () const
 
virtual void setProtocol (int protocol)
 
virtual bool keepAlive () const
 
virtual void setKeepAlive (bool keepAlive)
 
virtual int serial () const
 
virtual void setSerial (int serial)
 
virtual const char * heading () const
 
virtual void setHeading (const char *heading)
 
virtual const char * payload () const
 
virtual void setPayload (const char *payload)
 

Protected Member Functions

bool operator== (const HttpRequestMessage &)
 
- Protected Member Functions inherited from inet::httptools::HttpBaseMessage
bool operator== (const HttpBaseMessage &)
 

Protected Attributes

bool badRequest_var
 
- Protected Attributes inherited from inet::httptools::HttpBaseMessage
::omnetpp::opp_string targetUrl_var
 
::omnetpp::opp_string originatorUrl_var
 
int protocol_var
 
bool keepAlive_var
 
int serial_var
 
::omnetpp::opp_string heading_var
 
::omnetpp::opp_string payload_var
 

Private Member Functions

void copy (const HttpRequestMessage &other)
 

Detailed Description

Class generated from inet/applications/httptools/common/HttpMessages.msg:88 by nedtool.

//
// Message class for HTTP requests
//
packet HttpRequestMessage extends HttpBaseMessage
{
    @omitGetVerb(true);         // Dont append get to generated getter methods.
    @fieldNameSuffix("_var");
    bool badRequest = false;    // Set to true to simulate a bad request. Server answers w. 404.
}

Constructor & Destructor Documentation

inet::httptools::HttpRequestMessage::HttpRequestMessage ( const char *  name = nullptr,
short  kind = 0 
)
inet::httptools::HttpRequestMessage::HttpRequestMessage ( const HttpRequestMessage other)
virtual inet::httptools::HttpRequestMessage::~HttpRequestMessage ( )
virtual

Member Function Documentation

void inet::httptools::HttpRequestMessage::copy ( const HttpRequestMessage other)
private
virtual HttpRequestMessage* inet::httptools::HttpRequestMessage::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::httptools::HttpBaseMessage.

132 {return new HttpRequestMessage(*this);}
HttpRequestMessage(const char *name=nullptr, short kind=0)
HttpRequestMessage& inet::httptools::HttpRequestMessage::operator= ( const HttpRequestMessage other)
bool inet::httptools::HttpRequestMessage::operator== ( const HttpRequestMessage )
protected
virtual void inet::httptools::HttpRequestMessage::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual
virtual void inet::httptools::HttpRequestMessage::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual
virtual void inet::httptools::HttpRequestMessage::setBadRequest ( bool  badRequest)
virtual

Member Data Documentation

bool inet::httptools::HttpRequestMessage::badRequest_var
protected

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