|
|
@@ -1,10 +1,14 @@
|
|
|
package uk.ac.ic.wlgitbridge.snapshot.getdoc;
|
|
|
|
|
|
import com.google.api.client.auth.oauth2.Credential;
|
|
|
+import com.google.api.client.http.HttpRequest;
|
|
|
import com.google.gson.JsonElement;
|
|
|
import uk.ac.ic.wlgitbridge.snapshot.base.HTTPMethod;
|
|
|
import uk.ac.ic.wlgitbridge.snapshot.base.SnapshotAPIRequest;
|
|
|
import uk.ac.ic.wlgitbridge.snapshot.exception.FailedConnectionException;
|
|
|
+import uk.ac.ic.wlgitbridge.util.Log;
|
|
|
+
|
|
|
+import java.io.IOException;
|
|
|
|
|
|
/**
|
|
|
* Created by Winston on 06/11/14.
|
|
|
@@ -15,6 +19,11 @@ public class GetDocRequest extends SnapshotAPIRequest<GetDocResult> {
|
|
|
|
|
|
public GetDocRequest(Credential oauth2, String projectName) {
|
|
|
super(projectName, API_CALL, oauth2);
|
|
|
+ Log.info(
|
|
|
+ "GetDocRequest({}, {})",
|
|
|
+ "oauth2: <oauth2>",
|
|
|
+ "projectName: " + projectName
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
public GetDocRequest(String projectName) {
|