spring-framework / org.springframework.web.accept / ServletPathExtensionContentNegotiationStrategy / <init>

<init>

ServletPathExtensionContentNegotiationStrategy(context: ServletContext)

Create an instance without any mappings to start with. Mappings may be added later when extensions are resolved through ServletContext#getMimeType(String) or via org.springframework.http.MediaTypeFactory.

ServletPathExtensionContentNegotiationStrategy(servletContext: ServletContext, @Nullable mediaTypes: MutableMap<String, MediaType>)

Create an instance with the given extension-to-MediaType lookup.