Example usage for org.springframework.web.accept ContentNegotiationManager ContentNegotiationManager

List of usage examples for org.springframework.web.accept ContentNegotiationManager ContentNegotiationManager

Introduction

In this page you can find the example usage for org.springframework.web.accept ContentNegotiationManager ContentNegotiationManager.

Prototype

public ContentNegotiationManager() 

Source Link

Document

Create a default instance with a HeaderContentNegotiationStrategy .

Usage

From source file:cz.jirutka.spring.exhandler.RestHandlerExceptionResolver.java

public void setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager) {
    this.contentNegotiationManager = contentNegotiationManager != null ? contentNegotiationManager
            : new ContentNegotiationManager();
}

From source file:org.springframework.web.servlet.mvc.method.annotation.ReactiveTypeHandler.java

public ReactiveTypeHandler() {
    this(ReactiveAdapterRegistry.getSharedInstance(), new SyncTaskExecutor(), new ContentNegotiationManager());
}