public static final class Uri.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Uri.Builder(java.lang.String uri) |
Uri.Builder(Uri.UriType uriType) |
| Modifier and Type | Method and Description |
|---|---|
Uri |
create()
Returns a new
Uri object from the component names that have been filled in this
Uri.Builder. |
Uri.Builder |
setManager(java.lang.String host,
int port)
Set a manager specification.
|
Uri.Builder |
setProject(java.lang.String project)
The name the project is deployed with.
|
Uri.Builder |
setServer(java.lang.String server)
Set the cluster details.
|
Uri.Builder |
setSSL(boolean ssl)
Set the ssl mode of the uri.
|
Uri.Builder |
setStream(java.lang.String stream)
Set a stream name.
|
Uri.Builder |
setWorkspace(java.lang.String workspace)
Set the workspace name.
|
public Uri.Builder(Uri.UriType uriType)
public Uri.Builder(java.lang.String uri)
public Uri.Builder setServer(java.lang.String server)
server - the cluster detailspublic Uri.Builder setManager(java.lang.String host, int port)
host - host manager is running onport - port manager is listening onpublic Uri.Builder setWorkspace(java.lang.String workspace)
workspace - public Uri.Builder setProject(java.lang.String project)
project - project namepublic Uri.Builder setStream(java.lang.String stream)
stream - stream namepublic Uri.Builder setSSL(boolean ssl)
ssl - true to turn on ssl, false otherwisepublic Uri create()
Uri object from the component names that have been filled in this
Uri.Builder. Depending on the Uri type, all relevant components must have been specified
otherwise an exception is thrown.
Uri.UriType.SERVER - must specify cluster or list of managers
Uri.UriType.WORKSPACE - same as SERVER, in addition must specify workspace name
Uri.UriType.PROJECT - same as WORKSPACE, in addition must specify project name
Uri.UriType.STREAM - same as PROJECT, in addition must specify stream name