org.glassfish.jersey.examples.shortener.webapp.service
Class ShortenerService

java.lang.Object
  extended by org.glassfish.jersey.examples.shortener.webapp.service.ShortenerService

public final class ShortenerService
extends Object

Service responsible for shortening links and storing shortened links in memory.

Author:
Michal Gajdos (michal.gajdos at oracle.com)

Constructor Summary
ShortenerService()
           
 
Method Summary
static boolean containsLink(ShortenedLink link)
           
static ShortenedLink getLink(String link)
           
static ShortenedLink shortenLink(URI baseUri, String link)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortenerService

public ShortenerService()
Method Detail

shortenLink

public static ShortenedLink shortenLink(URI baseUri,
                                        String link)

getLink

public static ShortenedLink getLink(String link)

containsLink

public static boolean containsLink(ShortenedLink link)


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.