Package com.oracle.bmc.http.internal
Class HeaderUtils
- java.lang.Object
-
- com.oracle.bmc.http.internal.HeaderUtils
-
public class HeaderUtils extends Object
Utilities to deal with header values.
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTHORIZATION_HEADER_NAME
See {@link HTTP/1.1 documentation}.static String
MEDIA_TYPE_APPLICATION_JSON
A String constant representing “application/json”" media type.
-
Constructor Summary
Constructors Constructor Description HeaderUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
toValue(String headerName, String value, Class<T> clazz)
Deserialize a header value to its desired type if possible.
-
-
-
Field Detail
-
AUTHORIZATION_HEADER_NAME
public static final String AUTHORIZATION_HEADER_NAME
See {@link HTTP/1.1 documentation}.- See Also:
- Constant Field Values
-
MEDIA_TYPE_APPLICATION_JSON
public static final String MEDIA_TYPE_APPLICATION_JSON
A String constant representing “application/json”" media type.- See Also:
- Constant Field Values
-
-