Interface HttpMediaTypeAccessor.HttpMediaTypeProvider<EXC extends Exception>

    • Method Detail

      • toHttpMediaType

        String toHttpMediaType​()
                        throws EXC extends Exception
        A provider interface provides a "toSomething(?)" method which converts a given instance into something else. Returns the HTTP media type: It consists of the Media-Top-Level-Type and the Media-Subtype as well as some (optional) suffixed parameters all being concatenated in an HTTP valid manner, such as: "application/json;charset=UTF-8".
        Returns:
        The HTTP header Media-Type as of the IANA specification.
        Throws:
        EXC - Thrown in case providing the type as String failed.
        EXC extends Exception