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

de.mklinger.commons.httpclient.internal.FileBodyProvider Maven / Gradle / Ivy

There is a newer version: 0.5
Show newest version
package de.mklinger.commons.httpclient.internal;

import java.io.IOException;
import java.nio.file.Path;

import org.eclipse.jetty.client.util.PathContentProvider;

import de.mklinger.commons.httpclient.HttpRequest;

/**
 * @author Marc Klinger - mklinger[at]mklinger[dot]de
 */
public class FileBodyProvider extends PathContentProvider implements HttpRequest.BodyProvider {
	public FileBodyProvider(Path filePath) throws IOException {
		super(filePath);
	}

	public FileBodyProvider(String contentType, Path filePath) throws IOException {
		super(contentType, filePath);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy