Example usage for org.springframework.web.servlet.mvc.method.annotation MvcUriComponentsBuilder MvcUriComponentsBuilder

List of usage examples for org.springframework.web.servlet.mvc.method.annotation MvcUriComponentsBuilder MvcUriComponentsBuilder

Introduction

In this page you can find the example usage for org.springframework.web.servlet.mvc.method.annotation MvcUriComponentsBuilder MvcUriComponentsBuilder.

Prototype

protected MvcUriComponentsBuilder(UriComponentsBuilder baseUrl) 

Source Link

Document

Default constructor.

Usage

From source file:org.springframework.web.servlet.mvc.method.annotation.MvcUriComponentsBuilder.java

/**
 * Create an instance of this class with a base URL. After that calls to one
 * of the instance based {@code withXxx(...}} methods will create URLs relative
 * to the given base URL./*from   w w w.  j a  va2 s.co m*/
 */
public static MvcUriComponentsBuilder relativeTo(UriComponentsBuilder baseUrl) {
    return new MvcUriComponentsBuilder(baseUrl);
}