public final class LazyUri extends java.lang.Object implements Uri
Uri.
To validate the entire URI you need to call fragment(), otherwise the URI is only parsed and validated as far as necessary.
| Constructor and Description |
|---|
LazyUri(UriEncoded uri)
|
| Modifier and Type | Method and Description |
|---|---|
OptionalLazyAuthority |
authority()
Returns the
Optional Authority of the URI reference. |
org.dmfs.optional.Optional<? extends Fragment> |
fragment()
Returns the
Optional Fragment of the URI reference. |
boolean |
isAbsolute()
Returns whether this URI reference is absolute, i.e. a URI.
|
boolean |
isHierarchical()
Returns whether this URI reference is hierarchical.
|
LazyPath |
path()
Returns the
Path of this URI reference. |
OptionalLazyQuery |
query()
Returns the
Optional Query of the URI reference. |
org.dmfs.optional.Optional<? extends Scheme> |
scheme()
Returns the
Optional Scheme of the URI reference. |
public LazyUri(UriEncoded uri)
uri - The properly UriEncoded uri.public org.dmfs.optional.Optional<? extends Scheme> scheme()
UriOptional Scheme of the URI reference.public OptionalLazyAuthority authority()
UriOptional Authority of the URI reference.public LazyPath path()
UriPath of this URI reference.public OptionalLazyQuery query()
UriOptional Query of the URI reference.public org.dmfs.optional.Optional<? extends Fragment> fragment()
UriOptional Fragment of the URI reference.public boolean isHierarchical()
UriisHierarchical in interface Uritrue if the URI is hierarchical, false otherwise.public boolean isAbsolute()
UriisAbsolute in interface Uritrue if the URI is absolute, false otherwise.