org.intermine.web.logic.export.http
Class TableExporterFactory

java.lang.Object
  extended by org.intermine.web.logic.export.http.TableExporterFactory

public class TableExporterFactory
extends java.lang.Object

Factory class that creates and registers TableHttpExporter classes.


Constructor Summary
TableExporterFactory(WebConfig webConfig)
          Constructor.
 
Method Summary
 TableExportConfig getConfig(java.lang.String id)
          Return the TableExportConfig for the given id.
 TableHttpExporter getExporter(java.lang.String id)
          Return the exporter class for the given id.
 void register(java.lang.String id, java.lang.String className)
          Register exporter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableExporterFactory

public TableExporterFactory(WebConfig webConfig)
Constructor.

Parameters:
webConfig - web config with configured exporters
Method Detail

getExporter

public TableHttpExporter getExporter(java.lang.String id)
                              throws java.lang.Exception
Return the exporter class for the given id.

Parameters:
id - id of required exporter
Returns:
exporter or null if exporter with given id doesn't exist
Throws:
java.lang.Exception - if an error happens during obtaining of exporter

getConfig

public TableExportConfig getConfig(java.lang.String id)
Return the TableExportConfig for the given id.

Parameters:
id - id of required config
Returns:
config or null if config with given id doesn't exist

register

public void register(java.lang.String id,
                     java.lang.String className)
              throws java.lang.Exception
Register exporter.

Parameters:
id - id of registered exporter
className - class name of exporter
Throws:
java.lang.Exception - if an error happens during registering of exporter