Interface CommandOutputter
-
- All Known Implementing Classes:
JsonOutputter,StreamOutputter
public interface CommandOutputterCommandOutputters are used to format the responses from Commands.- See Also:
Command,JettyAdminServer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetContentType()The MIME type of this output (e.g., "application/json")default voidoutput(CommandResponse response, OutputStream os)Stream out data as outputdefault voidoutput(CommandResponse response, PrintWriter pw)Print out data as output
-
-
-
Method Detail
-
getContentType
String getContentType()
The MIME type of this output (e.g., "application/json")
-
output
default void output(CommandResponse response, PrintWriter pw)
Print out data as output
-
output
default void output(CommandResponse response, OutputStream os)
Stream out data as output
-
-