public interface ResponseInterceptor
ResponseInterceptor
may be configured for purposes such as verify or modify
headers of response, verify the business status of decoded object. Once interceptors are applied,
ResponseInterceptor#aroundDecode(Response, Function)
is called around decode method
calledModifier and Type | Field and Description |
---|---|
static ResponseInterceptor |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
Object |
aroundDecode(InvocationContext invocationContext)
Called for response around decode, must either manually invoke
InvocationContext.proceed() or manually create a new response object |
static final ResponseInterceptor DEFAULT
Object aroundDecode(InvocationContext invocationContext) throws IOException
InvocationContext.proceed()
or manually create a new response objectinvocationContext
- information surrounding the response been decodedIOException
Copyright © 2012–2022 OpenFeign. All rights reserved.