public class HttpUrl extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpUrl.Builder
Builder used to create
HttpUrl instances. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getHost()
Get URL Host.
|
String |
getPath()
Get URL Path.
|
int |
getPort()
Get URL Port.
|
String |
getScheme()
Get URL Scheme.
|
int |
hashCode() |
static HttpUrl |
parse(String endpoint)
Parse URL string to create new
HttpUrl instance. |
String |
toString() |
URI |
toURI()
Create new
URI from URL fields. |
public static HttpUrl parse(String endpoint)
HttpUrl instance.endpoint - URL value.HttpUrl instance.IllegalArgumentException - If URL is malformed.public int getPort()
portpublic URI toURI()
URI from URL fields.IllegalArgumentException - If URI cannot be built because of URISyntaxException.Copyright © 2019. All rights reserved.