Revision afb23bf9
b/src/gr/grnet/pithos/web/client/Const.java | ||
---|---|---|
15 | 15 |
public static final String HTTP_HEADER_KEEP_ALIVE = "Keep-Alive"; |
16 | 16 |
public static final String HTTP_HEADER_DATE = "Date"; |
17 | 17 |
public static final String HTTP_HEADER_VARY = "Vary"; |
18 |
public static final String HTTP_HEADER_CONTENT_LANGUAGE = "Content-Language"; |
|
19 |
public static final String HTTP_HEADER_CACHE_CONTROL = "Cache-Control"; |
|
18 | 20 |
|
19 | 21 |
public static final String X_AUTH_TOKEN = "X-Auth-Token"; |
20 | 22 |
public static final String X_OBJECT_SHARING = "X-Object-Sharing"; |
b/src/gr/grnet/pithos/web/client/FileContextMenu.java | ||
---|---|---|
199 | 199 |
Pithos.LOG("FileContextMenu(), selectedFolder=", selectedFolder); |
200 | 200 |
Pithos.LOG("FileContextMenu(), isFolderTreeSelected=", isFolderTreeSelected); |
201 | 201 |
Pithos.LOG("FileContextMenu(), isMysharedSelected=", isMysharedSelected); |
202 |
Pithos.LOG("FileContextMenu(), selectedFiles:"); |
|
203 |
for(File selectedFile : selectedFiles) { |
|
204 |
Pithos.LOG(" ==> ", selectedFile); |
|
205 |
} |
|
202 | 206 |
|
203 | 207 |
if (selectedFolder != null) { |
204 | 208 |
if (!selectedFolder.isInTrash()) { |
b/src/gr/grnet/pithos/web/client/Helpers.java | ||
---|---|---|
83 | 83 |
try { |
84 | 84 |
final int statusCode = response.getStatusCode(); |
85 | 85 |
final String statusText = response.getStatusText(); |
86 |
Pithos.LOG(" ", statusCode, " ", statusText); |
|
86 |
Pithos.LOG(" <== [STATUS] ", statusCode, " ", statusText);
|
|
87 | 87 |
|
88 | 88 |
final String body = response.getText(); |
89 |
if(body != null && body.trim().length() > 0) { |
|
90 |
if(Pithos.IsFullResponseBodyLOGEnabled) { |
|
91 |
Pithos.LOG(body); |
|
92 |
} |
|
93 |
else { |
|
94 |
final int LEN = 120; |
|
95 |
Pithos.LOG(body.trim().substring(0, LEN), body.length() <= LEN ? "" : " ..."); |
|
89 |
if(body != null) { |
|
90 |
final String trimmedBody = body.trim(); |
|
91 |
|
|
92 |
if(trimmedBody.length() > 0) { |
|
93 |
if(Pithos.IsFullResponseBodyLOGEnabled) { |
|
94 |
Pithos.LOG(" <== [BODY] ", body); |
|
95 |
} |
|
96 |
else { |
|
97 |
final int LEN = 120; |
|
98 |
Pithos.LOG(" <== [BODY] ", trimmedBody.substring(0, LEN), body.length() <= LEN ? "" : " ..."); |
|
99 |
} |
|
96 | 100 |
} |
97 | 101 |
} |
98 | 102 |
|
b/src/gr/grnet/pithos/web/client/Pithos.java | ||
---|---|---|
91 | 91 |
HTTPHeadersToIgnoreInLOG.add(Const.HTTP_HEADER_SERVER); |
92 | 92 |
HTTPHeadersToIgnoreInLOG.add(Const.HTTP_HEADER_VARY); |
93 | 93 |
HTTPHeadersToIgnoreInLOG.add(Const.IF_MODIFIED_SINCE); |
94 |
HTTPHeadersToIgnoreInLOG.add(Const.X_AUTH_TOKEN); |
|
95 |
HTTPHeadersToIgnoreInLOG.add(Const.HTTP_HEADER_CONTENT_LANGUAGE); |
|
96 |
HTTPHeadersToIgnoreInLOG.add(Const.HTTP_HEADER_CACHE_CONTROL); |
|
94 | 97 |
} |
95 | 98 |
|
96 | 99 |
public static final Configuration config = GWT.create(Configuration.class); |
... | ... | |
842 | 845 |
this.userID = authSplit[0]; |
843 | 846 |
this.userToken = authSplit[1]; |
844 | 847 |
|
848 |
Pithos.LOG("userID=", userID, ", userToken=", userToken); |
|
849 |
|
|
845 | 850 |
String gotoUrl = Window.Location.getParameter("goto"); |
846 | 851 |
if(gotoUrl != null && gotoUrl.length() > 0) { |
852 |
Pithos.LOG("goto=", gotoUrl); |
|
847 | 853 |
Window.Location.assign(gotoUrl); |
848 | 854 |
return false; |
849 | 855 |
} |
b/src/gr/grnet/pithos/web/client/foldertree/File.java | ||
---|---|---|
289 | 289 |
|
290 | 290 |
@Override |
291 | 291 |
public String toString() { |
292 |
return "File(container="+container+", name="+name+", parent="+(parent == null ? parent : parent.getName())+", published="+published+")"; |
|
292 |
final StringBuilder sb = new StringBuilder(); |
|
293 |
sb.append("File(").append(getUri()).append(")"); |
|
294 |
if(published) { |
|
295 |
sb.append("::["); |
|
296 |
sb.append(getPublicUri()); |
|
297 |
sb.append("]"); |
|
298 |
} |
|
299 |
return sb.toString(); |
|
293 | 300 |
} |
294 | 301 |
} |
b/src/gr/grnet/pithos/web/client/foldertree/Folder.java | ||
---|---|---|
320 | 320 |
|
321 | 321 |
@Override |
322 | 322 |
public String toString() { |
323 |
return "Folder(container="+container+", name="+name+", parent="+(parent == null ? parent : parent.getName())+", prefix="+prefix+")"; |
|
323 |
final StringBuilder sb = new StringBuilder(); |
|
324 |
sb.append("Folder(").append(getUri()); |
|
325 |
if(parent != null) { |
|
326 |
sb.append(", parent=").append(parent.getUri()); |
|
327 |
} |
|
328 |
else { |
|
329 |
sb.append(", parent=null"); |
|
330 |
} |
|
331 |
sb.append(")"); |
|
332 |
|
|
333 |
return sb.toString(); |
|
324 | 334 |
} |
325 | 335 |
} |
Also available in: Unified diff