A - generic response attribute type@FunctionalInterface public interface Selector<A>
Selector can be used change the dispatching strategy. Its purpose is to select an attribute
of the response and find a binding for it.| Modifier and Type | Method and Description |
|---|---|
Optional<A> |
attributeOf(org.springframework.http.client.ClientHttpResponse response)
Retrieves an attribute from the given response
|
default Optional<Binding<A>> |
select(Optional<A> attribute,
Map<Optional<A>,Binding<A>> bindings)
Attempts to find a matching binding for the given attribute.
|
Optional<A> attributeOf(org.springframework.http.client.ClientHttpResponse response) throws IOException
response - the incoming responseIOException - if accessing the response faileddefault Optional<Binding<A>> select(Optional<A> attribute, Map<Optional<A>,Binding<A>> bindings)
attribute - the previously selected attributebindings - all bindingsCopyright © 2015 Zalando SE. All rights reserved.