Class Hyperlink


public class Hyperlink extends A
Defines a simple hyperlink class.
Examples:

@Rest public class MyRest extends BasicRestServlet { // Produces <a href="/foo">bar</a> @RestGet public Hyperlink a01() { return new Hyperlink("foo", "bar"); } // Produces <ul><li><a href="/foo">bar</a></li></ul> @RestGet public Hyperlink[] a02() { return new Hyperlink[]{a01()}; } // Produces <ul><li><a href="/foo">bar</a></li></ul> @RestGet public Collection<Hyperlink> a03() { return Arrays.asList(a02()); } }

See Also: