public interface HttpMediaType extends HttpMediaTypeAccessor.HttpMediaTypeProvider<RuntimeException>
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.Modifier and Type | Method and Description |
---|---|
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".
|
String toHttpMediaType()
toHttpMediaType
in interface HttpMediaTypeAccessor.HttpMediaTypeProvider<RuntimeException>
Copyright © 2018. All rights reserved.