Changes between Version 7 and Version 8 of RpRepDeployment
- Timestamp:
- Oct 20, 2010, 12:42:06 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RpRepDeployment
v7 v8 19 19 The Java REP reference implementation provides some help to Resource Providers showing an example using the Restlet framework. 20 20 21 The REP class provides a method **createInboundRoot()** in which the routing of REST requests is defined. In the example below all requests issued to {REP_URL}/s/sensorNameare routed to the handler class **Sensor Type**21 The **REP class** provides a method **createInboundRoot()** in which the routing of REST requests is defined. In the example below all requests issued to **{REP_URL}/s/sensorName** are routed to the handler class **Sensor Type** 22 22 23 23 {{{ … … 46 46 In the example project a **com.sensinode.sensei.rep.rest.test.SensorType.class** is uses as an example for a RAI handler attached to the REP. 47 47 48 === RAI handler SensorType class explained === 49 50 '''GET''' requests are handled by the method toXML(). This method returns the Observation & Measurement value in XML/RDF format. 48 '''RAI GET''' requests are handled by the method **toXML()** provided by the class **SensorType**. This method returns the Observation & Measurement value in XML/RDF format. 51 49 52 50 {{{ … … 86 84 87 85 88 === RPI methods: === 86 === Resource Publish Interface === 87 89 88 * public List<String> publishResourceDescription(String descriptionString) 90 89 * public List<String> publishResourceDescription(ResourceDescription desc)