TinyUrlService for Sakai

I’ve just checked into contrib (Sakai’s repo of additional cool stuff) a new service for Sakai called TinyUrlService. Given any URL in Sakai you can get a tiny URL for it to send out in emails or just have as a nice link to a page or tool.

It maps to the /tiny/ URL space and implementing it is as simple as injecting the service and making one simple call:
String tinyUrl = tinyUrlService. generateTinyUrl(someUrl);

This returns a URL like:


which when followed will redirect to the original URL just as you’d expect. It takes care of all the necessary checks, for instance if that particular URL already has a tiny URL associated with it, that one is returned instead of making a new one.

You can get it here:


and the Jira for this new service is here:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s