Interface HypermediaConverterFactory
-
@ProviderType public interface HypermediaConverterFactory
Factory for retrieving HypermediaConverter instances
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HypermediaConverter
getConverter(ContentType mediaType)
Return the Hypermedia converter responsible for serializing Resources for the specific media type.HypermediaConverter
getDefaultConverter()
Return the system's default Hypermedia converter.
-
-
-
Method Detail
-
getDefaultConverter
HypermediaConverter getDefaultConverter()
Return the system's default Hypermedia converter. Typically this would be used when the client doesn't request a specific media type in the accepts header.- Returns:
- The default Hypermedia converter instance
-
getConverter
HypermediaConverter getConverter(ContentType mediaType)
Return the Hypermedia converter responsible for serializing Resources for the specific media type. If no converters are found that support the request media type then the system's default Hypermedia converter is returned.- Parameters:
mediaType
- The media type being requested.- Returns:
- The Hypermedia converter instance
-
-