Class UriSpec

java.lang.Object
org.apache.curator.x.discovery.UriSpec
All Implemented Interfaces:
Iterable<UriSpec.Part>

public class UriSpec extends Object implements Iterable<UriSpec.Part>

An abstraction for specifying a URI for an instance allowing for variable substitutions.

A Uri spec is a string with optional replacement fields. A replacement field begins with an open brace and ends with a close brace. The value between the braces is the name of the field. e.g. "{scheme}://foo.com:{port}" has two replacement fields named "scheme" and "port". Several pre-defined fields are listed as constants in this class (e.g. FIELD_SCHEME).