public class HttpHeaderUtils extends Object
| Constructor and Description |
|---|
HttpHeaderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCharsetOfContentType(String rawContentType,
String defaultEncoding)
A http content type should contain a character set like
"application/json; charset=utf-8".
|
static String |
getCharsetOfContentTypeOrUtf8(String rawContentType)
A http content type should contain a character set like
"application/json; charset=utf-8".
|
static String |
getContentTypeFromContentTypeAndCharacterSetting(String rawContentType)
A http content type should contain a character set like
"application/json; charset=utf-8".
|
public static String getContentTypeFromContentTypeAndCharacterSetting(String rawContentType)
rawContentType - "application/json; charset=utf-8" or "application/json"public static String getCharsetOfContentType(String rawContentType, String defaultEncoding)
rawContentType - "application/json; charset=utf-8" or "application/json"public static String getCharsetOfContentTypeOrUtf8(String rawContentType)
rawContentType - "application/json; charset=utf-8" or "application/json"Copyright © 2019 ninjaframework. All rights reserved.