Class JaxbResource


  • @Path("/jaxb")
    @ApplicationScoped
    public class JaxbResource
    extends Object
    • Field Detail

      • producerTemplate

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

      • JaxbResource

        public JaxbResource()
    • Method Detail

      • marshal

        @Path("/marshal")
        @GET
        @Produces("application/xml")
        public javax.ws.rs.core.Response marshal​(@QueryParam("firstName")
                                                 String firstName,
                                                 @QueryParam("lastName")
                                                 String lastName,
                                                 @QueryParam("age")
                                                 int age)
      • unmarshal

        @Path("/unmarshal")
        @POST
        @Consumes("application/xml")
        @Produces("application/json")
        public javax.ws.rs.core.Response unmarshal​(String xml)
      • marshalWithJaxbDsl

        @Path("/marshal/dsl")
        @GET
        @Produces("application/xml")
        public javax.ws.rs.core.Response marshalWithJaxbDsl​(@QueryParam("firstName")
                                                            String firstName,
                                                            @QueryParam("lastName")
                                                            String lastName,
                                                            @QueryParam("age")
                                                            int age)
      • unmarshalWithJaxbDsl

        @Path("/unmarshal/dsl")
        @POST
        @Consumes("application/xml")
        @Produces("application/json")
        public javax.ws.rs.core.Response unmarshalWithJaxbDsl​(String xml)
      • marshalWithNamespacePrefix

        @Path("/marshal/namespace/prefix")
        @GET
        @Produces("application/xml")
        public javax.ws.rs.core.Response marshalWithNamespacePrefix​(@QueryParam("firstName")
                                                                    String firstName,
                                                                    @QueryParam("lastName")
                                                                    String lastName,
                                                                    @QueryParam("age")
                                                                    int age)
      • unmarshalWithNamespacePrefix

        @Path("/unmarshal/namespace/prefix")
        @POST
        @Consumes("application/xml")
        @Produces("application/json")
        public javax.ws.rs.core.Response unmarshalWithNamespacePrefix​(String xml)
      • marshalWithEncoding

        @Path("/marshal/encoding")
        @GET
        @Produces("application/xml")
        public javax.ws.rs.core.Response marshalWithEncoding​(@QueryParam("firstName")
                                                             String firstName,
                                                             @QueryParam("lastName")
                                                             String lastName,
                                                             @QueryParam("age")
                                                             int age)
      • unmarshalWithEncoding

        @Path("/unmarshal/encoding")
        @POST
        @Consumes("application/xml")
        @Produces("application/json")
        public javax.ws.rs.core.Response unmarshalWithEncoding​(String xml)
      • marshalWithExistingXmlPayload

        @Path("/marshal/xml")
        @POST
        @Consumes("application/xml")
        @Produces("application/xml")
        public javax.ws.rs.core.Response marshalWithExistingXmlPayload​(String xml)
      • marshalPartial

        @Path("/marshal/part/class")
        @GET
        @Produces("application/xml")
        public javax.ws.rs.core.Response marshalPartial​(@QueryParam("firstName")
                                                        String firstName,
                                                        @QueryParam("lastName")
                                                        String lastName,
                                                        @QueryParam("age")
                                                        int age,
                                                        @QueryParam("useHeader")
                                                        boolean useHeader)
      • unmarshalPartial

        @Path("/unmarshal/part/class")
        @POST
        @Consumes("application/xml")
        @Produces("application/json")
        public javax.ws.rs.core.Response unmarshalPartial​(@QueryParam("useHeader")
                                                          boolean useHeader,
                                                          String xml)
      • unmarshalWithIgnoreJaxbElement

        @Path("/unmarshal/ignore/element")
        @POST
        @Consumes("application/xml")
        @Produces("application/json")
        public javax.ws.rs.core.Response unmarshalWithIgnoreJaxbElement​(String xml)
      • marshalWithCustomProperties

        @Path("/marshal/custom/properties")
        @GET
        @Produces("application/xml")
        public javax.ws.rs.core.Response marshalWithCustomProperties​(@QueryParam("firstName")
                                                                     String firstName,
                                                                     @QueryParam("lastName")
                                                                     String lastName,
                                                                     @QueryParam("age")
                                                                     int age)
      • marshalWithCustomStreamWriter

        @Path("/marshal/custom/stream/writer")
        @GET
        @Produces("application/xml")
        public javax.ws.rs.core.Response marshalWithCustomStreamWriter​(@QueryParam("firstName")
                                                                       String firstName,
                                                                       @QueryParam("lastName")
                                                                       String lastName,
                                                                       @QueryParam("age")
                                                                       int age)
      • marshalWithObjectFactory

        @Path("/marshal/with/object/factory")
        @GET
        @Produces("application/xml")
        public javax.ws.rs.core.Response marshalWithObjectFactory​(@QueryParam("firstName")
                                                                  String firstName,
                                                                  @QueryParam("lastName")
                                                                  String lastName,
                                                                  @QueryParam("age")
                                                                  int age)
      • marshalWithoutObjectFactory

        @Path("/marshal/without/object/factory")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response marshalWithoutObjectFactory​(@QueryParam("firstName")
                                                                     String firstName,
                                                                     @QueryParam("lastName")
                                                                     String lastName,
                                                                     @QueryParam("age")
                                                                     int age)
      • marshalWithNoNamespaceSchemaLocation

        @Path("/marshal/non/namespace/schema/location")
        @GET
        @Produces("application/xml")
        public javax.ws.rs.core.Response marshalWithNoNamespaceSchemaLocation​(@QueryParam("firstName")
                                                                              String firstName,
                                                                              @QueryParam("lastName")
                                                                              String lastName,
                                                                              @QueryParam("age")
                                                                              int age)