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

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

#include <HttpMessages_m.h>

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

Public Member Functions

 HttpReplyMessage (const char *name=nullptr, short kind=0)
 
 HttpReplyMessage (const HttpReplyMessage &other)
 
virtual ~HttpReplyMessage ()
 
HttpReplyMessageoperator= (const HttpReplyMessage &other)
 
virtual HttpReplyMessagedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int result () const
 
virtual void setResult (int result)
 
virtual int contentType () const
 
virtual void setContentType (int contentType)
 
- 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 HttpReplyMessage &)
 
- Protected Member Functions inherited from inet::httptools::HttpBaseMessage
bool operator== (const HttpBaseMessage &)
 

Protected Attributes

int result_var
 
int contentType_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 HttpReplyMessage &other)
 

Detailed Description

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

//
// Message class for HTTP replies
//
packet HttpReplyMessage extends HttpBaseMessage
{
    @omitGetVerb(true);
    @fieldNameSuffix("_var");
    int result = 0;      // e.g. 200 for OK, 404 for NOT FOUND.
    int contentType @enum(HttpContentType) = CT_UNKNOWN;
}

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from inet::httptools::HttpBaseMessage.

200 {return new HttpReplyMessage(*this);}
HttpReplyMessage(const char *name=nullptr, short kind=0)
HttpReplyMessage& inet::httptools::HttpReplyMessage::operator= ( const HttpReplyMessage other)
bool inet::httptools::HttpReplyMessage::operator== ( const HttpReplyMessage )
protected
virtual void inet::httptools::HttpReplyMessage::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual
virtual void inet::httptools::HttpReplyMessage::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual
virtual void inet::httptools::HttpReplyMessage::setContentType ( int  contentType)
virtual
virtual void inet::httptools::HttpReplyMessage::setResult ( int  result)
virtual

Member Data Documentation

int inet::httptools::HttpReplyMessage::contentType_var
protected
int inet::httptools::HttpReplyMessage::result_var
protected

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