-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class Href implements Parcelable
An hypertext reference points to a resource in a Publication.
It is potentially templated, use resolve to get the actual URL.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classHref.Companion
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisTemplatedprivate final List<String>parameters
-
Method Summary
Modifier and Type Method Description final BooleangetIsTemplated()final List<String>getParameters()final Urlresolve(Url base, Map<String, String> parameters)Returns the URL represented by this HREF, resolved to the given base URL. StringtoString()Booleanequals(Object other)IntegerhashCode()-
-
Method Detail
-
getIsTemplated
final Boolean getIsTemplated()
-
getParameters
final List<String> getParameters()
-
resolve
final Url resolve(Url base, Map<String, String> parameters)
Returns the URL represented by this HREF, resolved to the given base URL.
If the HREF is a template, the parameters are used to expand it according to RFC 6570.
-
-
-
-