Class Utils
java.lang.Object
org.apache.cxf.transport.http.netty.server.util.Utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Enumeration<T>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 StringgetCharsetFromContentType(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 StringgetMimeType(String fileUrl) static Collection<Locale>parseAcceptLanguageHeader(String acceptLanguageHeader) static StringsanitizeUri(String uri)
-
Method Details
-
emptyEnumeration
-
enumeration
-
enumerationFromKeys
-
enumerationFromValues
-
getCharsetFromContentType
Parse the character encoding from the specified content type header. If the content type is null, or there is no explicit character encoding,nullis returned.- Parameters:
contentType- a content type header
-
getCookies
public static Collection<io.netty.handler.codec.http.cookie.Cookie> getCookies(String name, io.netty.handler.codec.http.HttpRequest request) -
getMimeType
-
sanitizeUri
-
parseAcceptLanguageHeader
-