org.glassfish.jersey.examples.shortener.webapp.resource
Class PermanentLinkResource
java.lang.Object
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PermanentLinkResource
public PermanentLinkResource()
getOriginal
public URI getOriginal()
getShortened
public URI getShortened()
getPermanent
public URI getPermanent()
Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.