Package com.day.cq.rewriter.linkchecker
Interface Link
public interface Link
Encapsulates all information of a link.
- Since:
- 5.3
-
Method Summary
Modifier and TypeMethodDescriptiongetHref()Returns the href as passed in the constructorReturns the context relative URI ornullgetUri()Returns the URI ornull.Returns the link validity.booleanChecks if this is a context relative link.booleanChecks if this is a special link (like mailto: javascript: etc)
-
Method Details
-
getHref
String getHref()Returns the href as passed in the constructor- Returns:
- the href.
-
getUri
URI getUri()Returns the URI ornull.- Returns:
- the URI
-
getRelUri
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.
-