Rok4Server  0.25.4
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Protected Attributes | Private Attributes | List of all members
MessageDataSource Class Reference

File messages handler. More...

#include <Message.h>

Inheritance diagram for MessageDataSource:
Inheritance graph
Collaboration diagram for MessageDataSource:
Collaboration graph

Public Member Functions

 MessageDataSource (std::string message, std::string type)
const uint8_t * getData (size_t &size)
int getHttpStatus ()
 Return the associated HTTP return code.
std::string getType ()
 Return the message's MIME type.
std::string getEncoding ()
 Return the message's encoding.
bool releaseData ()
 Free the allocated memories.

Protected Attributes

std::string message

Private Attributes

std::string type

Detailed Description

File messages handler.

Author
Institut national de l'information géographique et forestière

A MessageDataSource defines a message sent to the user. The message is sent as a file.

See Also
MessageDataStream

Constructor & Destructor Documentation

MessageDataSource::MessageDataSource ( std::string  message,
std::string  type 
)
inline
Parameters
[in]messagemessage content
[in]typeMIME type

Member Function Documentation

std::string MessageDataSource::getEncoding ( )
inline

Return the message's encoding.

Returns
type
int MessageDataSource::getHttpStatus ( )
inline

Return the associated HTTP return code.

Returns
code

Reimplemented in SERDataSource.

std::string MessageDataSource::getType ( )
inline

Return the message's MIME type.

Returns
type
bool MessageDataSource::releaseData ( )
inline

Free the allocated memories.

Returns
true if successful
See Also
libimage : DataSource

Member Data Documentation

std::string MessageDataSource::message
protected

Sent message

std::string MessageDataSource::type
private

MIME type


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