Package net.officefloor.web.build
Interface HttpObjectResponder<T>
-
public interface HttpObjectResponder<T>Provides ability to send anObjectresponse.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetContentType()Obtains theContent-Typeprovided by thisHttpObjectResponder.java.lang.Class<T>getObjectType()Obtains the object type expected for thisHttpObjectResponder.voidsend(T object, ServerHttpConnection connection)Sends the object.
-
-
-
Method Detail
-
getContentType
java.lang.String getContentType()
Obtains theContent-Typeprovided by thisHttpObjectResponder.- Returns:
Content-Typeprovided by thisHttpObjectResponder.
-
getObjectType
java.lang.Class<T> getObjectType()
Obtains the object type expected for thisHttpObjectResponder.- Returns:
- Type of object expected for this
HttpObjectResponder.
-
send
void send(T object, ServerHttpConnection connection) throws java.io.IOException
Sends the object.- Parameters:
object- Object to send.connection-ServerHttpConnection.- Throws:
java.io.IOException- If fails to send the object.
-
-