Class ProtobufResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.protobuf.it.ProtobufResource
-
@Path("/protobuf") @ApplicationScoped public class ProtobufResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.ProducerTemplateproducerTemplate
-
Constructor Summary
Constructors Constructor Description ProtobufResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringunmarshal(byte[] body)byte[]xstreamXmlMarshal(int id, String name)
-
-
-
Method Detail
-
xstreamXmlMarshal
@Path("/marshal") @GET @Produces("application/octet-stream") public byte[] xstreamXmlMarshal(@QueryParam("id") int id, @QueryParam("name") String name)
-
unmarshal
@Path("/unmarshal") @POST @Consumes("application/octet-stream") @Produces("application/json") public String unmarshal(byte[] body)
-
-