Package net.officefloor.web.build
Interface HttpObjectParserFactory
-
- All Known Implementing Classes:
JacksonHttpObjectParserFactory
public interface HttpObjectParserFactory
Factory for the creation ofHttpObjectParser
instances.- 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 theHttpObjectParser
for theObject
.java.lang.String
getContentType()
Obtains theContent-Type
supported by the createHttpObjectParser
instances.
-
-
-
Method Detail
-
getContentType
java.lang.String getContentType()
Obtains theContent-Type
supported by the createHttpObjectParser
instances.- Returns:
Content-Type
.
-
createHttpObjectParser
<T> HttpObjectParser<T> createHttpObjectParser(java.lang.Class<T> objectClass) throws java.lang.Exception
Creates theHttpObjectParser
for theObject
.- Type Parameters:
T
- Object type.- Parameters:
objectClass
-Object
Class
.- Returns:
HttpObjectParser
for theObject
. May returnnull
if does not support parsing out the particularObject
.- Throws:
java.lang.Exception
- If fails to create theHttpObjectParser
for theObject
.
-
-