Package net.officefloor.web.build
Interface HttpObjectResponder<T>
- All Known Implementing Classes:
SpringHttpObjectResponderFactory
public interface HttpObjectResponder<T>
Provides ability to send an
Object response.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionObtains theContent-Typeprovided by thisHttpObjectResponder.voidsend(HttpObjectResponderContext<T> context) Sends the object.
-
Method Details
-
getContentType
String getContentType()Obtains theContent-Typeprovided by thisHttpObjectResponder.- Returns:
Content-Typeprovided by thisHttpObjectResponder.
-
send
Sends the object.- Parameters:
context-HttpObjectResponderContext.- Throws:
IOException- If fails to send the object.
-