Example usage for org.springframework.web.servlet.view ContentNegotiatingViewResolver subclass-usage

List of usage examples for org.springframework.web.servlet.view ContentNegotiatingViewResolver subclass-usage

Introduction

In this page you can find the example usage for org.springframework.web.servlet.view ContentNegotiatingViewResolver subclass-usage.

Usage

From source file com.expressflow.spring.MyContentNegotiatingViewResolver.java

public class MyContentNegotiatingViewResolver extends ContentNegotiatingViewResolver {

    protected List<MediaType> getMediaTypes(HttpServletRequest request) {
        List<MediaType> result = super.getMediaTypes(request);
        if (result.size() == 1)
            result = Arrays.asList(result.get(0));

From source file eu.europa.ejusticeportal.dss.demo.web.view.SignaturePageContentNegotiatingViewResolver.java

public class SignaturePageContentNegotiatingViewResolver extends ContentNegotiatingViewResolver {

}

From source file com.asual.summer.core.spring.ViewResolverConfiguration.java

/**
 * 
 * @author Rostislav Hristov
 *
 */
public class ViewResolverConfiguration extends ContentNegotiatingViewResolver {

From source file com.kolich.spring.views.KolichContentNegotiatingViewResolver.java

/**
 * We use our own view resolver because Spring's default
 * {@link ContentNegotiatingViewResolver} does not quite do what we want. In
 * the case of a {@link ContentNegotiatingViewResolver}, it attempts to resolve
 * a view based on a number of things including a dot-path extension and an
 * Accept Http header.  So, first, ask the app default