Enum RestAdapter.LogLevel

    • Enum Constant Detail

      • BASIC

        public static final RestAdapter.LogLevel BASIC
        Log only the request method and URL and the response status code and execution time.
      • HEADERS

        public static final RestAdapter.LogLevel HEADERS
        Log the basic information along with request and response headers.
      • HEADERS_AND_ARGS

        public static final RestAdapter.LogLevel HEADERS_AND_ARGS
        Log the basic information along with request and response objects via toString().
      • FULL

        public static final RestAdapter.LogLevel FULL
        Log the headers, body, and metadata for both requests and responses.

        Note: This requires that the entire request and response body be buffered in memory!

    • Method Detail

      • values

        public static RestAdapter.LogLevel[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RestAdapter.LogLevel c : RestAdapter.LogLevel.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RestAdapter.LogLevel valueOf(String name)
        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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • log

        public boolean log()