Example usage for org.springframework.web.util UrlPathHelper setUrlDecode

List of usage examples for org.springframework.web.util UrlPathHelper setUrlDecode

Introduction

In this page you can find the example usage for org.springframework.web.util UrlPathHelper setUrlDecode.

Prototype

public void setUrlDecode(boolean urlDecode) 

Source Link

Document

Whether the context path and request URI should be decoded -- both of which are returned undecoded by the Servlet API, in contrast to the servlet path.

Usage

From source file:at.ac.univie.isc.asio.security.UriAuthenticationFilter.java

/**
 * Create the filter with default settings.
 *//*w ww.ja  va2s.  c o  m*/
public static UriAuthenticationFilter create() {
    final UrlPathHelper pathHelper = new UrlPathHelper();
    pathHelper.setRemoveSemicolonContent(true);
    pathHelper.setUrlDecode(true);
    return new UriAuthenticationFilter(pathHelper);
}

From source file:org.cfr.capsicum.server.CayenneFilter.java

@Override
public void afterPropertiesSet() throws ServletException {
    super.afterPropertiesSet();
    if (includeFilterPatterns == null) {
        this.includeFilterPatterns = new String[] { "**/*" };
    }/*from ww  w.  j  a  v a2s. c o m*/
    UrlPathHelper pathHelper = new UrlPathHelper();
    pathHelper.setAlwaysUseFullPath(alwaysUseFullPath);
    pathHelper.setUrlDecode(urlDecode);
    conditionIncluded = new PatternsRequestCondition(includeFilterPatterns, pathHelper, null, true, true);
    if (excludeFilterPatterns != null) {
        conditionExcluded = new PatternsRequestCondition(excludeFilterPatterns, pathHelper, null, true, true);
    }
}