android - Not able to solve import on com.google.appengine.tools.cloudstorage.GcsFilename Eclipse -
i trying serve blob , take objects gcs , serve . in servlet need import:
import com.google.appengine.tools.cloudstorage.gcsfileoptions;
import com.google.appengine.tools.cloudstorage.gcsfilename
i have downloaded cloud storage api link: https://code.google.com/p/google-api-java-client/wiki/apis#cloud_storage_api
but somehow not able compile servlet. missing here!!..can please tell me steps on how add library in web application in eclipse?
code need compile:
private gcsfilename getfilename(httpservletrequest req) { string[] splits = req.getrequesturi().split("/", 4); if (!splits[0].equals("") || !splits[1].equals("gcs")) { throw new illegalargumentexception("the url not formed expected. " + "expecting /gcs/<bucket>/<object>"); } return new gcsfilename(splits[2], splits[3]); }
the import not in of jar files might download library https://developers.google.com/appengine/docs/java/googlecloudstorageclient/migrate
Comments
Post a Comment