de.urlenco
Class UrlRedirect

java.lang.Object
  extended by de.urlenco.UrlRedirect

public class UrlRedirect
extends java.lang.Object


Constructor Summary
UrlRedirect()
           
 
Method Summary
static java.lang.String decodeUrl(java.lang.String url)
          Returns the original URL that was used to create a short version through http://urlenco.de
static java.lang.String encodeUrl(java.lang.String url)
          Uses http://urlenco.de service to create a short version of the specified URL
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlRedirect

public UrlRedirect()
Method Detail

encodeUrl

public static java.lang.String encodeUrl(java.lang.String url)
Uses http://urlenco.de service to create a short version of the specified URL

Parameters:
url - URL to encode
Returns:
URL that will redirect to the specified address

decodeUrl

public static java.lang.String decodeUrl(java.lang.String url)
Returns the original URL that was used to create a short version through http://urlenco.de

Parameters:
url - URL to decode
Returns:
Original URL