Revision f55cf326 web_client/src/gr/grnet/pithos/web/client/rest/MultipleHeadCommand.java

b/web_client/src/gr/grnet/pithos/web/client/rest/MultipleHeadCommand.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.rest.MultipleGetCommand.Cached;
39 39
import gr.grnet.pithos.web.client.rest.resource.FileResource;
40 40
import gr.grnet.pithos.web.client.rest.resource.FolderResource;
......
71 71
	public MultipleHeadCommand(Class<T> theClass, String[] pathToGet, boolean showLoading, Cached[] theCached) {
72 72
		setShowLoadingIndicator(showLoading);
73 73
		if(isShowLoadingIndicator())
74
			GSS.get().showLoadingIndicator("Getting "+pathToGet.length+" items", null);
74
			Pithos.get().showLoadingIndicator("Getting "+pathToGet.length+" items", null);
75 75
		paths = pathToGet;
76 76
		this.aclass = theClass;
77 77
		this.cached = theCached;
......
142 142
		boolean com = isComplete();
143 143
		if (com) {
144 144
			if(isShowLoadingIndicator())
145
				GSS.get().hideLoadingIndicator();
145
				Pithos.get().hideLoadingIndicator();
146 146
			if(hasErrors())
147 147
				for(String p : errors.keySet())
148 148
					onError(p, errors.get(p));
......
165 165
			result1.createFromJSON(response.getText());
166 166
		} else if (aclass.equals(FileResource.class)) {
167 167
			result1 = new FileResource(path);
168
			result1.createFromJSON(response.getHeader("X-GSS-Metadata"));
168
			result1.createFromJSON(response.getHeader("X-Pithos-Metadata"));
169 169
		} else if (aclass.equals(GroupsResource.class)) {
170 170
			result1 = new GroupsResource(path);
171 171
			result1.createFromJSON(response.getText());

Also available in: Unified diff