Class Aws2DdbResource


  • @Path("/aws2-ddb")
    @ApplicationScoped
    public class Aws2DdbResource
    extends Object
    • Field Detail

      • producerTemplate

        @Inject
        org.apache.camel.ProducerTemplate producerTemplate
    • Constructor Detail

      • Aws2DdbResource

        public Aws2DdbResource()
    • Method Detail

      • post

        @Path("/item/{key}")
        @POST
        @Consumes("text/plain")
        @Produces("text/plain")
        public javax.ws.rs.core.Response post​(String message,
                                              @PathParam("key")
                                              String key)
                                       throws Exception
        Throws:
        Exception
      • getItem

        @Path("/item/{key}")
        @GET
        @Produces("text/plain")
        public String getItem​(@PathParam("key")
                              String key)
                       throws Exception
        Throws:
        Exception
      • updateItem

        @Path("/item/{key}")
        @PUT
        @Produces("text/plain")
        public void updateItem​(String message,
                               @PathParam("key")
                               String key)
                        throws Exception
        Throws:
        Exception
      • deleteItem

        @Path("/item/{key}")
        @DELETE
        @Produces("text/plain")
        public void deleteItem​(@PathParam("key")
                               String key)
                        throws Exception
        Throws:
        Exception