Package net.officefloor.web
Interface ObjectResponse<T>
-
- All Known Implementing Classes:
MockObjectResponse
public interface ObjectResponse<T>
Dependency injected interface to send the
Object
response.See
HttpResponse
for decorating the HTTP response. May also injectServerHttpConnection
for dynamic decorating.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
send(T object)
Sends theObject
.
-
-
-
Method Detail
-
send
void send(T object) throws HttpException
Sends theObject
.- Parameters:
object
-Object
to send as response.- Throws:
HttpException
- If fails to send theObject
.
-
-