Poco::UPnP::SOAP

class Transport

Library: UPnP/SOAP
Package: SOAP
Header: Poco/UPnP/SOAP/Transport.h

Description

The Transport implementation for UPnP SOAP.

This Transport implementation provides SOAP support for UPnP device control.

Inheritance

Direct Base Classes: Poco::RemotingNG::Transport

All Base Classes: Poco::RefCountedObject, Poco::RemotingNG::AttributedObject, Poco::RemotingNG::Transport

Member Summary

Member Functions: beginMessage, beginRequest, connect, connected, disconnect, endPoint, endRequest, getKeepAlive, getKeepAliveTimeout, getTimeout, requireSession, sendMessage, sendRequest, setKeepAlive, setKeepAliveTimeout, setTimeout

Inherited Functions: beginMessage, beginRequest, connect, connected, disconnect, duplicate, endPoint, endRequest, getAttribute, hasAttribute, referenceCount, release, sendMessage, sendRequest, setAttribute

Constructors

Transport

Transport(
    bool keepAlive = false
);

Creates a Transport.

If keepAlive is true, enables HTTP 1.1 persistent connections for this Transport connection.

Destructor

~Transport virtual

~Transport();

Destroys the Transport.

Member Functions

beginMessage

Poco::RemotingNG::Serializer & beginMessage(
    const Poco::RemotingNG::Identifiable::ObjectId & oid,
    const Poco::RemotingNG::Identifiable::TypeId & tid,
    const std::string & messageName,
    Poco::RemotingNG::SerializerBase::MessageType messageType
);

beginRequest

Poco::RemotingNG::Serializer & beginRequest(
    const Poco::RemotingNG::Identifiable::ObjectId & oid,
    const Poco::RemotingNG::Identifiable::TypeId & tid,
    const std::string & messageName,
    Poco::RemotingNG::SerializerBase::MessageType messageType
);

connect virtual

void connect(
    const std::string & endPoint
);

See also: Poco::RemotingNG::Transport::connect()

connected virtual

bool connected() const;

See also: Poco::RemotingNG::Transport::connected()

disconnect virtual

void disconnect();

See also: Poco::RemotingNG::Transport::disconnect()

endPoint virtual

const std::string & endPoint() const;

See also: Poco::RemotingNG::Transport::endPoint()

endRequest virtual

void endRequest();

See also: Poco::RemotingNG::Transport::endRequest()

getKeepAlive

bool getKeepAlive() const;

Returns true if and only if HTTP/1.1 persistent connections are enabled.

The Transport must be connected, otherwise a Poco::IllegalStateException will be thrown.

getKeepAliveTimeout

Poco::Timespan getKeepAliveTimeout() const;

Returns the timeout for HTTP/1.1 persistent connections.

The Transport must be connected, otherwise a Poco::IllegalStateException will be thrown.

getTimeout

Poco::Timespan getTimeout() const;

Returns the HTTP timeout.

The Transport must be connected, otherwise a Poco::IllegalStateException will be thrown.

sendMessage

void sendMessage(
    const Poco::RemotingNG::Identifiable::ObjectId & oid,
    const Poco::RemotingNG::Identifiable::TypeId & tid,
    const std::string & messageName,
    Poco::RemotingNG::SerializerBase::MessageType messageType
);

sendRequest

Poco::RemotingNG::Deserializer & sendRequest(
    const Poco::RemotingNG::Identifiable::ObjectId & oid,
    const Poco::RemotingNG::Identifiable::TypeId & tid,
    const std::string & messageName,
    Poco::RemotingNG::SerializerBase::MessageType messageType
);

setKeepAlive

void setKeepAlive(
    bool enable
);

Enables or disables HTTP/1.1 persistent connections.

The Transport must be connected, otherwise a Poco::IllegalStateException will be thrown.

setKeepAliveTimeout

void setKeepAliveTimeout(
    const Poco::Timespan & timeout
);

Sets the timeout for HTTP/1.1 persistent connections.

The Transport must be connected, otherwise a Poco::IllegalStateException will be thrown.

setTimeout

void setTimeout(
    const Poco::Timespan & timeout
);

Sets the HTTP timeout.

The Transport must be connected, otherwise a Poco::IllegalStateException will be thrown.

requireSession protected

const Poco::Net::HTTPClientSession & requireSession() const;

requireSession protected

Poco::Net::HTTPClientSession & requireSession();

Variables

PROTOCOL static

static const std::string PROTOCOL;

CONTENT_TYPE protected static

static const std::string CONTENT_TYPE;

SOAPACTION protected static

static const std::string SOAPACTION;