Package org.refcodes.net
Interface HttpMediaType
-
- All Superinterfaces:
HttpMediaTypeAccessor.HttpMediaTypeProvider<RuntimeException>
- All Known Subinterfaces:
ContentType
- All Known Implementing Classes:
ContentTypeImpl
,MediaType
public interface HttpMediaType extends HttpMediaTypeAccessor.HttpMediaTypeProvider<RuntimeException>
TheHttpMediaType
converts an implementing instance's state into an HTTP media type as used in HTTP Header-Fields.MediaType
as well asContentType
make use of this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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".
-
-
-
Method Detail
-
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.
-
-