Class HttpContentTypes


  • public final class HttpContentTypes
    extends java.lang.Object
    Utilities 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)