Enum Class HttpLogger.Format

java.lang.Object
java.lang.Enum<HttpLogger.Format>
org.microproxy.extras.HttpLogger.Format
All Implemented Interfaces:
Serializable, Comparable<HttpLogger.Format>, Constable
Enclosing class:
HttpLogger

public static enum HttpLogger.Format extends Enum<HttpLogger.Format>
How messages are written.
  • Enum Constant Details

    • TEXT

      public static final HttpLogger.Format TEXT
      Readable blocks of lines, one block per message.
    • JSON

      public static final HttpLogger.Format JSON
      One JSON object per message, on one line.
  • Method Details

    • values

      public static HttpLogger.Format[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HttpLogger.Format valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null