Example usage for org.springframework.hateoas UriTemplate UriTemplate

List of usage examples for org.springframework.hateoas UriTemplate UriTemplate

Introduction

In this page you can find the example usage for org.springframework.hateoas UriTemplate UriTemplate.

Prototype

@Deprecated
public UriTemplate(String template) 

Source Link

Document

Creates a new UriTemplate using the given template string.

Usage

From source file:org.springframework.hateoas.Link.java

/**
 * Creates a new {@link Link} to the given URI with the given rel and the
 * given name, title and type./*www .jav a 2  s . c o  m*/
 *
 * @param href must not be {@literal null} or empty.
 * @param rel must not be {@literal null} or empty.
 * @param name
 * @param title must not be {@literal null} or empty.
 * @param type
 */
public Link(String href, String rel, String name, String title, String type) {
    this(new UriTemplate(href), rel, name, title, type);
}

From source file:org.springframework.hateoas.Link.java

/**
 * Creates a new {@link Link} to the given URI with the given rel and the
 * given name, title, type and profile.// ww  w .j  a  v  a  2s  .c o  m
 *
 * @param href must not be {@literal null} or empty.
 * @param rel must not be {@literal null} or empty.
 * @param name
 * @param title must not be {@literal null} or empty.
 * @param type
 * @param profile
 */
public Link(String href, String rel, String name, String title, String type, String profile) {
    this(new UriTemplate(href), rel, name, title, type, profile);
}

From source file:org.springframework.hateoas.Link.java

private UriTemplate getUriTemplate() {

    if (template == null) {
        this.template = new UriTemplate(href);
    }

    return template;
}