Esri Geoportal Server
1.0

com.esri.gpt.catalog.arcgis.metadata
Class AGSProcessor

java.lang.Object
  extended by com.esri.gpt.catalog.publication.ResourceProcessor
      extended by com.esri.gpt.catalog.arcgis.metadata.AGSProcessor

public class AGSProcessor
extends ResourceProcessor

Processes resources associated with an ArcGIS server.


Constructor Summary
AGSProcessor(ProcessingContext context)
          Constructs with an associated processing context.
 
Method Summary
 Query createQuery(IterationContext context, Criteria criteria)
          Creates iteration query.
 UsernamePasswordCredentials getCredentials()
          Gets credentials.
 ServiceHandlerFactory getHandlerFactory()
          Gets the ArcGIS server service handler factory.
 Native getNativeResource(IterationContext context)
          Gets native resource.
 AGSTarget getTarget()
          Gets the targeted ArcGIS server and resource.
 boolean interrogate(URL url, String response)
          Interrogates the character response from a target resource URL attempting to determine the REST and SOAP endpoints for an ArcGIS server services catalog.
 void process()
          Invokes processing against the resource.
 void setCredentials(UsernamePasswordCredentials credentials)
          Sets credentials.
 
Methods inherited from class com.esri.gpt.catalog.publication.ResourceProcessor
collectExistingSourceURIs, deleteUnreferencedSourceURIs, getContext, getPublicationMethod, publishMetadata, publishMetadata, setPublicationMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AGSProcessor

public AGSProcessor(ProcessingContext context)
Constructs with an associated processing context.

Parameters:
context - the procesing context
Method Detail

getHandlerFactory

public ServiceHandlerFactory getHandlerFactory()
Gets the ArcGIS server service handler factory.

Returns:
the factory

getTarget

public AGSTarget getTarget()
Gets the targeted ArcGIS server and resource.

Returns:
the target

getCredentials

public UsernamePasswordCredentials getCredentials()
Gets credentials.

Returns:
credentials

setCredentials

public void setCredentials(UsernamePasswordCredentials credentials)
Sets credentials.

Parameters:
credentials - credentials

interrogate

public boolean interrogate(URL url,
                           String response)
                    throws IOException
Interrogates the character response from a target resource URL attempting to determine the REST and SOAP endpoints for an ArcGIS server services catalog.

Parameters:
url - the target URL associated with the resource being interrogated
response - the character based response previously returned from the target URL
Returns:
true if the target was recognized as an ArcGIS server endpoint
Throws:
IOException

process

public void process()
             throws Exception
Invokes processing against the resource.

Specified by:
process in class ResourceProcessor
Throws:
Exception - if an exception occurs

createQuery

public Query createQuery(IterationContext context,
                         Criteria criteria)
Description copied from class: ResourceProcessor
Creates iteration query. Query is being used during synchronization.

Specified by:
createQuery in class ResourceProcessor
Parameters:
context - iteration context
criteria - query criteria or null if no criteria
Returns:
query

getNativeResource

public Native getNativeResource(IterationContext context)
Description copied from class: ResourceProcessor
Gets native resource. Native resource is a publishable resource created just for repository definition. Each native resource is Publishable and each repository has to be able to provide one.

Specified by:
getNativeResource in class ResourceProcessor
Parameters:
context - iteration context
Returns:
native resource.

Esri Geoportal Server
1.0

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