Package net.officefloor.web.build
Interface HttpObjectResponder<T>
-
public interface HttpObjectResponder<T>
Provides ability to send anObject
response.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getContentType()
Obtains theContent-Type
provided by thisHttpObjectResponder
.java.lang.Class<T>
getObjectType()
Obtains the object type expected for thisHttpObjectResponder
.void
send(T object, ServerHttpConnection connection)
Sends the object.
-
-
-
Method Detail
-
getContentType
java.lang.String getContentType()
Obtains theContent-Type
provided by thisHttpObjectResponder
.- Returns:
Content-Type
provided 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.
-
-