Class ContentConverter

java.lang.Object
com.mastfrog.acteur.ContentConverter

public class ContentConverter extends Object
Converts byte buffers and maps to objects
Author:
Tim Boudreau
  • Field Details

    • codec

      protected final Codec codec
  • Constructor Details

    • ContentConverter

      @Inject public ContentConverter(Codec codec, com.google.inject.Provider<Charset> charset, com.mastfrog.giulius.Dependencies deps)
  • Method Details

    • toString

      public String toString(io.netty.buffer.ByteBuf content, Charset encoding) throws IOException
      Throws:
      IOException
    • toObject

      public <T> T toObject(io.netty.buffer.ByteBuf content, com.mastfrog.mime.MimeType mimeType, Class<T> type) throws Exception
      Throws:
      Exception
    • readObject

      protected <T> T readObject(io.netty.buffer.ByteBuf buf, com.mastfrog.mime.MimeType mimeType, Class<T> type) throws Exception
      Throws:
      Exception
    • toObject

      public <T> T toObject(Map<String,?> m, Class<T> type) throws org.netbeans.validation.api.InvalidInputException
      Throws:
      org.netbeans.validation.api.InvalidInputException
    • createObjectFor

      protected <T> T createObjectFor(Map<String,?> m, Class<T> type)
    • createProxyFor

      protected <T> T createProxyFor(Map<String,?> m, Class<T> type)