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