@Path(value="/protobuf") @ApplicationScoped public class ProtobufResource extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) org.apache.camel.ProducerTemplate |
producerTemplate |
| Constructor and Description |
|---|
ProtobufResource() |
| Modifier and Type | Method and Description |
|---|---|
String |
unmarshal(byte[] body) |
byte[] |
xstreamXmlMarshal(int id,
String name) |
@Path(value="/marshal")
@GET
@Produces(value="application/octet-stream")
public byte[] xstreamXmlMarshal(@QueryParam(value="id")
int id,
@QueryParam(value="name")
String name)
@Path(value="/unmarshal") @POST @Consumes(value="application/octet-stream") @Produces(value="application/json") public String unmarshal(byte[] body)
Copyright © 2019–2020 The Apache Software Foundation. All rights reserved.