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

org.mapfish.print.config.SecurityStrategy Maven / Gradle / Ivy

package org.mapfish.print.config;

import java.io.IOException;
import java.net.URI;

import org.apache.commons.httpclient.HttpClient;

public abstract class SecurityStrategy {
    private HostMatcher matcher;

    public abstract void configure(URI uri, HttpClient httpClient);
    public boolean matches(URI uri) {
        try {
            return matcher==null || matcher.validate(uri);
        } catch (IOException e) {
            return false;
        }
    }

    public void setMatcher(HostMatcher matcher) {
        this.matcher = matcher;
    }



}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy