Package org.gcube.application.shlink
Class ShlinkRequest
java.lang.Object
org.gcube.application.shlink.ShlinkRequest
Builder class for creating ShlinkShortener requests with fluent interface.
This class represents a request to create a short URL using the Shlink API service.
It automatically extracts tags from the URL and combines them with additional tags if provided.
Usage example:
ShlinkRequest request = new ShlinkRequest.Builder()
.shlinkBaseUrl("https://shlink.example.com")
.shlinkAPIKey("your-api-key")
.longUrl("https://example.com/very/long/url")
.domain("short.example.com")
.additionalTags(new String[]{"tag1", "tag2"})
.findIfExists(true)
.build();
- Author:
- Francesco Mangiacrapa
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for creating ShlinkRequest instances with fluent interface. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ShlinkRequest
public ShlinkRequest()
-
-
Method Details
-
getShlinkBaseUrl
-
getShlinkAPIKey
-
getLongUrl
-
getDomain
-
getAdditionalTags
-
isFindIfExists
public boolean isFindIfExists()
-