Package com.mastfrog.acteur
Class ContentConverter
java.lang.Object
com.mastfrog.acteur.ContentConverter
Converts byte buffers and maps to objects
- Author:
- Tim Boudreau
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContentConverter(Codec codec, com.google.inject.Provider<Charset> charset, com.mastfrog.giulius.Dependencies deps) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> TcreateObjectFor(Map<String, ?> m, Class<T> type) protected <T> TcreateProxyFor(Map<String, ?> m, Class<T> type) protected <T> TreadObject(io.netty.buffer.ByteBuf buf, com.mastfrog.mime.MimeType mimeType, Class<T> type) <T> T<T> T
-
Field Details
-
codec
-
-
Constructor Details
-
ContentConverter
-
-
Method Details
-
toString
- 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
-
createProxyFor
-