Esri Geoportal Server
1.0

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

java.lang.Object
  extended by com.esri.gpt.catalog.arcgis.metadata.ServiceHandler
      extended by com.esri.gpt.catalog.arcgis.metadata.GeoDataServerHandler

public class GeoDataServerHandler
extends ServiceHandler

Handles the collection of metadata for an ArcGIS geodatabase service (GeoDataServer).


Field Summary
 
Fields inherited from class com.esri.gpt.catalog.arcgis.metadata.ServiceHandler
http
 
Constructor Summary
GeoDataServerHandler()
          Default constructor.
 
Method Summary
 void appendRecord(Collection<Resource> records, ServiceHandlerFactory factory, ServiceInfo serviceInfo, boolean isNative)
          Creates new record instance (or more record instances) for given ServiceInfo and appends to the collection.
 void collectMetadata(ServiceHandlerFactory handlerFactory, ServiceInfo serviceInfo)
          Collect metadata associated with a service.
 void publishMetadata(AGSProcessor processor, ServiceInfo serviceInfo)
          Publishes metadata associated with a service.
 
Methods inherited from class com.esri.gpt.catalog.arcgis.metadata.ServiceHandler
collectMetadata, collectParentMetadata, collectParentMetadata, getCredentials, setCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoDataServerHandler

public GeoDataServerHandler()
Default constructor.

Method Detail

collectMetadata

public void collectMetadata(ServiceHandlerFactory handlerFactory,
                            ServiceInfo serviceInfo)
                     throws Exception
Collect metadata associated with a service.

Specified by:
collectMetadata in class ServiceHandler
Parameters:
handlerFactory - handler factory
serviceInfo - the active service information
Throws:
Exception - if an exception occurs

publishMetadata

public void publishMetadata(AGSProcessor processor,
                            ServiceInfo serviceInfo)
                     throws Exception
Publishes metadata associated with a service.
A record is published for the GeoDataServer itself.
Any data element containing an XML will also be published, the SORCEURI for the element will be: [geodataserver-rest-endpoint]/element.name

Overrides:
publishMetadata in class ServiceHandler
Parameters:
processor - the ArcGIS Server service processor
serviceInfo - the active service information
Throws:
Exception - if an exception occurs

appendRecord

public void appendRecord(Collection<Resource> records,
                         ServiceHandlerFactory factory,
                         ServiceInfo serviceInfo,
                         boolean isNative)
                  throws Exception
Description copied from class: ServiceHandler
Creates new record instance (or more record instances) for given ServiceInfo and appends to the collection.

Overrides:
appendRecord in class ServiceHandler
Parameters:
records - collection of records
factory - handler factory
serviceInfo - service info
isNative - true to append native record
Throws:
Exception - if an exception occurs

Esri Geoportal Server
1.0

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