public class JsonOutputter extends Object implements CommandOutputter
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_RESPONSE |
| Constructor and Description |
|---|
JsonOutputter(String clientIP) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
The MIME type of this output (e.g., "application/json")
|
void |
output(CommandResponse response,
PrintWriter pw)
Print out data as output
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitoutputpublic static final String ERROR_RESPONSE
public JsonOutputter(String clientIP)
public String getContentType()
CommandOutputtergetContentType in interface CommandOutputterpublic void output(CommandResponse response, PrintWriter pw)
CommandOutputteroutput in interface CommandOutputterCopyright © 2008–2026 The Apache Software Foundation. All rights reserved.