ArcGIS Server Geoportal extension
10

com.esri.gpt.catalog.arcims
Class VerifyDocumentRequest

java.lang.Object
  extended by com.esri.gpt.catalog.arcims.ImsRequest
      extended by com.esri.gpt.catalog.arcims.HarvestRequest
          extended by com.esri.gpt.catalog.arcims.VerifyDocumentRequest

public class VerifyDocumentRequest
extends HarvestRequest

Verify document request.


Field Summary
 
Fields inherited from class com.esri.gpt.catalog.arcims.ImsRequest
ACTION_STATUS_ERROR, ACTION_STATUS_NONE, ACTION_STATUS_OK, ACTION_STATUS_REPLACED, ACTION_STATUS_UNKNOWN
 
Constructor Summary
VerifyDocumentRequest()
          Creates instance of the request.
VerifyDocumentRequest(UsernamePasswordCredentials credentials)
          Creates instance of the request.
 
Method Summary
 boolean verify(String sourceUri)
          Verifies document presence.
 
Methods inherited from class com.esri.gpt.catalog.arcims.ImsRequest
executeRequest, executeRequest, getActionStatus, getAxlRequest, getAxlResponse, getCredentials, getService, makeClient, onEndSaxElement, onStartSaxElement, setActionStatus, setAxlRequest, setAxlResponse, setCredentials, setService, wasActionOK
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerifyDocumentRequest

public VerifyDocumentRequest()
Creates instance of the request.


VerifyDocumentRequest

public VerifyDocumentRequest(UsernamePasswordCredentials credentials)
Creates instance of the request.

Parameters:
credentials - credentials
Method Detail

verify

public boolean verify(String sourceUri)
               throws ImsServiceException
Verifies document presence.

Parameters:
sourceUri - source URI of the document
Returns:
true if document still exists on the harvest repository
Throws:
ImsServiceException - if verification failed

ArcGIS Server Geoportal extension
10

Copyright 2010 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.