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

eu.unicore.client.data.FiletransferClient Maven / Gradle / Ivy

The newest version!
package eu.unicore.client.data;

import org.json.JSONObject;

import eu.unicore.client.Endpoint;
import eu.unicore.client.core.BaseServiceClient;
import eu.unicore.services.rest.client.IAuthCallback;
import eu.unicore.util.httpclient.IClientConfiguration;

public abstract class FiletransferClient extends BaseServiceClient {

	public FiletransferClient(Endpoint endpoint, JSONObject initialProperties, IClientConfiguration security, IAuthCallback auth) {
		super(endpoint, security, auth);
	}
	
	public Long getTransferredBytes() throws Exception {
		return getProperties().getLong("transferredBytes");
	}

	public String getProtocol() throws Exception {
		return getProperties().getString("protocol");
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy