Esri Geoportal Server
1.0

com.esri.gpt.catalog.harvest.repository
Class HrTestRequest

java.lang.Object
  extended by com.esri.gpt.framework.sql.BaseDao
      extended by com.esri.gpt.framework.request.DaoRequest<RequestDefinition<HrCriteria,HrResult>>
          extended by com.esri.gpt.catalog.harvest.repository.HrRequest
              extended by com.esri.gpt.catalog.harvest.repository.HrTestRequest
All Implemented Interfaces:
IRequest<RequestDefinition<HrCriteria,HrResult>>

public class HrTestRequest
extends HrRequest

Provides connection test request functionality.


Constructor Summary
HrTestRequest(RequestContext requestContext, HrRecord record)
          Create instance of the request.
 
Method Summary
 void execute()
          Executes request.
 HrRecord getRepository()
          Gets repository to update.
 void setRepository(HrRecord repository)
          Sets repository to update.
 
Methods inherited from class com.esri.gpt.catalog.harvest.repository.HrRequest
getActionCriteria, getActionResult, getHarvestingDataTableName, getHarvestingHistoryTableName, getHarvestingJobsCompletedTableName, getHarvestingJobTableName, getHarvestingTableName, getQueryCriteria, getQueryResult
 
Methods inherited from class com.esri.gpt.framework.request.DaoRequest
getRequestDefinition, setRequestDefinition
 
Methods inherited from class com.esri.gpt.framework.sql.BaseDao
appendExpression, appendValueFilter, closeResultSet, closeStatement, getApplicationConfiguration, getRequestContext, logExpression, returnConnection, setRequestContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HrTestRequest

public HrTestRequest(RequestContext requestContext,
                     HrRecord record)
Create instance of the request.

Parameters:
requestContext - request context
record - record to test
Method Detail

getRepository

public HrRecord getRepository()
Gets repository to update.

Returns:
repository to update

setRepository

public void setRepository(HrRecord repository)
Sets repository to update.

Parameters:
repository - repository to update

execute

public void execute()
             throws HRInvalidProtocolException,
                    HRConnectionException
Executes request.

Throws:
HRInvalidProtocolException - when protocol attributes are invalid
HRConnectionException - if connecting remote repository failed

Esri Geoportal Server
1.0

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