Skip to main content
Version: SDK 5.0.x

Class DefaultUrlShortener

A UrlShortener which does return the url without any changes.

public class DefaultUrlShortener
extends Object
implements UrlShortener
Inheritance

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

NameDescription
urlThe original URL.

Returns

A future resolving to a shorter URL.

Specified by

shorten in interface UrlShortener