All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mapfish.print.output.PrintParams Maven / Gradle / Ivy

package org.mapfish.print.output;

import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.Map;

import org.mapfish.print.config.Config;
import org.mapfish.print.utils.PJsonObject;

public class PrintParams {
    public Config config;
    public File configDir;
    public PJsonObject jsonSpec;
    public OutputStream outputStream;
    public Map headers;

    public PrintParams(Config config, File configDir, PJsonObject jsonSpec,
            OutputStream outputStream, Map headers) {
        this.config = config;
        this.configDir = configDir;
        this.jsonSpec = jsonSpec;
        this.outputStream = outputStream;
        this.headers = headers;
    }

    /**
     * Create a new params object with a different output stream
     * @param newOut
     * @return
     */
    public PrintParams withOutput(FileOutputStream newOut) {
        return new PrintParams(config, configDir, jsonSpec, newOut, headers);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy