git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/Common/storagehub-client@171742 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f24a4a4dbe
commit
50ef041681
|
@ -8,8 +8,6 @@ import java.util.Map;
|
|||
import java.util.Set;
|
||||
|
||||
import javax.ws.rs.client.Entity;
|
||||
import javax.ws.rs.client.Invocation;
|
||||
import javax.ws.rs.client.WebTarget;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import javax.ws.rs.core.MultivaluedHashMap;
|
||||
import javax.ws.rs.core.MultivaluedMap;
|
||||
|
@ -256,7 +254,7 @@ public class DefaultItemManager implements ItemManagerClient {
|
|||
@Override
|
||||
public URL call(GXWebTargetAdapterRequest manager) throws Exception {
|
||||
GXWebTargetAdapterRequest myManager = manager.path(id).path("publiclink");
|
||||
GXInboundResponse response = myManager.setAcceptedResponseType(MediaType.TEXT_PLAIN_TYPE).get();
|
||||
GXInboundResponse response = myManager.get();
|
||||
|
||||
if (response.hasGXError())
|
||||
throw response.getException();
|
||||
|
|
|
@ -7,7 +7,6 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
|
||||
import javax.ws.rs.client.Entity;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.gcube.common.clients.Call;
|
||||
import org.gcube.common.clients.delegates.ProxyDelegate;
|
||||
|
|
|
@ -96,8 +96,9 @@ public class Items {
|
|||
@Test
|
||||
public void emptyTrash() throws Exception {
|
||||
StorageHubClient shc = new StorageHubClient();
|
||||
|
||||
shc.emptyTrash();
|
||||
shc.open("9931e1b1-e824-47b1-a30d-4e9a14e126fa").asFile().getPublicLink();
|
||||
|
||||
//shc.emptyTrash();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue