Interface CommandOutputter

All Known Implementing Classes:
JsonOutputter, StreamOutputter

public interface CommandOutputter
CommandOutputters are used to format the responses from Commands.
See Also:
  • Method Details

    • 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