JsonOutputter (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

org.apache.zookeeper.server.admin

## Class JsonOutputter

- java.lang.Object
- - org.apache.zookeeper.server.admin.JsonOutputter

- All Implemented Interfaces:
    CommandOutputter

      public class JsonOutputter
      extends Object
      implements CommandOutputter

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `ERROR_RESPONSE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JsonOutputter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getContentType()` The MIME type of this output (e.g., "application/json")
    `void` | `output(CommandResponse response, PrintWriter pw)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### ERROR_RESPONSE

          public static final String ERROR_RESPONSE

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### JsonOutputter

          public JsonOutputter()

  - ### Method Detail

    - #### getContentType

          public String getContentType()

      Description copied from interface: `CommandOutputter`
      The MIME type of this output (e.g., "application/json")
      Specified by:
        `getContentType` in interface `CommandOutputter`

    - #### output

          public void output(CommandResponse response,
                             PrintWriter pw)

      Specified by:
        `output` in interface `CommandOutputter`

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.