public final class Utils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Enumeration<T> |
emptyEnumeration() |
static <T> Enumeration<T> |
enumeration(Collection<T> collection) |
static <T> Enumeration<T> |
enumerationFromKeys(Map<T,?> map) |
static <T> Enumeration<T> |
enumerationFromValues(Map<?,T> map) |
static String |
getCharsetFromContentType(String contentType)
Parse the character encoding from the specified content type header.
|
static Collection<io.netty.handler.codec.http.cookie.Cookie> |
getCookies(String name,
io.netty.handler.codec.http.HttpRequest request) |
static String |
getMimeType(String fileUrl) |
static Collection<Locale> |
parseAcceptLanguageHeader(String acceptLanguageHeader) |
static String |
sanitizeUri(String uri) |
public static <T> Enumeration<T> emptyEnumeration()
public static <T> Enumeration<T> enumeration(Collection<T> collection)
public static <T> Enumeration<T> enumerationFromKeys(Map<T,?> map)
public static <T> Enumeration<T> enumerationFromValues(Map<?,T> map)
public static String getCharsetFromContentType(String contentType)
null
is returned.contentType
- a content type headerpublic static Collection<io.netty.handler.codec.http.cookie.Cookie> getCookies(String name, io.netty.handler.codec.http.HttpRequest request)
public static Collection<Locale> parseAcceptLanguageHeader(String acceptLanguageHeader)
Apache CXF