public class JsonOutputter extends Object implements CommandOutputter
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_RESPONSE |
Constructor and Description |
---|
JsonOutputter() |
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
The MIME type of this output (e.g., "application/json")
|
void |
output(CommandResponse response,
PrintWriter pw) |
public static final String ERROR_RESPONSE
public String getContentType()
CommandOutputter
getContentType
in interface CommandOutputter
public void output(CommandResponse response, PrintWriter pw)
output
in interface CommandOutputter
Copyright © 2008–2023 The Apache Software Foundation. All rights reserved.