public abstract class AbstractExportProvider extends AbstractIOProvider implements ExportProvider
ExportProvider
implementationPARAM_TARGET
PARAM_CHARSET, PARAM_CONTENT_TYPE
Constructor and Description |
---|
AbstractExportProvider() |
Modifier and Type | Method and Description |
---|---|
IOReporter |
createReporter()
Create a reporter configured for the execution of this I/O provider.
|
LocatableOutputSupplier<? extends OutputStream> |
getTarget()
Get the export target
|
void |
setParameter(String name,
Value value)
Set a parameter
|
void |
setTarget(LocatableOutputSupplier<? extends OutputStream> target)
Set the export target
|
void |
storeConfiguration(Map<String,Value> configuration)
Stores all parameters that were set using
AbstractIOProvider.setParameter(String, Value) in the configuration. |
void |
validate()
Validate the I/O provider configuration
|
addSupportedParameter, execute, execute, fail, getCharset, getContentType, getDefaultCharset, getDefaultTypeName, getParameter, getSupportedParameters, getTypeName, loadConfiguration, setCharset, setContentType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getCharset, getContentType, getParameter, getSupportedParameters, isCancelable, loadConfiguration, setCharset, setContentType
public void setTarget(LocatableOutputSupplier<? extends OutputStream> target)
ExportProvider
setTarget
in interface ExportProvider
target
- the target output supplierExportProvider.setTarget(LocatableOutputSupplier)
public LocatableOutputSupplier<? extends OutputStream> getTarget()
ExportProvider
getTarget
in interface ExportProvider
ExportProvider.getTarget()
public void validate() throws IOProviderConfigurationException
IOProvider
validate
in interface IOProvider
validate
in class AbstractIOProvider
IOProviderConfigurationException
- if the I/O provider was not
configured properlyAbstractIOProvider.validate()
public void storeConfiguration(Map<String,Value> configuration)
AbstractIOProvider
AbstractIOProvider.setParameter(String, Value)
in the configuration. For changing
the behavior please override this method.storeConfiguration
in interface IOProvider
storeConfiguration
in class AbstractIOProvider
configuration
- the configuration to populate, values are either
strings, DOM elements or complex value types defined in the
ComplexValueExtension
AbstractIOProvider.storeConfiguration(Map)
public void setParameter(String name, Value value)
IOProvider
setParameter
in interface IOProvider
setParameter
in class AbstractIOProvider
name
- the parameter namevalue
- the parameter value, it is either a string, a DOM elements
or a complex value types defined in the
ComplexValueExtension
public IOReporter createReporter()
IOProvider
IOProvider.execute(ProgressIndicator)
.createReporter
in interface IOProvider
IOProvider.createReporter()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a