Module org.refcodes.web
Package org.refcodes.web
Interface HttpMediaTypeAccessor.HttpMediaTypeProvider<EXC extends Exception>
- Type Parameters:
EXC
- TheException
to be thrown in case conversion failed. Throw aRuntimeException
in order to make this method unchecked.
- All Known Subinterfaces:
HttpMediaType
- All Known Implementing Classes:
ContentType
,MediaType
- Enclosing interface:
- HttpMediaTypeAccessor
public static interface HttpMediaTypeAccessor.HttpMediaTypeProvider<EXC extends Exception>
A provider interface provides a "toSomething(?)" method which converts a
given instance into something else. The
HttpMediaTypeAccessor.HttpMediaTypeProvider
converts something like a MediaType
to a Media-Type's
String
representation.-
Method Summary
Modifier and TypeMethodDescriptionA provider interface provides a "toSomething(?)"
-
Method Details
-
toHttpMediaType
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".
-