Class DefaultUrlShortener
A UrlShortener
which does return the url without any changes.
public class DefaultUrlShortener
extends Object
implements UrlShortener
java.lang.Object ← io.justtrack.DefaultUrlShortener
All Implemented Interfaces
UrlShortener
Constructors
DefaultUrlShortener
public DefaultUrlShortener()
Methods
shorten
@NonNull
public Future<String> shorten(@NonNull String url)
Description copied from interface: UrlShortener
Shorten a URL.
Parameters
Name | Description |
---|---|
url | The original URL. |
Returns
A future resolving to a shorter URL.
Specified by
shorten
in interface UrlShortener