java.lang.Object
swim.uri.Uri
- All Implemented Interfaces:
Comparable<Uri>
,Debug
,Display
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final UriAuthority
protected final UriFragment
protected final UriPath
protected final UriQuery
protected final UriScheme
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Uri
(UriScheme scheme, UriAuthority authority, UriPath path, UriQuery query, UriFragment fragment) -
Method Summary
Modifier and TypeMethodDescriptionappendedPath
(String component) appendedPath
(String... components) appendedPath
(Collection<? extends String> components) appendedQuery
(String value) appendedQuery
(String... keyValuePairs) appendedQuery
(String key, String value) appendedQuery
(Map<? extends String, ? extends String> params) appendedSegment
(String segment) final UriAuthority
authority
(UriAuthority authority) final String
authorityPart
(String authority) final Uri
base()
final UriPath
basePath()
final Uri
body()
final UriPath
bodyPath()
final int
protected Uri
copy
(UriScheme scheme, UriAuthority authority, UriPath path, UriQuery query, UriFragment fragment) static Uri
static Uri
static Uri
create
(UriPath path, UriFragment fragment) static Uri
static Uri
create
(UriPath path, UriQuery query, UriFragment fragment) static Uri
create
(UriScheme scheme, UriAuthority authority) static Uri
create
(UriScheme scheme, UriAuthority authority, UriPath path) static Uri
create
(UriScheme scheme, UriAuthority authority, UriPath path, UriFragment fragment) static Uri
create
(UriScheme scheme, UriAuthority authority, UriPath path, UriQuery query) static Uri
create
(UriScheme scheme, UriAuthority authority, UriPath path, UriQuery query, UriFragment fragment) <T> Output<T>
Writes a developer readable, debug-formatted string representation of this object tooutput
.<T> Output<T>
Writes a human readable, display-formatted string representation of this object tooutput
.static Uri
empty()
endpoint()
final boolean
form()
final UriFragment
fragment()
fragment
(UriFragment fragment) final String
fragmentIdentifier
(String fragment) final String
fragmentPart
(String fragment) final int
hashCode()
final UriHost
host()
final String
final String
hostIPv4()
final String
hostIPv6()
final String
hostName()
final String
hostPart()
boolean
final boolean
final boolean
isEmpty()
boolean
isRelativeTo
(Uri absolute) protected UriPath
final Uri
parent()
final UriPath
static Uri
password()
final UriPath
path()
final String
pathName()
final String
pathPart()
final UriPort
port()
final int
portNumber
(int number) final String
portPart()
prependedPath
(String component) prependedPath
(String... components) prependedPath
(Collection<? extends String> components) prependedQuery
(String value) prependedQuery
(String... keyValuePairs) prependedQuery
(String key, String value) prependedQuery
(Map<? extends String, ? extends String> params) prependedSegment
(String segment) final UriQuery
query()
final String
removedQuery
(String key) final UriScheme
scheme()
final String
schemeName
(String scheme) final String
schemePart
(String scheme) static UriParser
final String
toString()
updatedQuery
(String key, String value) final UriUser
user()
username()
final String
userPart()
-
Field Details
-
scheme
-
authority
-
path
-
query
-
fragment
-
-
Constructor Details
-
Uri
protected Uri(UriScheme scheme, UriAuthority authority, UriPath path, UriQuery query, UriFragment fragment)
-
-
Method Details
-
isDefined
public final boolean isDefined() -
isEmpty
public final boolean isEmpty() -
scheme
-
scheme
-
schemePart
-
schemePart
-
schemeName
-
schemeName
-
authority
-
authority
-
authorityPart
-
authorityPart
-
user
-
user
-
userPart
-
userPart
-
username
-
username
-
username
-
password
-
password
-
host
-
host
-
hostPart
-
hostPart
-
hostAddress
-
hostName
-
hostName
-
hostIPv4
-
hostIPv4
-
hostIPv6
-
hostIPv6
-
port
-
port
-
portPart
-
portPart
-
portNumber
public final int portNumber() -
portNumber
-
path
-
path
-
path
-
pathPart
-
pathPart
-
pathName
-
pathName
-
parentPath
-
basePath
-
bodyPath
-
parent
-
base
-
body
-
appendedPath
-
appendedPath
-
appendedPath
-
appendedSlash
-
appendedSegment
-
prependedPath
-
prependedPath
-
prependedPath
-
prependedSlash
-
prependedSegment
-
query
-
query
-
query
-
queryPart
-
queryPart
-
updatedQuery
-
removedQuery
-
appendedQuery
-
appendedQuery
-
appendedQuery
-
appendedQuery
-
prependedQuery
-
prependedQuery
-
prependedQuery
-
prependedQuery
-
fragment
-
fragment
-
fragmentPart
-
fragmentPart
-
fragmentIdentifier
-
fragmentIdentifier
-
endpoint
-
isRelativeTo
-
isChildOf
-
resolve
-
merge
-
unresolve
-
copy
protected Uri copy(UriScheme scheme, UriAuthority authority, UriPath path, UriQuery query, UriFragment fragment) -
compareTo
- Specified by:
compareTo
in interfaceComparable<Uri>
-
equals
-
hashCode
public final int hashCode() -
debug
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
. -
display
Description copied from interface:Display
Writes a human readable, display-formatted string representation of this object tooutput
. -
toString
-
empty
-
create
public static Uri create(UriScheme scheme, UriAuthority authority, UriPath path, UriQuery query, UriFragment fragment) -
create
-
create
public static Uri create(UriScheme scheme, UriAuthority authority, UriPath path, UriFragment fragment) -
create
-
create
-
create
-
create
-
create
-
create
-
create
-
standardParser
-
parse
-
form
-