Poco::RemotingNG::REST

class Serializer

File Information

Library: RemotingNG/REST
Package: REST
Header: Poco/RemotingNG/REST/Serializer.h

Description

The Serializer implementation for the REST Transport.

Inheritance

Direct Base Classes: Poco::RemotingNG::Serializer

All Base Classes: Poco::RemotingNG::Serializer, Poco::RemotingNG::SerializerBase

Member Summary

Member Functions: resetImpl, serialize, serializeFaultMessage, serializeMessageBegin, serializeMessageEnd, serializeNullableBegin, serializeNullableEnd, serializeOptionalBegin, serializeOptionalEnd, serializeSequenceBegin, serializeSequenceEnd, serializeStructBegin, serializeStructEnd, setRequest, setResponse, setupImpl, subSerializer

Inherited Functions: clearProperties, getProperty, hasProperty, popProperty, pushAttribute, pushProperty, registerNamespace, reset, resetImpl, serialize, serializeFaultMessage, serializeMessageBegin, serializeMessageEnd, serializeNullableBegin, serializeNullableEnd, serializeOptionalBegin, serializeOptionalEnd, serializeSequenceBegin, serializeSequenceEnd, serializeStructBegin, serializeStructEnd, setup, setupImpl

Constructors

Serializer

Serializer();

Creates the Serializer.

Destructor

~Serializer virtual

~Serializer();

Destroys the Serializer.

Member Functions

serialize virtual

void serialize(
    const std::string & name,
    Poco::Int8 val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::UInt8 val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::Int16 val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::UInt16 val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::Int32 val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::UInt32 val
);

serialize virtual

void serialize(
    const std::string & name,
    long val
);

serialize virtual

void serialize(
    const std::string & name,
    unsigned long val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::Int64 val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::UInt64 val
);

serialize virtual

void serialize(
    const std::string & name,
    float val
);

serialize virtual

void serialize(
    const std::string & name,
    double val
);

serialize virtual

void serialize(
    const std::string & name,
    bool val
);

serialize virtual

void serialize(
    const std::string & name,
    char val
);

serialize virtual

void serialize(
    const std::string & name,
    const std::string & val
);

serialize virtual

void serialize(
    const std::string & name,
    const std::vector < char > & val
);

serializeFaultMessage virtual

void serializeFaultMessage(
    const std::string & name,
    const Poco::Exception & exc
);

serializeMessageBegin

void serializeMessageBegin(
    const std::string & name,
    Poco::RemotingNG::SerializerBase::MessageType type
);

serializeMessageEnd

void serializeMessageEnd(
    const std::string & name,
    Poco::RemotingNG::SerializerBase::MessageType type
);

serializeNullableBegin virtual

void serializeNullableBegin(
    const std::string & name,
    bool isNull
);

serializeNullableEnd virtual

void serializeNullableEnd(
    const std::string & name
);

serializeOptionalBegin virtual

void serializeOptionalBegin(
    const std::string & name,
    bool isSpecified
);

serializeOptionalEnd virtual

void serializeOptionalEnd(
    const std::string & name
);

serializeSequenceBegin virtual

void serializeSequenceBegin(
    const std::string & name,
    Poco::UInt32 numElems
);

serializeSequenceEnd virtual

void serializeSequenceEnd(
    const std::string & name
);

serializeStructBegin virtual

void serializeStructBegin(
    const std::string & name
);

serializeStructEnd virtual

void serializeStructEnd(
    const std::string & name
);

setRequest inline

void setRequest(
    Poco::Net::HTTPRequest & request
);

Sets the HTTP request object.

setResponse inline

void setResponse(
    Poco::Net::HTTPResponse & response
);

Sets the HTTP response object.

resetImpl protected virtual

void resetImpl();

setupImpl protected virtual

void setupImpl(
    std::ostream & out
);

subSerializer protected

Poco::SharedPtr < Poco::RemotingNG::Serializer > subSerializer();

Variables

FORMAT_BINARY protected static

static const std::string FORMAT_BINARY;

FORMAT_JSON protected static

static const std::string FORMAT_JSON;

FORMAT_RAW protected static

static const std::string FORMAT_RAW;

LOCATION_BODY protected static

static const std::string LOCATION_BODY;

LOCATION_FORM protected static

static const std::string LOCATION_FORM;

LOCATION_HEADER protected static

static const std::string LOCATION_HEADER;

LOCATION_PATH protected static

static const std::string LOCATION_PATH;

LOCATION_QUERY protected static

static const std::string LOCATION_QUERY;

Securely control IoT edge devices from anywhere   Connect a Device