Class JsonOutputter
- java.lang.Object
-
- org.apache.zookeeper.server.admin.JsonOutputter
-
- All Implemented Interfaces:
CommandOutputter
public class JsonOutputter extends java.lang.Object implements CommandOutputter
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ERROR_RESPONSE
-
Constructor Summary
Constructors Constructor Description JsonOutputter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContentType()
The MIME type of this output (e.g., "application/json")void
output(CommandResponse response, java.io.PrintWriter pw)
-
-
-
Field Detail
-
ERROR_RESPONSE
public static final java.lang.String ERROR_RESPONSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContentType
public java.lang.String getContentType()
Description copied from interface:CommandOutputter
The MIME type of this output (e.g., "application/json")- Specified by:
getContentType
in interfaceCommandOutputter
-
output
public void output(CommandResponse response, java.io.PrintWriter pw)
- Specified by:
output
in interfaceCommandOutputter
-
-