| |
|
| java.lang.Object nl.hippo.cms.brokenlinkchecker.LinkClassifier
LinkClassifier | public class LinkClassifier (Code) | |
Utility class for classification of link URLs.
|
Method Summary | |
public static boolean | isHttpLink(String link)
Determine if a link points to an insecure website.
Parameters: link - the link to check. | public static boolean | isHttpsLink(String link)
Determine if a link points to a secure website.
Parameters: link - the link to check. | public static boolean | isInternalLink(String link)
Determine if a link is a link internal to the site.
Parameters: link - the link to check. |
HTTPS_PROTOCOL_PREFIX | final static String HTTPS_PROTOCOL_PREFIX(Code) | |
The prefix for external links that point to secure sites.
|
HTTP_PROTOCOL_PREFIX | final static String HTTP_PROTOCOL_PREFIX(Code) | |
The prefix for external links that point to insecure sites.
|
INTERNAL_LINK_PREFIX | final static String INTERNAL_LINK_PREFIX(Code) | |
The prefix for internal links.
|
isHttpLink | public static boolean isHttpLink(String link)(Code) | |
Determine if a link points to an insecure website.
Parameters: link - the link to check. true if the link points to an insecurewebsite, false otherwise. |
isHttpsLink | public static boolean isHttpsLink(String link)(Code) | |
Determine if a link points to a secure website.
Parameters: link - the link to check. true if the link points to a secure website,false otherwise. |
isInternalLink | public static boolean isInternalLink(String link)(Code) | |
Determine if a link is a link internal to the site.
Parameters: link - the link to check. true if the link is internal to the site,false otherwise. |
|
|
|