Constructor and Description |
---|
UriBuilder() |
@Nonnull public URI build(@Nullable String scheme, @Nullable String userInfo, @Nullable String host, int port, @Nullable String path, @Nullable String query, @Nullable String fragment) throws URISyntaxException
URI
based on the given parameter.scheme
- The connection scheme of the URI.userInfo
- The user information for the URI.host
- The connection host of the URI.port
- The port to connect on. Use -1 to ignore the port.path
- The path to the resource on the host (if the host is given).query
- The query to append to the URI.fragment
- Any remaining fragments that should be appended to the URI.URISyntaxException
- If the given parameter cannot be combined into a valid URI
, see URI.URI(String)
Copyright © 2018 SAP SE. All rights reserved.