| Constructor and Description |
|---|
Builder()
Create builder.
|
| Modifier and Type | Method and Description |
|---|---|
HttpUrl |
build()
Create immutable
HttpUrl instance from current field values. |
HttpUrl.Builder |
withHost(String host)
Update URL Host.
|
HttpUrl.Builder |
withPath(String path)
Update URL Path.
|
HttpUrl.Builder |
withPort(int port)
Update URL Port.
|
HttpUrl.Builder |
withScheme(String scheme)
Update URL Scheme.
|
public HttpUrl.Builder withScheme(String scheme)
scheme - New URL Scheme.public HttpUrl.Builder withHost(String host)
host - New URL Host.public HttpUrl.Builder withPort(int port)
port - New URL Port.public HttpUrl.Builder withPath(String path)
path - New URL Path.Copyright © 2018. All rights reserved.