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 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 interface BiConsumer<Invocation,​org.springframework.http.HttpHeaders>