Poco::RemotingNG

class MethodHandler

Library: RemotingNG
Package: ORB
Header: Poco/RemotingNG/MethodHandler.h

Description

A MethodHandler deserializes and forwards a remote call to the service object, via the RemoteObject.

MethodHandler classes are generated by the RemotingNG code generator, together with the Skeleton class, which manages them.

Inheritance

Direct Base Classes: Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject

Member Summary

Member Functions: invoke

Inherited Functions: duplicate, referenceCount, release

Types Aliases

Ptr

using Ptr = Poco::AutoPtr < MethodHandler >;

Constructors

MethodHandler

MethodHandler();

Creates a MethodHandler.

Destructor

~MethodHandler virtual

virtual ~MethodHandler();

Destroys the MethodHandler.

Member Functions

invoke virtual

virtual void invoke(
    ServerTransport & transport,
    Deserializer & deserializer,
    RemoteObject::Ptr pRemoteObject
) = 0;

Deserializes the incoming request using the given Deserializer and invokes the corresponding method on the service object, via the RemoteObject.

After the invocation, serializes the return value and output parameters (or exception) of the method using the ServerTransport's Serializer.

Securely control IoT edge devices from anywhere   Connect a Device