Package net.officefloor.web.build
Interface HttpObjectParser<T>
-
- All Superinterfaces:
HttpContentParser
public interface HttpObjectParser<T> extends HttpContentParser
Parses an object from theServerHttpConnection.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<T>getObjectType()Obtains the type of object parsed from theServerHttpConnection.Tparse(ServerHttpConnection connection)Parses the object from theServerHttpConnection.-
Methods inherited from interface net.officefloor.web.build.HttpContentParser
getContentType
-
-
-
-
Method Detail
-
getObjectType
java.lang.Class<T> getObjectType()
Obtains the type of object parsed from theServerHttpConnection.- Returns:
- Object type.
-
parse
T parse(ServerHttpConnection connection) throws HttpException
Parses the object from theServerHttpConnection.- Parameters:
connection-ServerHttpConnection.- Returns:
- Parsed object.
- Throws:
HttpException- If fails to parse the object from theServerHttpConnection.
-
-