Changes between Version 8 and Version 9 of RpRepDeployment


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

--

Legend:

Unmodified
Added
Removed
Modified
  • RpRepDeployment

    v8 v9  
    4444
    4545The RAI methods are provided by the **RAI handler** which is attached to the REP. The **RAI handler** presents the Resource the REP exposes to the SENSEI Resource Users.
    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.
     46In 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 **SensorType**. 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 returns the Observation & Measurement value in XML/RDF format.
    4949
    5050{{{
     
    8282}}}
    8383 
     84For handling POST, PUT, DELETE and OPTION request you need to add methods with arbitrary names and annotate them with the appropriate Java annotations so that the Restlet framework will handle them accordingly. Make sure the method returns a value of type **org.restlet.representation.Representation**!
    8485
     86{{{
     87/**
     88 * Handle POST requests
     89 */
     90@Post
     91public Representation acceptItem(Representation entity) {}
     92}}}
    8593
    8694=== Resource Publish Interface ===