Package com.ibm.cloud.sdk.core.http
Enum HttpConfigOptions.LoggingLevel
- java.lang.Object
-
- java.lang.Enum<HttpConfigOptions.LoggingLevel>
-
- com.ibm.cloud.sdk.core.http.HttpConfigOptions.LoggingLevel
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpConfigOptions.LoggingLevel>
- Enclosing class:
- HttpConfigOptions
public static enum HttpConfigOptions.LoggingLevel extends java.lang.Enum<HttpConfigOptions.LoggingLevel>
Levels of information to log when making HTTP requests, from least (NONE) to most (BODY).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpConfigOptions.LoggingLevel
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpConfigOptions.LoggingLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final HttpConfigOptions.LoggingLevel NONE
-
BASIC
public static final HttpConfigOptions.LoggingLevel BASIC
-
HEADERS
public static final HttpConfigOptions.LoggingLevel HEADERS
-
BODY
public static final HttpConfigOptions.LoggingLevel BODY
-
-
Method Detail
-
values
public static HttpConfigOptions.LoggingLevel[] 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 (HttpConfigOptions.LoggingLevel c : HttpConfigOptions.LoggingLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpConfigOptions.LoggingLevel valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-