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

eu.europa.esig.dss.client.http.IgnoreDataLoader Maven / Gradle / Ivy

Go to download

DSS Service Provider Interface contains the contract interface shared between the applet and the server-side of DSS.

There is a newer version: 6.0.d4j.2
Show newest version
package eu.europa.esig.dss.client.http;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * This class allows to avoid downloading resources.
 */
public class IgnoreDataLoader implements DataLoader {

	private static final long serialVersionUID = -1808691070503805042L;

	private static final Logger LOG = LoggerFactory.getLogger(IgnoreDataLoader.class);

	@Override
	public byte[] get(String url) {
		LOG.debug("Url '{}' is ignored", url);
		return null;
	}

	@Override
	public DataAndUrl get(List urlStrings) {
		LOG.debug("Urls {} are ignored", urlStrings);
		return null;
	}

	@Override
	public byte[] get(String url, boolean refresh) {
		LOG.debug("Url '{}' is ignored", url);
		return null;
	}

	@Override
	public byte[] post(String url, byte[] content) {
		LOG.debug("Url '{}' is ignored", url);
		return null;
	}

	@Override
	public void setContentType(String contentType) {
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy