Example usage for org.springframework.web.servlet.support RequestDataValueProcessor processUrl

List of usage examples for org.springframework.web.servlet.support RequestDataValueProcessor processUrl

Introduction

In this page you can find the example usage for org.springframework.web.servlet.support RequestDataValueProcessor processUrl.

Prototype

String processUrl(HttpServletRequest request, String url);

Source Link

Document

Invoked when a URL is about to be rendered or redirected to.

Usage

From source file:org.kmnet.com.fw.web.mvc.support.CompositeRequestDataValueProcessor.java

/**
 * Calls the {@code processUrl()} method of all the {@link RequestDataValueProcessor} implementations <br>
 * this class holds.//from   ww  w. ja  v a  2s . c  o m
 * @param url the URL value.must not be null.
 * @see org.springframework.web.servlet.support.RequestDataValueProcessor#processUrl(javax.servlet.http.HttpServletRequest,
 *      java.lang.String)
 */
@Override
public String processUrl(HttpServletRequest request, String url) {
    String result = url;
    for (RequestDataValueProcessor processor : processors) {
        result = processor.processUrl(request, url);
        if (!url.equals(result)) {
            break;
        }
    }
    return result;
}