public class HeaderUtils extends Object
Utilities to deal with header values.
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHORIZATION_HEADER_NAME
|
static String |
MEDIA_TYPE_APPLICATION_JSON
A
String constant representing “application/json”" media type. |
| Constructor and Description |
|---|
HeaderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
toValue(String headerName,
String value,
Class<T> clazz)
Deserialize a header value to its desired type if possible.
|
public static final String AUTHORIZATION_HEADER_NAME
public static final String MEDIA_TYPE_APPLICATION_JSON
A String constant representing “application/json”" media type.
Copyright © 2016–2024. All rights reserved.