Package 

Class ObjectMapperEncoder

  • All Implemented Interfaces:
    io.outfoxx.sunday.mediatypes.codecs.MediaTypeEncoder

    
    public class ObjectMapperEncoder
     implements MediaTypeEncoder
                        

    Common Jackson ObjectMapper encoder that supports encoding Java/Kotlin values into binary data.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectMapperEncoder(ObjectMapper objectMapper)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      <B extends Any> Source encode(B value) Encodes the given value into a binary data Source.
      • Methods inherited from class kotlin.Any

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectMapperEncoder

        ObjectMapperEncoder(ObjectMapper objectMapper)
    • Method Detail

      • encode

         <B extends Any> Source encode(B value)

        Encodes the given value into a binary data Source.

        Parameters:
        value - Value to encode.