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

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

Introduction

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

Prototype

public void setAlwaysUseFullPath(boolean alwaysUseFullPath) 

Source Link

Document

Whether URL lookups should always use the full path within the current web application context, i.e.

Usage

From source file:com.mjeanroy.backbone_isomorphic.configuration.AppConfiguration.java

@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
    UrlPathHelper urlPathHelper = new UrlPathHelper();
    urlPathHelper.setAlwaysUseFullPath(true);

    configurer.setUseSuffixPatternMatch(false).setUrlPathHelper(urlPathHelper);
}

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   w  ww  .ja va 2s.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);
    }
}