Package org.mapfish.print.output
Class MapExportOutputFormat
- java.lang.Object
-
- org.mapfish.print.output.MapExportOutputFormat
-
- All Implemented Interfaces:
OutputFormat
public class MapExportOutputFormat extends java.lang.Object implements OutputFormat
The MapExportOutputFormat class.
-
-
Constructor Summary
Constructors Constructor Description MapExportOutputFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContentType()
The content type of the output.java.lang.String
getFileSuffix()
The file suffix to use when writing to a file.Processor.ExecutionContext
print(java.util.Map<java.lang.String,java.lang.String> mdcContext, PJsonObject spec, Configuration config, java.io.File configDir, java.io.File taskDirectory, java.io.OutputStream outputStream)
Performs the print and writes to the report in the correct format to the outputStream.void
setContentType(java.lang.String contentType)
void
setFileSuffix(java.lang.String fileSuffix)
-
-
-
Method Detail
-
getContentType
public final java.lang.String getContentType()
Description copied from interface:OutputFormat
The content type of the output.- Specified by:
getContentType
in interfaceOutputFormat
-
setContentType
public final void setContentType(java.lang.String contentType)
-
getFileSuffix
public final java.lang.String getFileSuffix()
Description copied from interface:OutputFormat
The file suffix to use when writing to a file.- Specified by:
getFileSuffix
in interfaceOutputFormat
-
setFileSuffix
public final void setFileSuffix(java.lang.String fileSuffix)
-
print
public final Processor.ExecutionContext print(@Nonnull java.util.Map<java.lang.String,java.lang.String> mdcContext, PJsonObject spec, Configuration config, java.io.File configDir, java.io.File taskDirectory, java.io.OutputStream outputStream) throws java.lang.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 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:
java.lang.Exception
-
-