public final class URIBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
URI |
build() |
URIBuilder |
host(String host) |
static URIBuilder |
http()
Starts a process of URI creation.
|
URIBuilder |
path(String path) |
URIBuilder |
port(int port) |
static URIBuilder |
uri(String uriString)
Gets a new URI builder from an existing URI as string.
|
static URIBuilder |
uri(URI uri)
Gets a new URI builder from an existing URI.
|
public static URIBuilder http()
public static URIBuilder uri(URI uri)
uri - must not be nullpublic static URIBuilder uri(String uriString) throws URISyntaxException
uriString - must not be null or empty;URISyntaxException - if uriString does not match URI syntaxIllegalArgumentException - if uriString is null or emptypublic URIBuilder host(String host)
public URIBuilder port(int port)
public URIBuilder path(String path)
public URI build()
Copyright © 2015. All rights reserved.