Class BeanioResource
java.lang.Object
org.apache.camel.quarkus.component.beanio.it.BeanioResource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.camel.CamelContextstatic final SimpleDateFormat(package private) org.apache.camel.ProducerTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmarshalAnnotated(List<EmployeeAnnotated> employees) marshalSingleObject(Map<String, String> message) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponseunmarshalAnnotated(String data) jakarta.ws.rs.core.ResponseunmarshalComplexObject(String data) unmarshalSingleObject(String message) jakarta.ws.rs.core.Response
-
Field Details
-
FORMATTER
-
context
@Inject org.apache.camel.CamelContext context -
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate
-
-
Constructor Details
-
BeanioResource
public BeanioResource()
-
-
Method Details
-
marshal
-
marshalAnnotated
@Path("/marshal/annotated") @POST @Consumes("application/json") @Produces("text/plain") public String marshalAnnotated(List<EmployeeAnnotated> employees) -
unmarshal
-
unmarshalAnnotated
@Path("/unmarshal/annotated") @POST @Consumes("text/plain") @Produces("application/json") public jakarta.ws.rs.core.Response unmarshalAnnotated(String data) -
marshalSingleObject
-
unmarshalSingleObject
-
unmarshalWithErrorHandler
@Path("/unmarshal/with/error/handler") @POST @Consumes("text/plain") @Produces("application/json") public jakarta.ws.rs.core.Response unmarshalWithErrorHandler(String data) -
marshalComplexObject
@Path("/marshal/complex/object") @POST @Produces("text/plain") public Object marshalComplexObject() throws Exception- Throws:
Exception
-
unmarshalComplexObject
@Path("/unmarshal/complex/object") @POST @Consumes("text/plain") @Produces("application/json") public jakarta.ws.rs.core.Response unmarshalComplexObject(String data) -
split
@Path("/split") @POST @Consumes("text/plain") @Produces("application/json") public jakarta.ws.rs.core.Response split(String data) throws Exception - Throws:
Exception
-