Revision f55cf326 web_client/src/gr/grnet/pithos/web/client/rest/HeadCommand.java
b/web_client/src/gr/grnet/pithos/web/client/rest/HeadCommand.java | ||
---|---|---|
34 | 34 |
*/ |
35 | 35 |
package gr.grnet.pithos.web.client.rest; |
36 | 36 |
|
37 |
import gr.grnet.pithos.web.client.GSS;
|
|
37 |
import gr.grnet.pithos.web.client.Pithos;
|
|
38 | 38 |
import gr.grnet.pithos.web.client.ObjectNotFoundException; |
39 | 39 |
import gr.grnet.pithos.web.client.rest.resource.FileResource; |
40 | 40 |
import gr.grnet.pithos.web.client.rest.resource.FolderResource; |
... | ... | |
69 | 69 |
setShowLoadingIndicator(showLoading); |
70 | 70 |
this.aclass = theClass; |
71 | 71 |
if(isShowLoadingIndicator()) |
72 |
GSS.get().showLoadingIndicator("Getting ",pathToGet);
|
|
72 |
Pithos.get().showLoadingIndicator("Getting ",pathToGet);
|
|
73 | 73 |
|
74 | 74 |
if(theClass.equals(FileResource.class)) |
75 | 75 |
path = pathToGet; |
... | ... | |
137 | 137 |
boolean com = isComplete(); |
138 | 138 |
if(com){ |
139 | 139 |
if(isShowLoadingIndicator()) |
140 |
GSS.get().hideLoadingIndicator();
|
|
140 |
Pithos.get().hideLoadingIndicator();
|
|
141 | 141 |
if(getResult() != null) |
142 | 142 |
onComplete(); |
143 | 143 |
else |
... | ... | |
156 | 156 |
} |
157 | 157 |
else if(aclass.equals(FileResource.class)){ |
158 | 158 |
result1 = new FileResource(aPath); |
159 |
result1.createFromJSON(response.getHeader("X-GSS-Metadata"));
|
|
159 |
result1.createFromJSON(response.getHeader("X-Pithos-Metadata"));
|
|
160 | 160 |
} |
161 | 161 |
else if(aclass.equals(GroupsResource.class)){ |
162 | 162 |
result1 = new GroupsResource(aPath); |
Also available in: Unified diff