| 
DLESE Tools  v1.6.0  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.suggest.resource.urlcheck.UrlValidator
public class 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.
$Id $
| Constructor Summary | |
|---|---|
UrlValidator(SearchServiceClient searchServiceClient,
             String referenceCollection)
Constructor for the UrlValidator object  | 
|
UrlValidator(String searchServiceBaseUrl,
             String referenceCollection)
Constructor for the UrlValidator object  | 
|
| Method Summary | |
|---|---|
 String | 
getReferenceCollection()
Gets the referenceCollection attribute of the UrlValidator object  | 
static void | 
main(String[] args)
The main program for the UrlValidator class  | 
static void | 
setDebug(boolean bool)
Sets the debug attribute of the UrlValidator class  | 
 ValidatorResults | 
validate(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.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public UrlValidator(String searchServiceBaseUrl,
                    String referenceCollection)
searchServiceBaseUrl - base url of the Search Service used to
      validate a urlreferenceCollection - NOT YET DOCUMENTED
public UrlValidator(SearchServiceClient searchServiceClient,
                    String referenceCollection)
searchServiceClient - base url of the Search Service used to validate
      a urlreferenceCollection - NOT YET DOCUMENTED| Method Detail | 
|---|
public String getReferenceCollection()
public ValidatorResults validate(String referenceUrl)
referenceUrl - The url to be validated
public static void main(String[] args)
                 throws Exception
args - The command line arguments
Exception - Description of the Exceptionpublic static void setDebug(boolean bool)
bool - The new debug value
  | 
DLESE Tools  v1.6.0  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||