formatting of eclipse import tutorial authored by Björn Butzin's avatar Björn Butzin
...@@ -92,15 +92,12 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn ...@@ -92,15 +92,12 @@ You can find the required files in our repository at [https://gitlab.amd.e-techn
* Instead we want a random number to be returned on a GET * Instead we want a random number to be returned on a GET
* PUT, POST and DELETE are not used * PUT, POST and DELETE are not used
* ->So we implemented `TemperatureResource` which extends `BasicCoapResource` with: * ->So we implemented `TemperatureResource` which extends `BasicCoapResource` with:
* A constructor to initialize the resource and disallow POST, PUT and DELETE requests * A constructor to initialize the resource and disallow POST, PUT and DELETE requests and
* Two get() Methods: * Two get() methods:
* Get a list of accepted media types [& query parameters] which returns a `byte[]` together with its media type
```java ```java
CoapData get(List<CoapMediaType> mediaTypesAccepted); CoapData get(List<CoapMediaType> mediaTypesAccepted);
CoapData get(List<String> query, List<CoapMediaType> mediaTypesAccepted); CoapData get(List<String> query, List<CoapMediaType> mediaTypesAccepted);
``` ```
* And the `getResourceType()` method
* Which returns a description string of the resource
#### 2. Instantiate a new ResourceServer (Server.java, FIXME 1): #### 2. Instantiate a new ResourceServer (Server.java, FIXME 1):
* Need a CoapResourceServer to maintain resources * Need a CoapResourceServer to maintain resources
... ...
......