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, wait
output
public static final String ERROR_RESPONSE
public JsonOutputter(String clientIP)
public String getContentType()
CommandOutputter
getContentType
in interface CommandOutputter
public void output(CommandResponse response, PrintWriter pw)
CommandOutputter
output
in interface CommandOutputter
Copyright © 2008–2025 The Apache Software Foundation. All rights reserved.