Interface CommandOutputter
- All Known Implementing Classes:
JsonOutputter
,StreamOutputter
public interface CommandOutputter
CommandOutputters are used to format the responses from Commands.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe MIME type of this output (e.g., "application/json")default void
output
(CommandResponse response, OutputStream os) Stream out data as outputdefault void
output
(CommandResponse response, PrintWriter pw) Print out data as output
-
Method Details
-
getContentType
String getContentType()The MIME type of this output (e.g., "application/json") -
output
Print out data as output -
output
Stream out data as output
-