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()
CommandOutputtergetContentType in interface CommandOutputterpublic void output(CommandResponse response, PrintWriter pw)
output in interface CommandOutputterCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.