Spring Framework FixedContentNegotiationStrategy - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework FixedContentNegotiationStrategy class.

This code example shows how to use the following methods:
    public void afterPropertiesSet() { 
        if (contentNegotiationManager == null) { 
            contentNegotiationManager = new ContentNegotiationManager( 
                    new HeaderContentNegotiationStrategy(), new FixedContentNegotiationStrategy(defaultContentType)); 
        responseProcessor = new HttpEntityMethodProcessor(messageConverters, contentNegotiationManager); 
        fallbackResponseProcessor = new HttpEntityMethodProcessor(messageConverters, 
                new ContentNegotiationManager(new FixedContentNegotiationStrategy(defaultContentType))); 
    protected ModelAndView doResolveException( 
            HttpServletRequest request, HttpServletResponse response, Object handler, Exception exception) { 
        ResponseEntity<?> entity; 
        try { 
            entity = handleException(exception, request); 
        } catch (NoExceptionHandlerFoundException ex) {