LOM2M  0.8.0
Controller.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013-2021 LAAS-CNRS (www.laas.fr)
3  7 Colonel Roche 31077 Toulouse - France
4 
5  The use of this source code requires an agreement with the CNRS.
6 
7  Initial Contributors:
8  David Gauchard, Guillaume Garzone, Thierry Monteil.
9 */
10 
11 #ifndef __CONTROLLER_H
12 #define __CONTROLLER_H
13 
14 #include "configuration.h"
15 
16 #include "Entity.h"
17 #include "RequestPrimitive.h"
18 #include "ResponsePrimitive.h"
19 
20 
26 {
27 public:
33  static Entity* createResource(RequestPrimitive& request, ResponsePrimitive* resp, Entity* targetEntity, JsonObject o);
34  static bool updateResource(Entity* entityToUpdate, JsonObject o);
35  static Entity* findEntityFromUri(String uri, UriType uriType);
36 };
37 
39 {
40 public:
48  static void performDiscovery(RequestPrimitive& req, ResponsePrimitive* resp, Entity* targetEntity);
49 };
50 
51 #if SUBSCRIPTION_FEAT
56 {
57 
58 public:
66 };
67 #endif // SUBSCRIPTION_FEAT
68 
69 #endif
UriType
Definition: RequestPrimitive.h:30
ResponseStatusCode
Definition: ResponsePrimitive.h:19
Definition: Controller.h:26
static ResponseStatusCode checkValidityRequestPri(const RequestPrimitive &req)
Definition: ControllersGlobal.cpp:316
static Entity * createResource(RequestPrimitive &request, ResponsePrimitive *resp, Entity *targetEntity, JsonObject o)
Definition: ControllersGlobal.cpp:16
static bool updateResource(Entity *entityToUpdate, JsonObject o)
static Entity * findEntityFromUri(String uri, UriType uriType)
Definition: ControllersGlobal.cpp:367
Definition: Controller.h:39
static void performDiscovery(RequestPrimitive &req, ResponsePrimitive *resp, Entity *targetEntity)
Definition: ControllerDiscovery.cpp:15
Definition: RequestPrimitive.h:41
Definition: ResponsePrimitive.h:49
Definition: Controller.h:56
static ResponseStatusCode performVerificationRequest(const RequestPrimitive &request, Subscription &sub)
Definition: SubscriptionController.cpp:21
Definition: Entity.h:235
Definition: Entity.h:799