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

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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy