Class MapExportOutputFormat

java.lang.Object
org.mapfish.print.output.MapExportOutputFormat
All Implemented Interfaces:
OutputFormat

public class MapExportOutputFormat extends Object implements OutputFormat
The MapExportOutputFormat class.
  • Constructor Details

    • MapExportOutputFormat

      public MapExportOutputFormat()
  • Method Details

    • getContentType

      public final String getContentType()
      Description copied from interface: OutputFormat
      The content type of the output.
      Specified by:
      getContentType in interface OutputFormat
    • setContentType

      public final void setContentType(String contentType)
    • getFileSuffix

      public final String getFileSuffix()
      Description copied from interface: OutputFormat
      The file suffix to use when writing to a file.
      Specified by:
      getFileSuffix in interface OutputFormat
    • setFileSuffix

      public final void setFileSuffix(String fileSuffix)
    • print

      public final Processor.ExecutionContext print(@Nonnull Map<String,String> mdcContext, PJsonObject spec, Configuration config, File configDir, File taskDirectory, OutputStream outputStream) throws Exception
      Description copied from interface: OutputFormat
      Performs the print and writes to the report in the correct format to the outputStream.
      Specified by:
      print in interface OutputFormat
      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