Package net.officefloor.web.build
Interface HttpObjectParserFactory
-
- All Known Implementing Classes:
JacksonHttpObjectParserFactory
public interface HttpObjectParserFactoryFactory for the creation ofHttpObjectParserinstances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> HttpObjectParser<T>createHttpObjectParser(java.lang.Class<T> objectClass)Creates theHttpObjectParserfor theObject.java.lang.StringgetContentType()Obtains theContent-Typesupported by the createHttpObjectParserinstances.
-
-
-
Method Detail
-
getContentType
java.lang.String getContentType()
Obtains theContent-Typesupported by the createHttpObjectParserinstances.- Returns:
Content-Type.
-
createHttpObjectParser
<T> HttpObjectParser<T> createHttpObjectParser(java.lang.Class<T> objectClass) throws java.lang.Exception
Creates theHttpObjectParserfor theObject.- Type Parameters:
T- Object type.- Parameters:
objectClass-ObjectClass.- Returns:
HttpObjectParserfor theObject. May returnnullif does not support parsing out the particularObject.- Throws:
java.lang.Exception- If fails to create theHttpObjectParserfor theObject.
-
-