Class HttpUrl
java.lang.Object
com.github.mjeanroy.junit.servers.client.HttpUrl
URL object without:
- Authority part.
- Query string.
- Fragment.
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
parse
Parse URL string to create newHttpUrl
instance.- Parameters:
endpoint
- URL value.- Returns:
- The final
HttpUrl
instance. - Throws:
IllegalArgumentException
- If URL is malformed.
-
getScheme
Get URL Scheme.- Returns:
- URL Scheme.
- See Also:
-
scheme
-
getHost
Get URL Host.- Returns:
- URL Host.
- See Also:
-
host
-
getPort
public int getPort()Get URL Port.- Returns:
- URL Port.
- See Also:
-
port
-
getPath
Get URL Path.- Returns:
- URL Path.
- See Also:
-
path
-
toURI
Create newURI
from URL fields.- Returns:
- URI instance.
- Throws:
IllegalArgumentException
- IfURI
cannot be built because ofURISyntaxException
.
-
toString
-
equals
-
hashCode
public int hashCode()
-