org.springframework.web.accept

Interface MediaTypeFileExtensionResolver

    • Method Detail

      • resolveFileExtensions

        java.util.List<java.lang.String> resolveFileExtensions(MediaType mediaType)
        Resolve the given media type to a list of path extensions.
        Parameters:
        mediaType - the media type to resolve
        Returns:
        a list of extensions or an empty list (never null)
      • getAllFileExtensions

        java.util.List<java.lang.String> getAllFileExtensions()
        Return all registered file extensions.
        Returns:
        a list of extensions or an empty list (never null)