Changes between Version 9 and Version 10 of RpRepDeployment


Ignore:
Timestamp:
Oct 20, 2010, 12:59:58 PM (14 years ago)
Author:
s.meissner
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RpRepDeployment

    v9 v10  
    3939The parameter sensor Name is taken from the URL used for the HTTP request so that the route can be used for temperature values as well as light values. In the first case the request would be http://{REP_URL}/s/temp in the light value case it would be http://{REP_URL}/s/light.
    4040
    41 The different handling for temp and light is implemented in the **RAI handler** class called Sensor Type in the example code.
     41The different handling for temp and light is implemented in the **RAI handler** class called **Sensor Type** in the example code.
    4242
    4343=== Resource Access Interface ===
     
    4646In the example project a **com.sensinode.sensei.rep.rest.test.SensorType.class** is used as an example for a RAI handler attached to the REP.
    4747
    48 '''RAI GET''' requests are handled by the method **toXML()** provided by the class **Sensor Type**. 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 **Sensor Type**. This method reads the Observation & Measurement value from a file and returns in XML/RDF format.
    4949
    5050{{{
     
    9494=== Resource Publish Interface ===
    9595
     96Also part of the example code is the class **RPI Client** which provides the methods to publish and unpublish Resource Descriptions to Resource Directories.
     97
    9698*       public List<String> publishResourceDescription(String descriptionString)
    9799*       public List<String> publishResourceDescription(ResourceDescription desc)
    98100*       public String updateResourceDescription(String resourceID, ResourceDescription description)
    99101*       public String deleteResourceDescription(List<String> resourceIDs)
     102
     103On how to write Resource Descriptions please see section [[wiki:ResourceDescription]]