Java org.springframework.web.servlet.config.annotation ContentNegotiationConfigurer fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.servlet.config.annotation ContentNegotiationConfigurer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.servlet.config.annotation ContentNegotiationConfigurer.

The text is from its open source code.

Method

ContentNegotiationConfigurerdefaultContentType(MediaType... defaultContentTypes)
Set the default content type(s) to use when no content type is requested in order of priority.
ContentNegotiationConfigurerdefaultContentTypeStrategy(ContentNegotiationStrategy defaultStrategy)
Set a custom ContentNegotiationStrategy to use to determine the content type to use when no content type is requested.
ContentNegotiationConfigurerfavorPathExtension(boolean favorPathExtension)
Whether the path extension in the URL path should be used to determine the requested media type.
ContentNegotiationConfigurerignoreAcceptHeader(boolean ignoreAcceptHeader)
Whether to disable checking the 'Accept' request header.
ContentNegotiationConfigurerignoreUnknownPathExtensions(boolean ignore)
Whether to ignore requests with path extension that cannot be resolved to any media type.
ContentNegotiationConfigurermediaType(String extension, MediaType mediaType)
Add a mapping from a key, extracted from a path extension or a query parameter, to a MediaType.