Class RestResource


  • @Path("/rest")
    @ApplicationScoped
    public class RestResource
    extends Object
    • Field Detail

      • camelContext

        @Inject
        org.apache.camel.CamelContext camelContext
      • producerTemplate

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

      • RestResource

        public RestResource()
    • Method Detail

      • inspectConfiguration

        @Path("/inspect/configuration")
        @GET
        @Produces("application/json")
        public javax.json.JsonObject inspectConfiguration()
      • lightweight

        @Path("/inspect/camel-context/lightweight")
        @GET
        @Produces("text/plain")
        public boolean lightweight()
      • restProducer

        @Path("/invoke/route")
        @GET
        @Produces("text/plain")
        public String restProducer​(@QueryParam("port")
                                   int port)
      • restProducerBindingModeJson

        @Path("/producer/binding/mode/json")
        @GET
        @Produces("application/json")
        public Person restProducerBindingModeJson​(@QueryParam("port")
                                                  int port)
      • restProducerBindingModeXml

        @Path("/producer/binding/mode/xml")
        @GET
        @Produces("application/json")
        public Person restProducerBindingModeXml​(@QueryParam("port")
                                                 int port)