Poco::UPnP::SSDP

class HTTPMUMessageHandlerFactory

File Information

Library: UPnP/SSDP
Package: HTTPMU
Header: Poco/UPnP/SSDP/HTTPMUMessageHandlerFactory.h

Description

A factory for HTTPMUMessageHandler objects. Subclasses must override the createMessageHandler() method.

Member Summary

Member Functions: createMessageHandler

Types

Ptr

typedef Poco::SharedPtr < HTTPMUMessageHandlerFactory > Ptr;

Constructors

HTTPMUMessageHandlerFactory

HTTPMUMessageHandlerFactory();

Destructor

~HTTPMUMessageHandlerFactory virtual

virtual ~HTTPMUMessageHandlerFactory();

Destroys the HTTPMUMessageHandler.

Member Functions

createMessageHandler virtual

virtual HTTPMUMessageHandler * createMessageHandler(
    const Poco::Net::HTTPMessage & message
) = 0;

Must be overridden by sublasses.

Creates a new message handler for the given HTTPMU request.

The given message object will be an instance of Poco::Net::HTTPRequest or Poco::Net::HTTPResponse. This can be used to create a message-specific message handler object, if required.

Securely control IoT edge devices from anywhere   Connect a Device