org.glassfish.jersey.examples.shortener.webapp.resource
Class PermanentLinkResource

java.lang.Object
  extended by org.glassfish.jersey.examples.shortener.webapp.resource.PermanentLinkResource

@Path(value="i/{link}")
@Produces(value="text/html")
@ErrorTemplate(name="/error-404")
public class PermanentLinkResource
extends Object

Resource representing permanent page to a shortened link. Client is shown error-404 page if the provided link is not valid (see ErrorTemplate and ValidShortenedLink).

Implemented as implicit viewable.

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

Constructor Summary
PermanentLinkResource()
           
 
Method Summary
 URI getOriginal()
           
 URI getPermanent()
           
 URI getShortened()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermanentLinkResource

public PermanentLinkResource()
Method Detail

getOriginal

public URI getOriginal()

getShortened

public URI getShortened()

getPermanent

public URI getPermanent()


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