Package org.mapfish.print.output
Class MapExportOutputFormat
java.lang.Object
org.mapfish.print.output.MapExportOutputFormat
- All Implemented Interfaces:
OutputFormat
The MapExportOutputFormat class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The content type of the output.final String
The file suffix to use when writing to a file.print
(Map<String, String> mdcContext, PJsonObject spec, Configuration config, File configDir, File taskDirectory, OutputStream outputStream) Performs the print and writes to the report in the correct format to the outputStream.final void
setContentType
(String contentType) final void
setFileSuffix
(String fileSuffix)
-
Constructor Details
-
MapExportOutputFormat
public MapExportOutputFormat()
-
-
Method Details
-
getContentType
Description copied from interface:OutputFormat
The content type of the output.- Specified by:
getContentType
in interfaceOutputFormat
-
setContentType
-
getFileSuffix
Description copied from interface:OutputFormat
The file suffix to use when writing to a file.- Specified by:
getFileSuffix
in interfaceOutputFormat
-
setFileSuffix
-
print
public final Processor.ExecutionContext print(@Nonnull Map<String, String> mdcContext, PJsonObject spec, Configuration config, File configDir, File taskDirectory, OutputStream outputStream) throws ExceptionDescription copied from interface:OutputFormat
Performs the print and writes to the report in the correct format to the outputStream.- Specified by:
print
in interfaceOutputFormat
- Parameters:
mdcContext
- the MDC context for the current print job.spec
- the data from the client, required for writing.config
- the configuration object representing the server side configuration.configDir
- the directory that contains the configuration, used for resolving resources like images etc...taskDirectory
- the temporary directory for this printing task.outputStream
- the stream to write the result to- Throws:
Exception
-