org.openlca.collaboration.client.LibraryDownloadInvocation Maven / Gradle / Ivy
package org.openlca.collaboration.client;
import java.io.InputStream;
import org.openlca.collaboration.client.WebRequests.Type;
class LibraryDownloadInvocation extends Invocation {
private final String library;
LibraryDownloadInvocation(String library) {
super(Type.GET, "libraries", InputStream.class);
this.library = library;
}
@Override
protected void checkValidity() {
checkNotEmpty(library, "library");
}
@Override
protected String query() {
return "/" + WebRequests.encodeQuery(library);
}
}