Esri Geoportal Server
1.0

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

java.lang.Object
  extended by com.esri.gpt.catalog.arcgis.metadata.ServiceHandler
Direct Known Subclasses:
FeatureServerHandler, GeocodeServerHandler, GeoDataServerHandler, GeometryServerHandler, GlobeServerHandler, GPServerHandler, ImageServerHandler, MapServerHandler, MobileServerHandler, NAServerHandler, OGCServerHandler, SearchServerHandler

public abstract class ServiceHandler
extends Object

Super-class associated with the collection and publication of metadata for an ArcGIS Server service.


Field Summary
protected static HttpClientRequest http
           
 
Constructor Summary
ServiceHandler()
          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(AGSProcessor processor, ServiceInfo serviceInfo)
          Collect metadata associated with a service.
abstract  void collectMetadata(ServiceHandlerFactory handlerFactory, ServiceInfo serviceInfo)
          Collect metadata associated with a service.
 void collectParentMetadata(AGSProcessor processor, ServiceInfo serviceInfo)
          Collect metadata associated with the parent of a service.
 void collectParentMetadata(ServiceHandlerFactory handlerFacory, ServiceInfo serviceInfo)
          Collect metadata associated with the parent of a service.
 UsernamePasswordCredentials getCredentials()
          Gets credentials.
 void publishMetadata(AGSProcessor processor, ServiceInfo serviceInfo)
          Publishes metadata associated with a service.
 void setCredentials(UsernamePasswordCredentials credentials)
          Sets credentials.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

http

protected static final HttpClientRequest http
Constructor Detail

ServiceHandler

public ServiceHandler()
Default constructor.

Method Detail

getCredentials

public UsernamePasswordCredentials getCredentials()
Gets credentials.

Returns:
credentials

setCredentials

public void setCredentials(UsernamePasswordCredentials credentials)
Sets credentials.

Parameters:
credentials - credentials

collectParentMetadata

public void collectParentMetadata(AGSProcessor processor,
                                  ServiceInfo serviceInfo)
                           throws Exception
Collect metadata associated with the parent of a service.

Parameters:
processor - the ArcGIS Server service processor
serviceInfo - the active service information
Throws:
Exception - if an exception occurs

collectParentMetadata

public void collectParentMetadata(ServiceHandlerFactory handlerFacory,
                                  ServiceInfo serviceInfo)
                           throws Exception
Collect metadata associated with the parent of a service.

Parameters:
handlerFacory - handler factory
serviceInfo - the active service information
Throws:
Exception - if an exception occurs

collectMetadata

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

Parameters:
processor - the ArcGIS Server service processor
serviceInfo - the active service information
Throws:
Exception - if an exception occurs

collectMetadata

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

Parameters:
handlerFactory - handler factory
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
Creates new record instance (or more record instances) for given ServiceInfo and appends to the collection.

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

publishMetadata

public void publishMetadata(AGSProcessor processor,
                            ServiceInfo serviceInfo)
                     throws Exception
Publishes metadata associated with a service.

Parameters:
processor - the ArcGIS Server service processor
serviceInfo - the active service information
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.