This subclass of RestResource processes the REST requests for the Logs
namespace. More...
Header: | #include <LogsResource> |
Inherits: | RestResource |
LogsResource(QObject * parent = 0) |
virtual QString | name() const |
virtual HttpReply * | proccessRequest(const HttpRequest & request, const QStringList & urlTokens) |
This subclass of RestResource processes the REST requests for the Logs
namespace.
This RestResource will be created in the RestServer and used to handle REST requests for the Logs
namespace of the API.
http://localhost:3333/api/v1/logs
See also LogEntry, RestResource, and RestServer.
Constructs a LogsResource with the given parent.
[virtual]
QString LogsResource::name() constReimplemented from RestResource::name().
Returns the name of the RestResource. In this case logs.
See also RestResource::name().
[virtual]
HttpReply * LogsResource::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().