List of usage examples for org.springframework.web.accept FixedContentNegotiationStrategy FixedContentNegotiationStrategy
public FixedContentNegotiationStrategy(List<MediaType> contentTypes)
From source file:cz.jirutka.spring.exhandler.RestHandlerExceptionResolver.java
@Override public void afterPropertiesSet() { if (contentNegotiationManager == null) { contentNegotiationManager = new ContentNegotiationManager(new HeaderContentNegotiationStrategy(), new FixedContentNegotiationStrategy(defaultContentType)); }//from w w w . j a v a 2s. co m responseProcessor = new HttpEntityMethodProcessor(messageConverters, contentNegotiationManager); fallbackResponseProcessor = new HttpEntityMethodProcessor(messageConverters, new ContentNegotiationManager(new FixedContentNegotiationStrategy(defaultContentType))); }