List of usage examples for org.springframework.web.util UriComponentsBuilder fromPath
public static UriComponentsBuilder fromPath(String path)
From source file:springfox.documentation.spring.web.scanners.PathMappingAdjuster.java
public String adjustedPath(String path) { return UriComponentsBuilder.fromPath(context.getPathMapping().or("/")).path(path).build().toUriString(); }
From source file:springfox.documentation.spring.web.paths.PathMappingAdjuster.java
@Override public String adjustedPath(String path) { return UriComponentsBuilder.fromPath(this.context.getPathMapping().or("/")).path(path).build() .toUriString();/*from w w w . ja v a2s . c om*/ }
From source file:org.wallride.web.support.Users.java
public String path(User user) { UriComponentsBuilder builder = UriComponentsBuilder.fromPath(""); return path(builder, user, true); }
From source file:org.wallride.web.support.Users.java
public String path(User user, boolean encode) { UriComponentsBuilder builder = UriComponentsBuilder.fromPath(""); return path(builder, user, encode); }
From source file:org.wallride.support.PostUtils.java
public String path(Article article) { UriComponentsBuilder builder = UriComponentsBuilder.fromPath(""); return path(builder, article, true); }
From source file:org.wallride.support.PostUtils.java
public String path(Article article, boolean encode) { UriComponentsBuilder builder = UriComponentsBuilder.fromPath(""); return path(builder, article, encode); }
From source file:org.wallride.support.PostUtils.java
public String path(Page page) { UriComponentsBuilder builder = UriComponentsBuilder.fromPath(""); return path(builder, page, true); }
From source file:springfox.documentation.spring.web.paths.AbstractPathProvider.java
/** * The relative path to the operation, from the basePath, which this operation describes. * The value SHOULD be in a relative (URL) path format. * * Includes the apiResourcePrefix/* w w w.ja v a 2 s . c o m*/ * * @param operationPath * @return the relative path to the api operation * @see AbstractPathProvider#getApplicationBasePath() */ @Override public String getOperationPath(String operationPath) { UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromPath("/"); return removeAdjacentForwardSlashes(uriComponentsBuilder.path(operationPath).build().toString()); }
From source file:springfox.documentation.spring.web.AbstractPathProvider.java
/** * The relative path to the operation, from the basePath, which this operation describes. * The value SHOULD be in a relative (URL) path format. * /*from w w w .j a v a2 s . com*/ * Includes the apiResourcePrefix * * @param operationPath * @return the relative path to the api operation * @see AbstractPathProvider#getApplicationBasePath() */ @Override public String getOperationPath(String operationPath) { UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromPath("/"); return sanitiseUrl(uriComponentsBuilder.path(operationPath).build().toString()); }
From source file:com.baidu.stqa.signet.web.action.BaseAction.java
public HttpHeaders setLocationHeaders(String location) { HttpHeaders headers = new HttpHeaders(); if (StringUtils.isNotBlank(location)) { URI uri = UriComponentsBuilder.fromPath(location).build().toUri(); headers.setLocation(uri);// w ww . j av a 2 s. c o m } return headers; }