Class UrlValidator
java.lang.Object
org.dlese.dpc.suggest.resource.urlcheck.UrlValidator
Uses the Search Web Service (DDSWS v1.0) to search a repository (or a
collection within a repository) for ADN records having duplicate and/or similar
urls in it's primary or mirrorUrl fields.
The primary method is validate, which takes a referenceUrl, and returns a ValidatorResults instance that stores information about records that contain duplicate and similar urls in the PrimaryURL and MirrorUrl fields.
- Version:
- $Id: UrlValidator.java,v 1.3 2009/03/20 23:34:00 jweather Exp $
- Author:
- ostwald
$Id $
-
Constructor Summary
ConstructorsConstructorDescriptionUrlValidator(String searchServiceBaseUrl, String referenceCollection) Constructor for the UrlValidator objectUrlValidator(SearchServiceClient searchServiceClient, String referenceCollection) Constructor for the UrlValidator object -
Method Summary
Modifier and TypeMethodDescriptionGets the referenceCollection attribute of the UrlValidator objectstatic voidThe main program for the UrlValidator classstatic voidsetDebug(boolean bool) Sets the debug attribute of the UrlValidator classReturn a ValidatorResults instance containing the results of a query to find duplicate and similiar urls in the primaryUrl and mirrorUrl fields of repository records.
-
Constructor Details
-
UrlValidator
Constructor for the UrlValidator object- Parameters:
searchServiceBaseUrl- base url of the Search Service used to validate a urlreferenceCollection- NOT YET DOCUMENTED
-
UrlValidator
Constructor for the UrlValidator object- Parameters:
searchServiceClient- base url of the Search Service used to validate a urlreferenceCollection- NOT YET DOCUMENTED
-
-
Method Details
-
getReferenceCollection
Gets the referenceCollection attribute of the UrlValidator object- Returns:
- The referenceCollection value
-
validate
Return a ValidatorResults instance containing the results of a query to find duplicate and similiar urls in the primaryUrl and mirrorUrl fields of repository records.- Parameters:
referenceUrl- The url to be validated- Returns:
- Description of the Return Value
-
main
The main program for the UrlValidator class- Parameters:
args- The command line arguments- Throws:
Exception- Description of the Exception
-
setDebug
public static void setDebug(boolean bool) Sets the debug attribute of the UrlValidator class- Parameters:
bool- The new debug value
-