- All Known Implementing Classes:
MediaType
- Enclosing interface:
- ContentTypeAccessor
public static interface ContentTypeAccessor.ContentTypeProvider
A provider interface provides a "toSomething(?)" method which converts a
given instance into something else. The
ContentTypeAccessor.ContentTypeProvider
converts an implementing instance's state into a ContentType
instance.-
Method Summary
Modifier and TypeMethodDescriptionReturns theContentType
instance from the implementing instance.
-
Method Details
-
toContentType
ContentType toContentType()Returns theContentType
instance from the implementing instance.- Returns:
- The according
ContentType
instance represented by the implementing instance.
-