Package org.shredzone.commons.text
Interface LinkAnalyzer
public interface LinkAnalyzer
Analyzes internal and external links.
- Author:
- Richard "Shred" Körber
-
Method Summary
-
Method Details
-
linkType
Returns the type of a link. The returned string is used as CSS class name for the resulting link. Used e.g. to highlight external links.- Parameters:
url
- URL to be analyzed- Returns:
- CSS class name, or
null
if this is no special link
-
linkUrl
Returns a resolved link.- Parameters:
url
- URL to be analyzed, may be a relative link- Returns:
- Link to be used, never
null
-
imageUrl
Image a resolved image URL.- Parameters:
url
- URL to be analyzed, may be a relative link- Returns:
- Image URL to be used, never
null
-