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 StringThe content type of the output.final StringThe 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 voidsetContentType(String contentType) final voidsetFileSuffix(String fileSuffix)
-
Constructor Details
-
MapExportOutputFormat
public MapExportOutputFormat()
-
-
Method Details
-
getContentType
Description copied from interface:OutputFormatThe content type of the output.- Specified by:
getContentTypein interfaceOutputFormat
-
setContentType
-
getFileSuffix
Description copied from interface:OutputFormatThe file suffix to use when writing to a file.- Specified by:
getFileSuffixin 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:OutputFormatPerforms the print and writes to the report in the correct format to the outputStream.- Specified by:
printin 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
-