Class Aws2DdbResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.aws2.ddb.it.Aws2DdbResource
-
@Path("/aws2-ddb") @ApplicationScoped public class Aws2DdbResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.ProducerTemplateproducerTemplate(package private) StringtableName
-
Constructor Summary
Constructors Constructor Description Aws2DdbResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteItem(String key)StringgetItem(String key)javax.ws.rs.core.Responsepost(String message, String key)voidupdateItem(String message, String key)
-
-
-
Field Detail
-
tableName
String tableName
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate
-
-
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
-
-