Class HttpContentTypes
- java.lang.Object
-
- ch.raffael.meldioc.library.http.server.undertow.codec.HttpContentTypes
-
public final class HttpContentTypes extends java.lang.ObjectUtilities for dealing with content types.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.vavr.control.Option<ch.raffael.meldioc.library.codec.ContentType>contentType(io.undertow.server.HttpServerExchange exchange)static io.vavr.Tuple2<java.lang.String,io.vavr.control.Option<java.nio.charset.Charset>>typeWithCharset(java.lang.String fullContentType)static io.vavr.Tuple2<java.lang.String,java.nio.charset.Charset>typeWithCharset(java.lang.String fullContentType, java.nio.charset.Charset fallback)
-
-
-
Method Detail
-
contentType
public static io.vavr.control.Option<ch.raffael.meldioc.library.codec.ContentType> contentType(io.undertow.server.HttpServerExchange exchange)
-
typeWithCharset
public static io.vavr.Tuple2<java.lang.String,java.nio.charset.Charset> typeWithCharset(@Nullable java.lang.String fullContentType, java.nio.charset.Charset fallback)
-
typeWithCharset
public static io.vavr.Tuple2<java.lang.String,io.vavr.control.Option<java.nio.charset.Charset>> typeWithCharset(@Nullable java.lang.String fullContentType)
-
-