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