List of usage examples for org.springframework.web.util UrlPathHelper setUrlDecode
public void setUrlDecode(boolean urlDecode)
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); } }