Class ProtobufResource
java.lang.Object
org.apache.camel.quarkus.component.protobuf.it.ProtobufResource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.camel.ProducerTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]marshalJson(int id, String name) unmarshal(byte[] body) unmarshalJson(String body)
-
Field Details
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate
-
-
Constructor Details
-
ProtobufResource
public ProtobufResource()
-
-
Method Details
-
marshal
@Path("/marshal") @GET @Produces("application/octet-stream") public byte[] marshal(@QueryParam("id") int id, @QueryParam("name") String name) -
unmarshal
@Path("/unmarshal") @POST @Consumes("application/octet-stream") @Produces("application/json") public String unmarshal(byte[] body) -
marshalJson
-
unmarshalJson
-