Created
March 20, 2014 12:16
-
-
Save spaceCamel/9662474 to your computer and use it in GitHub Desktop.
A Uri interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Uri | |
{ | |
String getScheme() | |
Uri.Hierarchy getHierarchy() | |
Optional<String> getQuery() | |
Optional<String> getFragment() | |
interface Hierarchy | |
{ | |
Optional<Uri.Authority> getAuthority() | |
String getPath() | |
} | |
interface Authority | |
{ | |
Optional<String> getUserinfo() | |
String getHost() | |
Optional<Integer> getPort() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Modeled after this description: https://en.wikipedia.org/wiki/URI_scheme