Class AvroRpcResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.avro.rpc.it.AvroRpcResource
-
@Path("/avro-rpc") @ApplicationScoped public class AvroRpcResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.ProducerTemplateproducerTemplatestatic StringREFLECTIVE_HTTP_SERVER_PORT_PARAMstatic StringREFLECTIVE_HTTP_TRANSCEIVER_PORT_PARAMstatic StringREFLECTIVE_NETTY_SERVER_PORT_PARAMstatic StringREFLECTIVE_NETTY_TRANSCEIVER_PORT_PARAM(package private) IntegerreflectiveHttpPort(package private) IntegerreflectiveNettyPortstatic StringSPECIFIC_HTTP_SERVER_PORT_PARAMstatic StringSPECIFIC_HTTP_TRANSCEIVER_PORT_PARAMstatic StringSPECIFIC_NETTY_SERVER_PORT_PARAMstatic StringSPECIFIC_NETTY_TRANSCEIVER_PORT_PARAM(package private) IntegerspecificHttpPort(package private) IntegerspecificNettyPort
-
Constructor Summary
Constructors Constructor Description AvroRpcResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyValueProtocolgetKeyValue(ProtocolType protocol)TestReflectiongetTestReflection(ProtocolType protocol)StringreflectionConsumerGet(ProtocolType protocol)StringreflectionProducerGet(ProtocolType protocol)voidreflectionProducerSet(ProtocolType protocol, String name)StringspecificConsumerGet(ProtocolType protocol, String key)StringspecificProducerGet(ProtocolType protocol, String key)voidspecificProducerPut(ProtocolType protocol, String key, String value)
-
-
-
Field Detail
-
REFLECTIVE_HTTP_SERVER_PORT_PARAM
public static final String REFLECTIVE_HTTP_SERVER_PORT_PARAM
- See Also:
- Constant Field Values
-
REFLECTIVE_NETTY_SERVER_PORT_PARAM
public static final String REFLECTIVE_NETTY_SERVER_PORT_PARAM
- See Also:
- Constant Field Values
-
SPECIFIC_HTTP_SERVER_PORT_PARAM
public static final String SPECIFIC_HTTP_SERVER_PORT_PARAM
- See Also:
- Constant Field Values
-
SPECIFIC_NETTY_SERVER_PORT_PARAM
public static final String SPECIFIC_NETTY_SERVER_PORT_PARAM
- See Also:
- Constant Field Values
-
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
-
-
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
-
getTestReflection
public TestReflection getTestReflection(ProtocolType protocol)
-
getKeyValue
public KeyValueProtocol getKeyValue(ProtocolType protocol)
-
-