It contains low level API and high level API. The only low level method is request() and other methods are categorized as high level API.
| Modifier and Type | Method and Description |
|---|---|
| public Promise | Returns: Promise of created resourceURI for parent resource of the resource being created. uri, ResourceDTO resource data resource)create resource The create() method is a method to create new resource under specified uri. |
| public Promise | |
| public Promise | Returns: list of URIs matching the condition specified in fcURI for resource tree to start the search uri, FilterCriteriaDTO filter criteria selecting resources fc)find resources with filter condition specified in fc argument. |
| public Promise | Returns: list of URIs matching the condition specified in fcURI for resource tree to start the search uri, FilterCriteriaDTO filter criteria fc, RequestPrimitiveDTO.Discovery Result Type (structured/unstructured) drtfind resources with filter condition specified in fc argument. |
| public Promise | Returns: Promise of notification execution statusuri of destination uri, NotificationDTO content of notification notification)send notification
|
| public Promise | Returns: promise of ResponseDTO.request primitive request)send a request and receive response. |
| public Promise | |
| public Promise | |
| public Promise | Returns: updated resourceURI for updating resource uri, ResourceDTO data resource resource)update resource The update() method is a method to update resource on the URI specified by uri argument. |
| create | back to summary |
|---|---|
| public Promise create resource The create() method is a method to create new resource under specified uri. The second argument resource is expression of resource to be generated. The resourceType field of the resourceDTO must be assigned. For other fields depends on resource type. Section 7.4 of TS-00004 specifies the optionalities of the fields.
| |
| delete | back to summary |
|---|---|
| public Promise delete resource delete resource on the URI specified by uri argument. | |
| discovery | back to summary |
|---|---|
| public Promise find resources with filter condition specified in fc argument. Discovery Result Type is kept as blank and default value of target CSE is used for the parameter.
| |
| discovery | back to summary |
|---|---|
| public Promise find resources with filter condition specified in fc argument. With this method application can specify desired identifier in result
| |
| notify | back to summary |
|---|---|
| public Promise send notification
| |
| request | back to summary |
|---|---|
| public Promise send a request and receive response. This method allows very raw data type access and it enables all possible message exchanges among oneM2M entities. This is called the low level API. This method allows all possible operation of oneM2M. For the return type, OSGi Promise is used for allowing synchronous and asynchronous calling manner.
| |
| retrieve | back to summary |
|---|---|
| public Promise retrieve resource retrieve resource on URI specified by uri argument. This method retrieve all attributes of the resource.
| |
| retrieve | back to summary |
|---|---|
| public Promise retrieve resource with selected attributes. retrieve resource on URI specified by uri argument. This method retrieve selected attributes by targetAttributes argument. The retrieve() methods are methods to retrieve resource on URI specified by uri argument.
| |
| update | back to summary |
|---|---|
| public Promise update resource The update() method is a method to update resource on the URI specified by uri argument. The resource argument holds attributes to be updated. Attributes not to be updated shall not included in the argument.
| |