//urlshortener/app.cash.tempest.urlshortener.java/RealUrlShortener
RealUrlShortener¶
[jvm]\ open class RealUrlShortener : UrlShortener
Constructors¶
RealUrlShortener | [jvm] constructor(table: AliasTable) |
Functions¶
Name | Summary |
---|---|
redirect | [jvm] @Nullable open fun redirect(shortUrl: String): String Redirects shortUrl to its destination. |
shorten | [jvm] open fun shorten(shortUrl: String, destinationUrl: String): Boolean Creates a custom alias from shortUrl to destinationUrl . |