Esri Geoportal Server
1.0

com.esri.gpt.catalog.publication
Class ProcessorFactory

java.lang.Object
  extended by com.esri.gpt.catalog.publication.ProcessorFactory

public class ProcessorFactory
extends Object

A factory for instantiating suitable resource processors.


Constructor Summary
ProcessorFactory()
          Default constructor.
 
Method Summary
 ResourceProcessor interrogate(ProcessingContext context, String resourceUrl)
          Interrogates a resource URL to determine an appropriate resource processor.
 ResourceProcessor interrogate(ProcessingContext context, String resourceUrl, UsernamePasswordCredentials credentials)
          Interrogates a resource URL to determine an appropriate resource processor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessorFactory

public ProcessorFactory()
Default constructor.

Method Detail

interrogate

public ResourceProcessor interrogate(ProcessingContext context,
                                     String resourceUrl)
                              throws IOException
Interrogates a resource URL to determine an appropriate resource processor.

Parameters:
context - the resource processing context
resourceUrl - the resource URL to be interrogated
Returns:
a processor capable of handling the endpoint (can be null)
Throws:
IOException - if a communication exception occurs

interrogate

public ResourceProcessor interrogate(ProcessingContext context,
                                     String resourceUrl,
                                     UsernamePasswordCredentials credentials)
                              throws IOException
Interrogates a resource URL to determine an appropriate resource processor.

Parameters:
context - the resource processing context
resourceUrl - the resource URL to be interrogated
credentials - credentials
Returns:
a processor capable of handling the endpoint (can be null)
Throws:
IOException - if a communication exception occurs

Esri Geoportal Server
1.0

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