public class SAXDecoder extends Object implements Decoder
api = Feign.builder()
.decoder(SAXDecoder.builder()
.registerContentHandler(ContentHandlerForFoo.class)
.registerContentHandler(ContentHandlerForBar.class)
.build())
.target(MyApi.class, "http://api");
| Modifier and Type | Class and Description |
|---|---|
static class |
SAXDecoder.Builder |
static interface |
SAXDecoder.ContentHandlerWithResult<T>
Implementations are not intended to be shared across requests.
|
Decoder.Default| Modifier and Type | Method and Description |
|---|---|
static SAXDecoder.Builder |
builder() |
Object |
decode(Response response,
Type type) |
public static SAXDecoder.Builder builder()
public Object decode(Response response, Type type) throws IOException, DecodeException
decode in interface DecoderIOExceptionDecodeExceptionCopyright © 2012–2023 OpenFeign. All rights reserved.