Package org.actioncontroller.meta
Interface HttpClientReturnMapper
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface HttpClientReturnMapper
Returned byHttpReturnMapperFactoryto be used withApiClientClassProxyto convert HTTP response information into method return values.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ObjectgetReturnValue(ApiClientExchange exchange)default voidsetupExchange(ApiClientExchange exchange)static HttpClientReturnMapperwithHeader(HttpClientReturnMapper mapper, String headerName, String headerValue)
-
-
-
Method Detail
-
getReturnValue
Object getReturnValue(ApiClientExchange exchange) throws IOException
- Throws:
IOException
-
setupExchange
default void setupExchange(ApiClientExchange exchange)
-
withHeader
static HttpClientReturnMapper withHeader(HttpClientReturnMapper mapper, String headerName, String headerValue)
-
-