- All Superinterfaces:
HttpMediaTypeAccessor.HttpMediaTypeProvider<RuntimeException>
- All Known Implementing Classes:
ContentType
,MediaType
public interface HttpMediaType
extends HttpMediaTypeAccessor.HttpMediaTypeProvider<RuntimeException>
The
HttpMediaType
converts an implementing instance's state into an
HTTP media type as used in HTTP Header-Fields. MediaType
as well as
ContentType
make use of this interface.-
Method Summary
Modifier and TypeMethodDescriptionReturns 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".
-
Method Details
-
toHttpMediaType
String toHttpMediaType()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".- Specified by:
toHttpMediaType
in interfaceHttpMediaTypeAccessor.HttpMediaTypeProvider<RuntimeException>
- Returns:
- The HTTP header Media-Type as of the IANA specification.
-