Class BeanioResource

java.lang.Object
org.apache.camel.quarkus.component.beanio.it.BeanioResource

@Path("/beanio") public class BeanioResource extends Object
  • Field Details

    • FORMATTER

      public static final SimpleDateFormat FORMATTER
    • context

      @Inject org.apache.camel.CamelContext context
    • producerTemplate

      @Inject org.apache.camel.ProducerTemplate producerTemplate
  • Constructor Details

    • BeanioResource

      public BeanioResource()
  • Method Details

    • marshal

      @Path("/marshal") @POST @Consumes("application/json") @Produces("text/plain") public String marshal(List<Employee> employees, @QueryParam("type") String type)
    • marshalAnnotated

      @Path("/marshal/annotated") @POST @Consumes("application/json") @Produces("text/plain") public String marshalAnnotated(List<EmployeeAnnotated> employees)
    • unmarshal

      @Path("/unmarshal") @POST @Consumes("text/plain") @Produces("application/json") public jakarta.ws.rs.core.Response unmarshal(String data, @QueryParam("type") String type)
    • unmarshalAnnotated

      @Path("/unmarshal/annotated") @POST @Consumes("text/plain") @Produces("application/json") public jakarta.ws.rs.core.Response unmarshalAnnotated(String data)
    • marshalSingleObject

      @Path("/marshal/single/object") @POST @Consumes("application/json") @Produces("text/plain") public String marshalSingleObject(Map<String,String> message)
    • unmarshalSingleObject

      @Path("/unmarshal/single/object") @POST @Consumes("text/plain") @Produces("application/json") public Map<String,String> unmarshalSingleObject(String message)
    • 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