...
Refs #4035
public static final String HTTP_HEADER_KEEP_ALIVE = "Keep-Alive";
public static final String HTTP_HEADER_DATE = "Date";
public static final String HTTP_HEADER_VARY = "Vary";
+ public static final String HTTP_HEADER_CONTENT_LANGUAGE = "Content-Language";
+ public static final String HTTP_HEADER_CACHE_CONTROL = "Cache-Control";
public static final String X_AUTH_TOKEN = "X-Auth-Token";
public static final String X_OBJECT_SHARING = "X-Object-Sharing";
Pithos.LOG("FileContextMenu(), selectedFolder=", selectedFolder);
Pithos.LOG("FileContextMenu(), isFolderTreeSelected=", isFolderTreeSelected);
Pithos.LOG("FileContextMenu(), isMysharedSelected=", isMysharedSelected);
+ Pithos.LOG("FileContextMenu(), selectedFiles:");
+ for(File selectedFile : selectedFiles) {
+ Pithos.LOG(" ==> ", selectedFile);
+ }
if (selectedFolder != null) {
if (!selectedFolder.isInTrash()) {
try {
final int statusCode = response.getStatusCode();
final String statusText = response.getStatusText();
- Pithos.LOG(" ", statusCode, " ", statusText);
+ Pithos.LOG(" <== [STATUS] ", statusCode, " ", statusText);
final String body = response.getText();
- if(body != null && body.trim().length() > 0) {
- if(Pithos.IsFullResponseBodyLOGEnabled) {
- Pithos.LOG(body);
- }
- else {
- final int LEN = 120;
- Pithos.LOG(body.trim().substring(0, LEN), body.length() <= LEN ? "" : " ...");
+ if(body != null) {
+ final String trimmedBody = body.trim();
+
+ if(trimmedBody.length() > 0) {
+ if(Pithos.IsFullResponseBodyLOGEnabled) {
+ Pithos.LOG(" <== [BODY] ", body);
+ }
+ else {
+ final int LEN = 120;
+ Pithos.LOG(" <== [BODY] ", trimmedBody.substring(0, LEN), body.length() <= LEN ? "" : " ...");
+ }
}
}
HTTPHeadersToIgnoreInLOG.add(Const.HTTP_HEADER_SERVER);
HTTPHeadersToIgnoreInLOG.add(Const.HTTP_HEADER_VARY);
HTTPHeadersToIgnoreInLOG.add(Const.IF_MODIFIED_SINCE);
+ HTTPHeadersToIgnoreInLOG.add(Const.X_AUTH_TOKEN);
+ HTTPHeadersToIgnoreInLOG.add(Const.HTTP_HEADER_CONTENT_LANGUAGE);
+ HTTPHeadersToIgnoreInLOG.add(Const.HTTP_HEADER_CACHE_CONTROL);
}
public static final Configuration config = GWT.create(Configuration.class);
this.userID = authSplit[0];
this.userToken = authSplit[1];
+ Pithos.LOG("userID=", userID, ", userToken=", userToken);
+
String gotoUrl = Window.Location.getParameter("goto");
if(gotoUrl != null && gotoUrl.length() > 0) {
+ Pithos.LOG("goto=", gotoUrl);
Window.Location.assign(gotoUrl);
return false;
}
@Override
public String toString() {
- return "File(container="+container+", name="+name+", parent="+(parent == null ? parent : parent.getName())+", published="+published+")";
+ final StringBuilder sb = new StringBuilder();
+ sb.append("File(").append(getUri()).append(")");
+ if(published) {
+ sb.append("::[");
+ sb.append(getPublicUri());
+ sb.append("]");
+ }
+ return sb.toString();
}
}
@Override
public String toString() {
- return "Folder(container="+container+", name="+name+", parent="+(parent == null ? parent : parent.getName())+", prefix="+prefix+")";
+ final StringBuilder sb = new StringBuilder();
+ sb.append("Folder(").append(getUri());
+ if(parent != null) {
+ sb.append(", parent=").append(parent.getUri());
+ }
+ else {
+ sb.append(", parent=null");
+ }
+ sb.append(")");
+
+ return sb.toString();
}
}