public interface ExternalLinkChecker
Modifier and Type | Method and Description |
---|---|
int |
check(java.lang.String uri)
Checks the given uri.
|
LinkInfo |
checkLink(java.lang.String link,
boolean force)
Checks the given link store in the repository and checks it for validity.
|
void |
checkLinks()
Walks through the links stored in the repository and checks them for validity
if necessary or removes them from the repository if they are no longer used.
|
int check(java.lang.String uri) throws java.net.UnknownServiceException, java.net.URISyntaxException, java.net.ConnectException, java.net.NoRouteToHostException, java.net.UnknownHostException, java.io.IOException
uri
- the uri to checkjava.net.UnknownServiceException
- if the protocol is not supportedjava.net.URISyntaxException
- if the uri is malformedjava.net.ConnectException
- if the connect failedjava.net.NoRouteToHostException
- if there is no route to the hostjava.net.UnknownHostException
- if the host is unknownjava.io.IOException
- if a general I/O error occuredvoid checkLinks()
LinkInfo checkLink(java.lang.String link, boolean force)
link
- link to checkforce
- if true
force a re-checknull
if it was removed.Copyright © 2010 - 2020 Adobe. All Rights Reserved