You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cloud-storage/xml-api/serviceaccount-appengine-sample/src/main/java/com/google/api/client/sample/storage/appengine/serviceaccount/StorageSample.java
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,6 @@
26
26
importjava.io.BufferedWriter;
27
27
importjava.io.IOException;
28
28
importjava.io.OutputStreamWriter;
29
-
importjava.net.HttpURLConnection.HTTP_NOT_FOUND;
30
-
importjava.net.HttpURLConnection.HTTP_OK;
31
29
importjava.util.Arrays;
32
30
33
31
importjavax.servlet.http.HttpServlet;
@@ -41,6 +39,11 @@
41
39
*/
42
40
publicclassStorageSampleextendsHttpServlet {
43
41
42
+
/** HTTP status code for a resource that wasn't found. */
43
+
privatestaticfinalintHTTP_NOT_FOUND = 404;
44
+
/** HTTP status code for a resource that was found. */
45
+
privatestaticfinalintHTTP_OK = 200;
46
+
44
47
/** The base endpoint for Google Cloud Storage api calls. */
0 commit comments