Class AvroRpcResource


  • @Path("/avro-rpc")
    @ApplicationScoped
    public class AvroRpcResource
    extends Object
    • Field Detail

      • REFLECTIVE_HTTP_TRANSCEIVER_PORT_PARAM

        public static final String REFLECTIVE_HTTP_TRANSCEIVER_PORT_PARAM
        See Also:
        Constant Field Values
      • REFLECTIVE_NETTY_TRANSCEIVER_PORT_PARAM

        public static final String REFLECTIVE_NETTY_TRANSCEIVER_PORT_PARAM
        See Also:
        Constant Field Values
      • SPECIFIC_HTTP_TRANSCEIVER_PORT_PARAM

        public static final String SPECIFIC_HTTP_TRANSCEIVER_PORT_PARAM
        See Also:
        Constant Field Values
      • SPECIFIC_NETTY_TRANSCEIVER_PORT_PARAM

        public static final String SPECIFIC_NETTY_TRANSCEIVER_PORT_PARAM
        See Also:
        Constant Field Values
      • producerTemplate

        @Inject
        org.apache.camel.ProducerTemplate producerTemplate
      • reflectiveHttpPort

        Integer reflectiveHttpPort
      • reflectiveNettyPort

        Integer reflectiveNettyPort
      • specificHttpPort

        Integer specificHttpPort
      • specificNettyPort

        Integer specificNettyPort
    • Constructor Detail

      • AvroRpcResource

        public AvroRpcResource()
    • Method Detail

      • reflectionProducerSet

        @Path("/reflectionProducerSet")
        @POST
        @Consumes("text/plain")
        public void reflectionProducerSet​(@QueryParam("protocol")
                                          ProtocolType protocol,
                                          String name)
                                   throws Exception
        Throws:
        Exception
      • reflectionProducerGet

        @Path("/reflectionProducerGet")
        @POST
        @Consumes("text/plain")
        @Produces("text/plain")
        public String reflectionProducerGet​(ProtocolType protocol)
                                     throws Exception
        Throws:
        Exception
      • specificProducerPut

        @Path("/specificProducerPut")
        @POST
        @Produces("text/plain")
        public void specificProducerPut​(@QueryParam("protocol")
                                        ProtocolType protocol,
                                        @QueryParam("key")
                                        String key,
                                        String value)
                                 throws Exception
        Throws:
        Exception
      • specificProducerGet

        @Path("/specificProducerGet")
        @POST
        @Consumes("text/plain")
        @Produces("text/plain")
        public String specificProducerGet​(@QueryParam("protocol")
                                          ProtocolType protocol,
                                          String key)
                                   throws Exception
        Throws:
        Exception
      • reflectionConsumerGet

        @Path("/reflectionConsumerGet")
        @POST
        @Consumes("text/plain")
        @Produces("text/plain")
        public String reflectionConsumerGet​(ProtocolType protocol)
                                     throws Exception
        Throws:
        Exception
      • specificConsumerGet

        @Path("/specificConsumerGet")
        @POST
        @Consumes("text/plain")
        @Produces("text/plain")
        public String specificConsumerGet​(@QueryParam("protocol")
                                          ProtocolType protocol,
                                          String key)
                                   throws Exception
        Throws:
        Exception