Class CamelResource


  • @Path("/test")
    @ApplicationScoped
    public class CamelResource
    extends Object
    • Field Detail

      • dataSource

        @Inject
        @DataSource("camel-ds")
        io.agroal.api.AgroalDataSource dataSource
      • template

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

      • CamelResource

        public CamelResource()
    • Method Detail

      • getSpeciesById

        @Path("/species/{id}")
        @GET
        @Produces("text/plain")
        public String getSpeciesById​(@PathParam("id")
                                     String id)
                              throws Exception
        Throws:
        Exception
      • getSpeciesByIdWithSelectList

        @Path("/species/{id}/list")
        @GET
        @Produces("text/plain")
        public String getSpeciesByIdWithSelectList​(@PathParam("id")
                                                   String id)
                                            throws Exception
        Throws:
        Exception
      • getSpeciesByIdWithDefinedType

        @Path("/species/{id}/type")
        @GET
        @Produces("text/plain")
        public String getSpeciesByIdWithDefinedType​(@PathParam("id")
                                                    String id)
                                             throws Exception
        Throws:
        Exception
      • executeStatement

        @Path("/execute")
        @POST
        @Consumes("text/plain")
        @Produces("text/plain")
        public String executeStatement​(String statement)
                                throws Exception
        Throws:
        Exception