|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.catalog.publication.ResourceProcessor
com.esri.gpt.catalog.arcgis.metadata.AGSProcessor
public class AGSProcessor
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. |
Long |
getThrottleDelay()
Gets throttle delay. |
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. |
protected Long |
resolveThrottleDelay(Bots bots)
Resolves throttle delay. |
void |
setCredentials(UsernamePasswordCredentials credentials)
Sets credentials. |
void |
setThrottleDelay(Long throttleDelay)
Sets throttle delay. |
| 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 |
|---|
public AGSProcessor(ProcessingContext context)
context - the procesing context| Method Detail |
|---|
public ServiceHandlerFactory getHandlerFactory()
public AGSTarget getTarget()
public UsernamePasswordCredentials getCredentials()
public void setCredentials(UsernamePasswordCredentials credentials)
credentials - credentialspublic Long getThrottleDelay()
If set it will override "Crawl-Delay" from robots.txt if robots.txt present.
null if no throttling requiredpublic void setThrottleDelay(Long throttleDelay)
If set it will override "Crawl-Delay" from robots.txt if robots.txt present.
throttleDelay - throttle delay in milliseconds or null if no throttling required
public boolean interrogate(URL url,
String response)
throws IOException
url - the target URL associated with the resource being interrogatedresponse - the character based response previously returned from the target URL
true if the target was recognized as an ArcGIS server endpoint
IOException
public void process()
throws Exception
process in class ResourceProcessorException - if an exception occurs
public Query createQuery(IterationContext context,
Criteria criteria)
ResourceProcessor
createQuery in class ResourceProcessorcontext - iteration contextcriteria - query criteria or null if no criteria
public Native getNativeResource(IterationContext context)
ResourceProcessorPublishable and each repository has to be able to
provide one.
getNativeResource in class ResourceProcessorcontext - iteration context
protected Long resolveThrottleDelay(Bots bots)
bots - robots.txt or null if robots.txt unavailable
null if no throttling required
|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||