Enum Level

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum Level
    extends Enum<Level>
                        

    Http requests/response log level.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NONE

      No logs.

      BASIC

      Logs request and response lines.

      Example:

      <pre>`--> POST /greeting http/1.1 (3-byte body) <-- 200 OK (22ms, 6-byte body) `</pre> *
      HEADERS

      Logs request and response lines and their respective headers.

      Example:

      <pre>`--> POST /greeting http/1.1 Host: example.com Content-Type: plain/text Content-Length: 3 --> END POST <-- 200 OK (22ms) Content-Type: plain/text Content-Length: 6 <-- END HTTP `</pre> *
      BODY

      Logs request and response lines and their respective headers and bodies (if present).

      Example:

      <pre>`--> POST /greeting http/1.1 Host: example.com Content-Type: plain/text Content-Length: 3 Hi? --> END GET <-- 200 OK (22ms) Content-Type: plain/text Content-Length: 6 Hello! <-- END HTTP `</pre> *
    • Method Summary

      Modifier and Type Method Description
      final Level valueOf(String value) Returns the enum constant of this type with the specified name.
      final Array<Level> values() Returns an array containing the constants of this enum type, in the order they're declared.
      final EnumEntries<Level> getEntries() Http requests/response log level.
      • Methods inherited from class kotlin.Enum

        getName, getOrdinal
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • valueOf

         final Level valueOf(String value)

        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

      • values

         final Array<Level> values()

        Returns an array containing the constants of this enum type, in the order they're declared.

        This method may be used to iterate over the constants.