@Path(value="/") public class ShortenerResource extends Object
form()) and shortening posted link
(see createLink(String)). Client is shown error-404 page if the provided link is
not valid (see ErrorTemplate and ShortenLink).| Constructor and Description |
|---|
ShortenerResource() |
@GET @Produces(value="text/html") public org.glassfish.jersey.server.mvc.Viewable form()
@POST @Produces(value="text/html") @Consumes(value="application/x-www-form-urlencoded") @ErrorTemplate(name="/error-form") public ShortenedLink createLink(@FormParam(value="link") String link)
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.