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

org.mapfish.print.servlet.fileloader.FileConfigFileLoader Maven / Gradle / Ivy

There is a newer version: 3.22.0
Show newest version
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