Interface Link


  • public interface Link
    Encapsulates all information of a link.
    Since:
    5.3
    • Method Detail

      • getHref

        java.lang.String getHref()
        Returns the href as passed in the constructor
        Returns:
        the href.
      • getUri

        java.net.URI getUri()
        Returns the URI or null.
        Returns:
        the URI
      • getRelUri

        java.net.URI getRelUri()
        Returns the context relative URI or null
        Returns:
        the URI
      • getValidity

        LinkValidity getValidity()
        Returns the link validity.
        Returns:
        the validity
      • isSpecial

        boolean isSpecial()
        Checks if this is a special link (like mailto: javascript: etc)
        Returns:
        true if this is a special link
      • isContextRelative

        boolean isContextRelative()
        Checks if this is a context relative link.
        Returns:
        true if this is a context relative link.