Poco::OSP::WebEvent

class WebEventRequestHandler

Library: OSP/WebEvent
Package: WebEvent
Header: Poco/OSP/WebEvent/WebEventRequestHandler.h

Description

This class handles an incoming WebSocket upgrade request, as well as the SUBSCRIBE message. Once the WebSocket connection has been established and the SUBSCRIBE request has been handled, the WebSocket is transferred to the WebEventServiceImpl instance.

Inheritance

Direct Base Classes: Poco::Net::HTTPRequestHandler

All Base Classes: Poco::Net::HTTPRequestHandler

Member Summary

Member Functions: handleRequest

Inherited Functions: handleRequest

Constructors

WebEventRequestHandler

WebEventRequestHandler(
    WebEventServiceImpl::Ptr pWebEventServiceImpl,
    Poco::OSP::BundleContext::Ptr pContext
);

Creates the WebEventRequestHandler.

Destructor

~WebEventRequestHandler virtual

~WebEventRequestHandler();

Destroys the WebEventRequestHandler.

Member Functions

handleRequest

void handleRequest(
    Poco::Net::HTTPServerRequest & request,
    Poco::Net::HTTPServerResponse & response
);

Handles an incoming WebSocket upgrade request, as well as the SUBSCRIBE message.

Securely control IoT edge devices from anywhere   Connect a Device