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

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

Introduction

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

Prototype

@Override
public Object clone() 

Source Link

Document

Public declaration of Object's clone() method.

Usage

From source file:it.reply.orchestrator.service.utils.MyLinkBuilder.java

public static MyLinkBuilder getNewBuilder(UriComponentsBuilder builder) {
    UriComponentsBuilder uriComponentsBuilder = (UriComponentsBuilder) builder.clone();
    return new MyLinkBuilder(uriComponentsBuilder);
}