de.mklinger.qetcher.client.httpclient.internal.NoBodyProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qetcher-client-bundle Show documentation
Show all versions of qetcher-client-bundle Show documentation
Qetcher Java client, OSGi bundle, minimal dependencies
package de.mklinger.commons.httpclient.internal;
import java.nio.ByteBuffer;
import java.util.Iterator;
import java.util.concurrent.CompletableFuture;
import de.mklinger.commons.httpclient.HttpRequest;
public class NoBodyProvider implements HttpRequest.BodyProvider {
private static final NoBodyProvider INSTANCE = new NoBodyProvider();
public static NoBodyProvider getInstance() {
return INSTANCE;
}
private NoBodyProvider() {}
@Override
public long contentLength() {
return 0;
}
@Override
public Iterator> iterator() {
throw new UnsupportedOperationException();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy