Interface ObjectEncoder<T>

  • All Known Subinterfaces:
    ObjectCodec<T>
    All Known Implementing Classes:
    GsonObjectCodec

    public interface ObjectEncoder<T>
    Write a Java object as HTTP response body.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.vavr.Tuple2<byte[],​ch.raffael.meldioc.library.codec.ContentType> encode​(T value)  
      ch.raffael.meldioc.library.codec.ContentType encode​(T value, java.io.OutputStream target)  
    • Method Detail

      • encode

        ch.raffael.meldioc.library.codec.ContentType encode​(T value,
                                                            java.io.OutputStream target)
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • encode

        io.vavr.Tuple2<byte[],​ch.raffael.meldioc.library.codec.ContentType> encode​(T value)
                                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception