org.springframework.web.accept

Class PathExtensionContentNegotiationStrategy

    • Constructor Detail

      • PathExtensionContentNegotiationStrategy

        public PathExtensionContentNegotiationStrategy()
        Create an instance without any mappings to start with. Mappings may be added later on if any extensions are resolved through the Java Activation framework.
      • PathExtensionContentNegotiationStrategy

        public PathExtensionContentNegotiationStrategy(@Nullable
                                                       java.util.Map<java.lang.String,MediaType> mediaTypes)
        Create an instance with the given map of file extensions and media types.