Interface HeadersConsumer
-
- All Superinterfaces:
BiConsumer<Invocation,org.springframework.http.HttpHeaders>
@Immutable @Valid public interface HeadersConsumer extends BiConsumer<Invocation,org.springframework.http.HttpHeaders>
The headers consumer.- Author:
- Christian Bremer
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
accept(Invocation invocation, org.springframework.http.HttpHeaders httpHeaders)
static org.bremersee.apiclient.webflux.contract.ImmutableHeadersConsumer.Builder
builder()
Builder.@NotNull Function<Invocation,org.springframework.http.MediaType>
getAcceptResolver()
Gets accept resolver.@NotNull Function<Invocation,Optional<org.springframework.http.MediaType>>
getContentTypeResolver()
Gets content type resolver.@NotNull Function<Invocation,org.springframework.util.MultiValueMap<String,String>>
getHeadersResolver()
Gets headers resolver.-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
-
-
-
Method Detail
-
builder
static org.bremersee.apiclient.webflux.contract.ImmutableHeadersConsumer.Builder builder()
Builder.- Returns:
- the headers consumer builder
-
getContentTypeResolver
@NotNull @NotNull Function<Invocation,Optional<org.springframework.http.MediaType>> getContentTypeResolver()
Gets content type resolver.- Returns:
- the content type resolver
-
getAcceptResolver
@NotNull @NotNull Function<Invocation,org.springframework.http.MediaType> getAcceptResolver()
Gets accept resolver.- Returns:
- the accept resolver
-
getHeadersResolver
@NotNull @NotNull Function<Invocation,org.springframework.util.MultiValueMap<String,String>> getHeadersResolver()
Gets headers resolver.- Returns:
- the headers resolver
-
accept
default void accept(Invocation invocation, org.springframework.http.HttpHeaders httpHeaders)
- Specified by:
accept
in interfaceBiConsumer<Invocation,org.springframework.http.HttpHeaders>
-
-