google-app-enginegoogle-cloud-storagegoogle-eclipse-plugin

which are the files uri on GAE java emulating cloud storage with GCS client library?


I'm developing a web application using Google app engine for Java. I will use Google Cloud storage and according to the documentation, I'm using GCS client library to emulate cloud storage on local disk.

I have no problem saving the files, I can see them from eclipse under the war folder (under the path WEB-INF/appengine-generated) and I can see them from the web admin panel accessible from the url

localhost:8888/_ah/admin

as indicated in this question

My question is the following. Which are the files URI under localhost to access them with GCS emulation?

Example of one of uploaded files on localhost:

Thanks in advance.


Solution

  • You can see how this is done here: https://code.google.com/p/appengine-gcs-client/source/browse/trunk/java/src/main/java/com/google/appengine/tools/cloudstorage/dev/LocalRawGcsService.java

    As of today this mapping is being maintained by the using the local datastore. This may change in the future, but you should be able to simply call into this class or one of the higher level classes provided with the GCS client to get at the data.