URL shortening using tinyURL- An API for Java / JSP / Servlet - Unofficial API

UPDATED: 19 October 2011
Tiny URL Logo

Are you sick of posting URLs in emails only to have it break when sent causing the recipient to have to cut and paste it back together? API will create a tiny URL that will not break in email postings and never expires.

This is an unOfficial tinyURL Java API for link shortening.

Turn this URL:
http://www.amazon.com/Kindle-Wireless-Reading-Display-Globa lly/dp/B003FSUDM4/ref=amb_link_353259562_2?pf_rd_m=ATVPDKIK X0DER&pf_rd_s=center-10&pf_rd_r=11EYKTN682A79T370AM3&pf_rd_ t=201&pf_rd_p=1270985982&pf_rd_i=B002Y27P3M

into this TinyURL:

Which one would you rather cut and paste into your browser? That's the power of TinyURL!

Terms of use
TinyURL was created as a free service to make posting long URLs easier, and may only be used for actual URLs. Using it for spamming or illegal purposes is forbidden and any such use will result in the TinyURL being disabled and you may be reported to all ISPs involved and to the proper governmental agencies. This service is provided without warranty of any kind.

For more information visit www.tinyurl.com
import javaQuery.j2ee.tinyURL;

public class tinyURLTest {
    public static void main(String[] args) {
        tinyURL tU = new tinyURL();
        String getLink = tU.getTinyURL("www.javaquery.com");
        System.out.println("Short Link:"+getLink);
//Short Link:http://tinyurl.com/6kuhl6j

1 comment :

  1. I'm impressed, I have to admit. Seldom do I encounter a blog that's both
    educative and entertaining, and without a doubt, you have hit the nail on the head.

    The problem is something which too few folks are speaking intelligently about.

    Now i'm very happy that I stumbled across this during
    my search for something concerning this.