• DeviceClassesResource
  • DeviceClassesResource Class

    (nymeaserver::DeviceClassesResource)

    This subclass of RestResource processes the REST requests for the DeviceClasses namespace. More...

    Header: #include <DeviceClassesResource>
    Inherits: RestResource

    Public Functions

    DeviceClassesResource(QObject * parent = 0)

    Reimplemented Public Functions

    virtual QString name() const
    virtual HttpReply * proccessRequest(const HttpRequest & request, const QStringList & urlTokens)

    Additional Inherited Members

    Detailed Description

    This subclass of RestResource processes the REST requests for the DeviceClasses namespace.

    This RestResource will be created in the RestServer and used to handle REST requests for the DeviceClasses namespace of the API.

    http://localhost:3333/api/v1/deviceclasses

    See also DeviceClass, RestResource, and RestServer.

    Member Function Documentation

    DeviceClassesResource::DeviceClassesResource(QObject * parent = 0)

    Constructs a DeviceClassesResource with the given parent.

    [virtual] QString DeviceClassesResource::name() const

    Reimplemented from RestResource::name().

    Returns the name of the RestResource. In this case deviceclasses.

    See also RestResource::name().

    [virtual] HttpReply * DeviceClassesResource::proccessRequest(const HttpRequest & request, const QStringList & urlTokens)

    Reimplemented from RestResource::proccessRequest().

    This method will be used to process the given request and the given urlTokens. The request has to be in this namespace. Returns the resulting HttpReply.

    See also HttpRequest, HttpReply, and RestResource::proccessRequest().