Package com.day.cq.rewriter.linkchecker
Interface Link
-
public interface LinkEncapsulates all information of a link.- Since:
- 5.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetHref()Returns the href as passed in the constructorjava.net.URIgetRelUri()Returns the context relative URI ornulljava.net.URIgetUri()Returns the URI ornull.LinkValiditygetValidity()Returns the link validity.booleanisContextRelative()Checks if this is a context relative link.booleanisSpecial()Checks if this is a special link (like mailto: javascript: etc)
-
-
-
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 ornull.- Returns:
- the URI
-
getRelUri
java.net.URI getRelUri()
Returns the context relative URI ornull- 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:
trueif this is a special link
-
isContextRelative
boolean isContextRelative()
Checks if this is a context relative link.- Returns:
trueif this is a context relative link.
-
-