Class JacksonFluxAdapterFactory

java.lang.Object
com.github.mizosoft.methanol.adapter.jackson.flux.JacksonFluxAdapterFactory

public class JacksonFluxAdapterFactory extends Object
Contains static factory methods for Jackson & Project Reactor streaming adapters. Encoders support encoding to any subtype of Flow.Publisher or Publisher. Decoders support decoding to Flux, Mono, Flow.Publisher, or Publisher.
  • Method Details

    • createEncoder

      public static BodyAdapter.Encoder createEncoder()
      Creates an encoder that uses a default ObjectMapper instance.
    • createEncoder

      public static BodyAdapter.Encoder createEncoder(com.fasterxml.jackson.databind.ObjectMapper mapper)
      Creates an encoder that uses the given ObjectMapper instance.
    • createDecoder

      public static BodyAdapter.Decoder createDecoder()
      Creates a decoder that uses a default ObjectMapper instance.
    • createDecoder

      public static BodyAdapter.Decoder createDecoder(com.fasterxml.jackson.databind.ObjectMapper mapper)
      Creates a decoder that uses the given ObjectMapper instance.