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

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

Introduction

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

Prototype

public UriComponentsBuilder uri(URI uri) 

Source Link

Document

Initialize components of this builder from components of the given URI.

Usage

From source file:org.cloudfoundry.identity.client.UaaContextFactory.java

/**
 * Returns the URI/*from w  ww . j a  va  2s  .c om*/
 * @return
 */
public URI getTokenUri() {
    UriComponentsBuilder tokenURI = UriComponentsBuilder.newInstance();
    tokenURI.uri(uaaURI);
    tokenURI.path(tokenPath);
    return tokenURI.build().toUri();
}

From source file:org.cloudfoundry.identity.client.UaaContextFactory.java

/**
 * Returns the authorize URI//from ww  w  .j av a2  s.c  o  m
 * @return the UAA authorization URI
 */
public URI getAuthorizeUri() {
    UriComponentsBuilder authorizationURI = UriComponentsBuilder.newInstance();
    authorizationURI.uri(uaaURI);
    authorizationURI.path(authorizePath);
    return authorizationURI.build().toUri();
}