Archiv der Kategorie: Apache Wink

Domino & REST: More about Jackson

When creating a REST API servlet, Jackson provides a huge list of possibilities to manipulate the JSON data, mostly using annotations. Let’s demonstrate some of them with this little class, which has only two properties: public class Demo { private String foo; … Weiterlesen

Veröffentlicht unter Apache Wink, Jackson, JEE, REST | Verschlagwortet mit , , , , | Schreib einen Kommentar

Domino & REST: Accessing Domino’s Environment / Check Authentication

If we want to access Domino’s Environment, it is the ContextInfo class which gives us all we need. Everything you need to do to use the class is described in an earlier blog post. The class gives mainly access to the … Weiterlesen

Veröffentlicht unter Apache Wink, Jackson, Java, JEE, REST | Verschlagwortet mit , , , , , , , | 3 Kommentare

Domino & REST: Consuming JSON

Consuming JSON is as easy as pie: Just create a new method to the RestApiServlet,  add a @POST annotation, and declare the object you want to the parameters of the method:     @POST     @Path(„/helloworld/“)     @Consumes(MediaType.APPLICATION_JSON)     public Response postHelloWorld(HelloWorld helloWorld) … Weiterlesen

Veröffentlicht unter Apache Wink, Jackson, Java, JEE, REST | Verschlagwortet mit , , , , , | 1 Kommentar