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

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

Introduction

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

Prototype

public static UriComponentsBuilder fromController(Class<?> controllerType) 

Source Link

Document

Create a UriComponentsBuilder from the mapping of a controller class and current request information including Servlet mapping.

Usage

From source file:org.ng200.openolympus.controller.auth.EmailConfirmationController.java

public static UriComponentsBuilder getUriBuilder() {
    return MvcUriComponentsBuilder.fromController(EmailConfirmationController.class);
}