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