Example usage for Java org.springframework.web.servlet.config.annotation ContentNegotiationConfigurer fields, constructors, methods, implement or subclass
The text is from its open source code.
ContentNegotiationConfigurer | defaultContentType(MediaType... defaultContentTypes) Set the default content type(s) to use when no content type is requested in order of priority. |
ContentNegotiationConfigurer | defaultContentTypeStrategy(ContentNegotiationStrategy defaultStrategy) Set a custom ContentNegotiationStrategy to use to determine the content type to use when no content type is requested. |
ContentNegotiationConfigurer | favorPathExtension(boolean favorPathExtension) Whether the path extension in the URL path should be used to determine the requested media type. |
ContentNegotiationConfigurer | ignoreAcceptHeader(boolean ignoreAcceptHeader) Whether to disable checking the 'Accept' request header. |
ContentNegotiationConfigurer | ignoreUnknownPathExtensions(boolean ignore) Whether to ignore requests with path extension that cannot be resolved to any media type. |
ContentNegotiationConfigurer | mediaType(String extension, MediaType mediaType) Add a mapping from a key, extracted from a path extension or a query parameter, to a MediaType. |