Example usage for org.springframework.web.servlet.view RedirectView setHttp10Compatible

List of usage examples for org.springframework.web.servlet.view RedirectView setHttp10Compatible

Introduction

In this page you can find the example usage for org.springframework.web.servlet.view RedirectView setHttp10Compatible.

Prototype

public void setHttp10Compatible(boolean http10Compatible) 

Source Link

Document

Set whether to stay compatible with HTTP 1.0 clients.

Usage

From source file:ar.com.zauber.commons.spring.web.SpringWebUtil.java

/**
 * @param url url to redirect to//from  ww w  .j  av a  2 s.c  o  m
 * @return a <code>RedirectView</code> object for url 
 */
public final RedirectView createRedirect(final String url) {
    final RedirectView rv = new RedirectView(url);
    rv.setContextRelative(contextRelative);
    rv.setHttp10Compatible(false);

    return rv;
}