List of usage examples for org.springframework.web.util UriComponentsBuilder fromPath
public static UriComponentsBuilder fromPath(String path)
From source file:cherry.example.web.basic.ex10.BasicEx11ControllerImpl.java
private UriComponents redirectOnInit(String redir, long id) { if (StringUtils.isNotEmpty(redir)) { return UriComponentsBuilder.fromPath(redir).build(); } else {//from w w w. ja va2 s. c o m return fromMethodCall(on(BasicEx11Controller.class).start(id, null, null, null, null, null, null)) .replaceQueryParam(REQ_ID, id).build(); } }
From source file:cherry.example.web.basic.ex30.BasicEx31ControllerImpl.java
private UriComponents redirectOnInit(String redir, long id) { if (StringUtils.isNotEmpty(redir)) { return UriComponentsBuilder.fromPath(redir).build(); } else {/*from w w w . j a va 2 s .co m*/ return fromMethodCall(on(BasicEx31Controller.class).start(id, null, null, null, null, null, null)) .replaceQueryParam(REQ_ID, id).build(); } }
From source file:cherry.example.web.applied.ex20.AppliedEx20ControllerImpl.java
private UriComponents redirectOnInit(String redir) { if (StringUtils.isNotEmpty(redir)) { return UriComponentsBuilder.fromPath(redir).build(); } else {/* w w w . java 2 s . c om*/ return fromMethodCall(on(AppliedEx20Controller.class).start(null, null, null, null, null, null)) .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 w w . j av a 2 s .c om 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(); } } }
From source file:cherry.example.web.applied.ex10.AppliedEx10ControllerImpl.java
private UriComponents redirectOnInit(String redir) { if (StringUtils.isNotEmpty(redir)) { return UriComponentsBuilder.fromPath(redir).build(); } else {/*from w w w. j a v a 2s . c om*/ return fromMethodCall(on(AppliedEx10Controller.class).start(null, null, null, null, null, null)) .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 {// w w w. j ava2 s .c o m 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.example.web.applied.ex90.AppliedEx90ControllerImpl.java
private UriComponents redirectOnInit(String redir) { if (StringUtils.isNotEmpty(redir)) { return UriComponentsBuilder.fromPath(redir).build(); } else {//from w w w .j a v a2 s .com return fromMethodCall(on(AppliedEx90Controller.class).start(null, null, null, null, null, null)) .build(); } }
From source file:cherry.example.web.applied.ex20.AppliedEx22ControllerImpl.java
private UriComponents redirectOnInit(String redir, long id) { if (StringUtils.isNotEmpty(redir)) { return UriComponentsBuilder.fromPath(redir).build(); } else {/*ww w . j a v a 2 s. c o m*/ return fromMethodCall(on(AppliedEx22Controller.class).start(id, null, null, null, null, null, null)) .replaceQueryParam(REQ_ID, id).build(); } }
From source file:cherry.example.web.applied.ex40.AppliedEx41ControllerImpl.java
private UriComponents redirectOnInit(String redir, long id) { if (StringUtils.isNotEmpty(redir)) { return UriComponentsBuilder.fromPath(redir).build(); } else {/* w w w . j a v a 2 s .c o m*/ return fromMethodCall(on(AppliedEx41Controller.class).start(id, null, null, null, null, null, null)) .replaceQueryParam(REQ_ID, id).build(); } }
From source file:cherry.example.web.applied.ex10.AppliedEx12ControllerImpl.java
private UriComponents redirectOnInit(String redir, long id) { if (StringUtils.isNotEmpty(redir)) { return UriComponentsBuilder.fromPath(redir).build(); } else {//from w ww. j a v a 2 s.co m return fromMethodCall(on(AppliedEx12Controller.class).start(id, null, null, null, null, null, null)) .replaceQueryParam(REQ_ID, id).build(); } }