public final class HttpUtils extends Object
| Constructor and Description |
|---|
HttpUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
deserialize(String content,
Class<T> clazz) |
static <T> T |
deserialize(String content,
com.fasterxml.jackson.core.type.TypeReference<T> clazz) |
static String |
encodeURLParam(String value) |
static com.fasterxml.jackson.databind.JsonNode |
readTree(String content) |
static String |
serialize(Object value) |
static String |
sha256Encode(String key,
String data) |
public static <T> T deserialize(String content, Class<T> clazz) throws IOException
IOExceptionpublic static <T> T deserialize(String content, com.fasterxml.jackson.core.type.TypeReference<T> clazz) throws IOException
IOExceptionpublic static String serialize(Object value) throws IOException
IOExceptionpublic static com.fasterxml.jackson.databind.JsonNode readTree(String content) throws IOException
IOExceptionpublic static String encodeURLParam(String value) throws IOException
IOExceptionCopyright © 2017–2021 The Apache Software Foundation. All rights reserved.