|
|
||
|---|---|---|
| .settings | ||
| src | ||
| .classpath | ||
| .gitignore | ||
| .project | ||
| CHANGELOG.md | ||
| CITATION.cff | ||
| FUNDING.md | ||
| LICENSE.md | ||
| README.md | ||
| descriptor.xml | ||
| pom.xml | ||
| profile.xml | ||
README.md
gCube URL Shortener jdk8
This Java library integrates with the Shlink service hosted by D4Science to convert long URLs into shorter, more manageable links that are easier to share, tweet, or email to colleagues.
Built With
Documentation
The UrlShortener Java class provides methods to shorten URLs using the Shlink service, with configuration automatically detected for the current scope. It supports both new and legacy Information System (IS) sources for service discovery, and allows optional tags and custom domains when generating short URLs.
Key Features:
- Read service configuration from resource (
HTTP-URL-Shortener-Shlink) - Fallback to legacy IS if needed
- The configuration requires an API key and domain for authentication with the Shlink service
- Provides methods:
shorten(String),shorten(String, String[]), andisAvailable()for URL shortening and service status checks - Each instance is scope-specific and not thread-safe
- Throws exceptions if resource configuration cannot be read or is not valid
- Gracefully returns the original long URL if shortening fails
Change log
See the URL Shortener Releases
Authors
- Francesco Mangiacrapa (ORCID) Computer Scientist at ISTI-CNR Infrascience Group
How to Cite this Software
Tell people how to cite this software.
- Cite an associated paper?
- Use a specific BibTeX entry for the software?
@Manual{,
title = {gCube URL Shortener},
author = {Francesco Mangiacrapa at ISTI-CNR Infrascience Group},
organization = {ISTI - CNR},
address = {Pisa, Italy},
year = 2025,
note = {A Java library for interacting with D4Science Shlink service to create manageable short links},
url = {http://www.http://gcube-system.org/}
}
- More information in CITATION.cff
License
This project is licensed under the terms specified in the LICENSE.md file
About the gCube Framework
This software is part of the gCubeFramework: an open-source software toolkit used for building and operating Hybrid Data Infrastructures enabling the dynamic deployment of Virtual Research Environments by favouring the realisation of reuse oriented policies.
The projects leading to this software have received funding from a series of European Union programmes see FUNDING.md