- java.lang.Object
-
- swim.uri.Uri
-
- All Implemented Interfaces:
Comparable<Uri>
,Debug
,Display
public class Uri extends Object implements Comparable<Uri>, Debug, Display
-
-
Field Summary
Fields Modifier and Type Field Description protected UriAuthority
authority
protected UriFragment
fragment
protected UriPath
path
protected UriQuery
query
protected UriScheme
scheme
-
Constructor Summary
Constructors Modifier Constructor Description protected
Uri(UriScheme scheme, UriAuthority authority, UriPath path, UriQuery query, UriFragment fragment)
-
Method Summary
-
-
-
Field Detail
-
scheme
protected final UriScheme scheme
-
authority
protected final UriAuthority authority
-
path
protected final UriPath path
-
query
protected final UriQuery query
-
fragment
protected final UriFragment fragment
-
-
Constructor Detail
-
Uri
protected Uri(UriScheme scheme, UriAuthority authority, UriPath path, UriQuery query, UriFragment fragment)
-
-
Method Detail
-
isDefined
public final boolean isDefined()
-
isEmpty
public final boolean isEmpty()
-
scheme
public final UriScheme scheme()
-
schemePart
public final String schemePart()
-
schemeName
public final String schemeName()
-
authority
public final UriAuthority authority()
-
authority
public Uri authority(UriAuthority authority)
-
authorityPart
public final String authorityPart()
-
user
public final UriUser user()
-
userPart
public final String userPart()
-
username
public String username()
-
password
public String password()
-
host
public final UriHost host()
-
hostPart
public final String hostPart()
-
hostAddress
public final String hostAddress()
-
hostName
public final String hostName()
-
hostIPv4
public final String hostIPv4()
-
hostIPv6
public final String hostIPv6()
-
port
public final UriPort port()
-
portPart
public final String portPart()
-
portNumber
public final int portNumber()
-
portNumber
public Uri portNumber(int number)
-
path
public final UriPath path()
-
pathPart
public final String pathPart()
-
pathName
public final String pathName()
-
parentPath
public final UriPath parentPath()
-
basePath
public final UriPath basePath()
-
bodyPath
public final UriPath bodyPath()
-
parent
public final Uri parent()
-
base
public final Uri base()
-
body
public final Uri body()
-
appendedPath
public Uri appendedPath(Collection<? extends String> components)
-
appendedSlash
public Uri appendedSlash()
-
prependedPath
public Uri prependedPath(Collection<? extends String> components)
-
prependedSlash
public Uri prependedSlash()
-
query
public final UriQuery query()
-
queryPart
public final String queryPart()
-
fragment
public final UriFragment fragment()
-
fragment
public Uri fragment(UriFragment fragment)
-
fragmentPart
public final String fragmentPart()
-
fragmentIdentifier
public final String fragmentIdentifier()
-
endpoint
public Uri endpoint()
-
isRelativeTo
public boolean isRelativeTo(Uri absolute)
-
isChildOf
public boolean isChildOf(Uri absolute)
-
copy
protected Uri copy(UriScheme scheme, UriAuthority authority, UriPath path, UriQuery query, UriFragment fragment)
-
compareTo
public final int compareTo(Uri that)
- Specified by:
compareTo
in interfaceComparable<Uri>
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
display
public <T> Output<T> display(Output<T> output)
Description copied from interface:Display
Writes a human readable, display-formatted string representation of this object tooutput
.
-
empty
public static Uri empty()
-
create
public static Uri create(UriScheme scheme, UriAuthority authority, UriPath path, UriQuery query, UriFragment fragment)
-
create
public static Uri create(UriScheme scheme, UriAuthority authority, UriPath path, UriQuery query)
-
create
public static Uri create(UriScheme scheme, UriAuthority authority, UriPath path, UriFragment fragment)
-
create
public static Uri create(UriScheme scheme, UriAuthority authority, UriPath path)
-
create
public static Uri create(UriScheme scheme, UriAuthority authority)
-
create
public static Uri create(UriPath path, UriQuery query, UriFragment fragment)
-
create
public static Uri create(UriPath path, UriFragment fragment)
-
standardParser
public static UriParser standardParser()
-
-