-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class AbsoluteUrl extends Url
Represents an absolute Uniform Resource Locator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAbsoluteUrl.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Url.Schemeschemeprivate final BooleanisHttpprivate final BooleanisFileprivate final BooleanisContentprivate final Stringpathprivate final Stringfilenameprivate final FileExtensionextensionprivate final Url.Queryqueryprivate final Stringfragment
-
Method Summary
Modifier and Type Method Description final Url.SchemegetScheme()final BooleangetIsHttp()final BooleangetIsFile()final BooleangetIsContent()final StringgetPath()final StringgetFilename()final FileExtensiongetExtension()final Url.QuerygetQuery()final StringgetFragment()AbsoluteUrlresolve(Url url)Resolves the given url to this URL. final FiletoFile()Converts the URL to a File, if it's a file URL. -
Methods inherited from class org.readium.r2.shared.util.AbsoluteUrl
equals, hashCode, relativize, removeFragment, removeQuery, toString -
Methods inherited from class org.readium.r2.shared.util.Url
describeContents, writeToParcel -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getScheme
final Url.Scheme getScheme()
-
getIsContent
final Boolean getIsContent()
-
getFilename
final String getFilename()
-
getExtension
final FileExtension getExtension()
-
getFragment
final String getFragment()
-
resolve
AbsoluteUrl resolve(Url url)
Resolves the given url to this URL.
For example: this = "http://example.com/foo/" url = "bar/baz" result = "http://example.com/foo/bar/baz"
-
-
-
-