@Path(value="/xstream") @ApplicationScoped public class XstreamResource extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) org.apache.camel.ProducerTemplate |
producerTemplate |
| Constructor and Description |
|---|
XstreamResource() |
| Modifier and Type | Method and Description |
|---|---|
String |
xstreamJsonMarshal(PojoA pojo) |
PojoA |
xstreamJsonMarshal(String body) |
String |
xstreamXmlMarshal(PojoA pojo) |
PojoA |
xstreamXmlMarshal(String body) |
@Path(value="/xml/marshal") @POST @Consumes(value="application/json") @Produces(value="text/xml") public String xstreamXmlMarshal(PojoA pojo)
@Path(value="/xml/unmarshal") @POST @Consumes(value="text/xml") @Produces(value="application/json") public PojoA xstreamXmlMarshal(String body)
@Path(value="/json/marshal") @POST @Consumes(value="application/json") @Produces(value="application/json") public String xstreamJsonMarshal(PojoA pojo)
Copyright © 2019–2020 The Apache Software Foundation. All rights reserved.