org.mapfish.print.servlet.fileloader.FileConfigFileLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of print-lib Show documentation
Show all versions of print-lib Show documentation
Library for generating PDFs and images from online webmapping services
package org.mapfish.print.servlet.fileloader;
import java.io.File;
import java.net.URI;
import java.util.Collections;
import java.util.Iterator;
/**
* A plugin that loads the config resources from urls starting with prefix: {@value
* org.mapfish.print.servlet.fileloader.FileConfigFileLoader#PREFIX}://.
*/
public final class FileConfigFileLoader extends AbstractFileConfigFileLoader {
static final String PREFIX = "file";
@Override
protected Iterator resolveFiles(final URI fileURI) {
File file = platformIndependentUriToFile(fileURI);
return Collections.singletonList(file).iterator();
}
@Override
public String getUriScheme() {
return PREFIX;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy