Interface MediaTypeConfigurationProvider
public interface MediaTypeConfigurationProvider
SPI used to register internal media types through spring.factories.
WARNING: Do NOT implement this interface if you are coding a custom media type. See "Custom media type configuration" in the reference docs.
- Author:
- Oliver Drotbohm, Greg Turnquist
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends HypermediaMappingInformation>
Returns the primary Spring configuration class to be bootstrapped for the given media type.boolean
supportsAny
(Collection<MediaType> mediaTypes) Returns whether the provider supports any of the givenMediaType
s.
-
Method Details
-
getConfiguration
Class<? extends HypermediaMappingInformation> getConfiguration()Returns the primary Spring configuration class to be bootstrapped for the given media type.- Returns:
-
supportsAny
Returns whether the provider supports any of the givenMediaType
s. Used to select the providers to be included into a configuration setup in case the media types to be enabled are explicitly defined.- Parameters:
mediaTypes
- will never be null.- Returns:
-