public class UrlValidator
extends java.lang.Object
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.
$Id $
Constructor and Description |
---|
UrlValidator(SearchServiceClient searchServiceClient,
java.lang.String referenceCollection)
Constructor for the UrlValidator object
|
UrlValidator(java.lang.String searchServiceBaseUrl,
java.lang.String referenceCollection)
Constructor for the UrlValidator object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getReferenceCollection()
Gets the referenceCollection attribute of the UrlValidator object
|
static void |
main(java.lang.String[] args)
The main program for the UrlValidator class
|
static void |
setDebug(boolean bool)
Sets the debug attribute of the UrlValidator class
|
ValidatorResults |
validate(java.lang.String referenceUrl)
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.
|
public UrlValidator(java.lang.String searchServiceBaseUrl, java.lang.String referenceCollection)
searchServiceBaseUrl
- base url of the Search Service used to
validate a urlreferenceCollection
- NOT YET DOCUMENTEDpublic UrlValidator(SearchServiceClient searchServiceClient, java.lang.String referenceCollection)
searchServiceClient
- base url of the Search Service used to validate
a urlreferenceCollection
- NOT YET DOCUMENTEDpublic java.lang.String getReferenceCollection()
public ValidatorResults validate(java.lang.String referenceUrl)
referenceUrl
- The url to be validatedpublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line argumentsjava.lang.Exception
- Description of the Exceptionpublic static void setDebug(boolean bool)
bool
- The new debug value