Example usage for org.springframework.web.util UriComponentsBuilder fromPath

List of usage examples for org.springframework.web.util UriComponentsBuilder fromPath

Introduction

In this page you can find the example usage for org.springframework.web.util UriComponentsBuilder fromPath.

Prototype

public static UriComponentsBuilder fromPath(String path) 

Source Link

Document

Create a builder that is initialized with the given path.

Usage

From source file:cherry.example.web.basic.ex10.BasicEx10ControllerImpl.java

private UriComponents redirectOnInit(String redir) {
    if (StringUtils.isNotEmpty(redir)) {
        return UriComponentsBuilder.fromPath(redir).build();
    } else {/*from  w  w  w  .  jav  a  2s  . c om*/
        return fromMethodCall(on(BasicEx10Controller.class).start(null, null, null, null, null, null)).build();
    }
}

From source file:cherry.example.web.basic.ex40.BasicEx41ControllerImpl.java

private UriComponents redirectOnInit(String redir, long id) {
    if (StringUtils.isNotEmpty(redir)) {
        return UriComponentsBuilder.fromPath(redir).build();
    } else {/*ww  w  . j  a  va2 s .co m*/
        return fromMethodCall(on(BasicEx41Controller.class).start(id, null, null, null, null, null, null))
                .replaceQueryParam(REQ_ID, id).build();
    }
}

From source file:cherry.example.web.basic.ex20.BasicEx21ControllerImpl.java

private UriComponents redirectOnInit(String redir, long id) {
    if (StringUtils.isNotEmpty(redir)) {
        return UriComponentsBuilder.fromPath(redir).build();
    } else {/*from  ww w.  ja v a  2 s  .c o m*/
        return fromMethodCall(on(BasicEx21Controller.class).start(id, null, null, null, null, null, null))
                .replaceQueryParam(REQ_ID, id).build();
    }
}

From source file:cherry.example.web.basic.ex50.BasicEx50ControllerImpl.java

private UriComponents redirectOnInit(String redir) {
    if (StringUtils.isNotEmpty(redir)) {
        return UriComponentsBuilder.fromPath(redir).build();
    } else {/*from   w w  w  .j av a 2s. c  om*/
        return fromMethodCall(on(BasicEx50Controller.class).start(null, null, null, null, null, null)).build();
    }
}

From source file:cherry.example.web.basic.ex50.BasicEx52ControllerImpl.java

private UriComponents redirectOnInit(String redir) {
    if (StringUtils.isNotEmpty(redir)) {
        return UriComponentsBuilder.fromPath(redir).build();
    } else {//from   w ww .ja v  a2  s .c o m
        return fromMethodCall(on(BasicEx52Controller.class).start(null, null, null, null, null, null)).build();
    }
}

From source file:cherry.example.web.basic.ex50.BasicEx53ControllerImpl.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.  c  o m
        return fromMethodCall(on(BasicEx53Controller.class).start(null, null, null, null, null, null)).build();
    }
}

From source file:cherry.example.web.basic.ex60.BasicEx60ControllerImpl.java

private UriComponents redirectOnInit(String redir) {
    if (StringUtils.isNotEmpty(redir)) {
        return UriComponentsBuilder.fromPath(redir).build();
    } else {/*  w w w .  j  a  v  a2s .c  om*/
        return fromMethodCall(on(BasicEx60Controller.class).start(null, null, null, null, null, null)).build();
    }
}

From source file:cherry.example.web.applied.ex50.AppliedEx50ControllerImpl.java

private UriComponents redirectOnInit(String redir) {
    if (StringUtils.isNotEmpty(redir)) {
        return UriComponentsBuilder.fromPath(redir).build();
    } else {/*  w  ww .  j a  v  a 2s  .  c o m*/
        return fromMethodCall(on(AppliedEx50Controller.class).start(null, null, null, null, null, null))
                .build();
    }
}

From source file:cherry.example.web.applied.ex60.AppliedEx60ControllerImpl.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  .c om*/
        return fromMethodCall(on(AppliedEx60Controller.class).start(null, null, null, null, null, null))
                .build();
    }
}

From source file:cherry.example.web.validation.ex50.ValidationEx50ControllerImpl.java

private UriComponents redirectOnInit(String redir) {
    if (StringUtils.isNotEmpty(redir)) {
        return UriComponentsBuilder.fromPath(redir).build();
    } else {//from  w  ww. j  ava  2 s .  c om
        return fromMethodCall(on(ValidationEx50Controller.class).start(null, null, null, null, null, null))
                .build();
    }
}