List of usage examples for org.springframework.web.util UriComponentsBuilder replaceQuery
@Override
public UriComponentsBuilder replaceQuery(@Nullable String query)
From source file:cherry.sqlman.tool.load.SqlLoadControllerImpl.java
private UriComponents redirectOnInit(String redirTo, Integer ref) { if (StringUtils.isNotEmpty(redirTo)) { return UriComponentsBuilder.fromPath(redirTo).build(); } else {/*from w ww. ja v a 2s.c om*/ UriComponentsBuilder ucb = fromMethodCall( on(SqlLoadController.class).start(null, null, null, null, null, null, null)); if (ref == null) { return ucb.replaceQuery(StringUtils.EMPTY).build(); } else { return ucb.replaceQueryParam(REQ_REF, ref).build(); } } }
From source file:cherry.sqlman.tool.statement.SqlStatementControllerImpl.java
private UriComponents redirectOnInit(String redirTo, Integer ref) { if (StringUtils.isNotEmpty(redirTo)) { return UriComponentsBuilder.fromPath(redirTo).build(); } else {/*www .ja v a 2 s. c om*/ UriComponentsBuilder ucb = fromMethodCall( on(SqlStatementController.class).start(null, null, null, null, null, null, null)); if (ref == null) { return ucb.replaceQuery(StringUtils.EMPTY).build(); } else { return ucb.replaceQueryParam(REQ_REF, ref).build(); } } }
From source file:cherry.sqlman.tool.clause.SqlClauseControllerImpl.java
private UriComponents redirectOnInit(String redirTo, Integer ref) { if (StringUtils.isNotEmpty(redirTo)) { return UriComponentsBuilder.fromPath(redirTo).build(); } else {/*from w ww .j a v a 2 s . co m*/ UriComponentsBuilder ucb = fromMethodCall( on(SqlClauseController.class).start(null, null, null, null, null, null, null)); if (ref == null) { return ucb.replaceQuery(StringUtils.EMPTY).build(); } else { return ucb.replaceQueryParam(REQ_REF, ref).build(); } } }