Feign makes writing java http clients easier
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Adrian Cole 70b6cd8c5b Reformats code according to Google Java Style 10 years ago
..
src Reformats code according to Google Java Style 10 years ago
README.md
build.gradle Removes guava test dependency in favor of AssertJ 10 years ago

README.md

JAXB Codec

This module adds support for encoding and decoding XML via JAXB.

Add JAXBEncoder and/or JAXBDecoder to your Feign.Builder like so:

JAXBContextFactory jaxbFactory = new JAXBContextFactory.Builder()
    .withMarshallerJAXBEncoding("UTF-8")
    .withMarshallerSchemaLocation("http://apihost http://apihost/schema.xsd")
    .build();

Response response = Feign.builder()
                         .encoder(new JAXBEncoder(jaxbFactory))
                         .decoder(new JAXBDecoder(jaxbFactory))
                         .target(Response.class, "https://apihost");

Alternatively, you can add the encoder and decoder to your Dagger object graph using the provided JAXBModule like so:

JAXBContextFactory jaxbFactory = new JAXBContextFactory.Builder().build();

Response response = Feign.create(Response.class, "https://apihost", new JAXBModule(jaxbFactory));