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

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

#include <HttpMessages_m.h>

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

Public Member Functions

 HttpBaseMessage (const char *name=nullptr, short kind=0)
 
 HttpBaseMessage (const HttpBaseMessage &other)
 
virtual ~HttpBaseMessage ()
 
HttpBaseMessageoperator= (const HttpBaseMessage &other)
 
virtual HttpBaseMessagedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
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 HttpBaseMessage &)
 

Protected Attributes

::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 HttpBaseMessage &other)
 

Detailed Description

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

//
// Base class for HTTP messages
//
packet HttpBaseMessage
{
    @omitGetVerb(true);
    @fieldNameSuffix("_var");
    string targetUrl;               // The target URL - request set for browsers, echoed by servers.
    string originatorUrl = "";      // The originator URL. Only applicable for servers.
    int protocol = 11;              // 10 for http/1.0, 11 for http/1.1.
    bool keepAlive = true;          // The keep-alive header
    int serial = 0;                 // Convenience field which allows resource requests to be serially tagged for ease of analysis.
    string heading = "";                // The message heading - request string for requests, response for replies
    string payload = "";                // The payload field
}

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented in inet::httptools::HttpReplyMessage, and inet::httptools::HttpRequestMessage.

77 {return new HttpBaseMessage(*this);}
HttpBaseMessage(const char *name=nullptr, short kind=0)
HttpBaseMessage& inet::httptools::HttpBaseMessage::operator= ( const HttpBaseMessage other)
bool inet::httptools::HttpBaseMessage::operator== ( const HttpBaseMessage )
protected
virtual void inet::httptools::HttpBaseMessage::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual
virtual void inet::httptools::HttpBaseMessage::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual
virtual const char* inet::httptools::HttpBaseMessage::payload ( ) const
virtual
virtual void inet::httptools::HttpBaseMessage::setHeading ( const char *  heading)
virtual
virtual void inet::httptools::HttpBaseMessage::setKeepAlive ( bool  keepAlive)
virtual
virtual void inet::httptools::HttpBaseMessage::setOriginatorUrl ( const char *  originatorUrl)
virtual
virtual void inet::httptools::HttpBaseMessage::setPayload ( const char *  payload)
virtual
virtual void inet::httptools::HttpBaseMessage::setProtocol ( int  protocol)
virtual
virtual void inet::httptools::HttpBaseMessage::setSerial ( int  serial)
virtual
virtual void inet::httptools::HttpBaseMessage::setTargetUrl ( const char *  targetUrl)
virtual

Member Data Documentation

::omnetpp::opp_string inet::httptools::HttpBaseMessage::heading_var
protected
bool inet::httptools::HttpBaseMessage::keepAlive_var
protected
::omnetpp::opp_string inet::httptools::HttpBaseMessage::originatorUrl_var
protected
::omnetpp::opp_string inet::httptools::HttpBaseMessage::payload_var
protected
int inet::httptools::HttpBaseMessage::protocol_var
protected
int inet::httptools::HttpBaseMessage::serial_var
protected
::omnetpp::opp_string inet::httptools::HttpBaseMessage::targetUrl_var
protected

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