Class LocalBlobstoreService

java.lang.Object
com.google.appengine.tools.development.AbstractLocalRpcService
com.google.appengine.api.blobstore.dev.LocalBlobstoreService
All Implemented Interfaces:
LocalRpcService

@AutoService(LocalRpcService.class) public final class LocalBlobstoreService extends AbstractLocalRpcService
Implementation of local blobstore service.
  • Field Details

    • BACKING_STORE_PROPERTY

      public static final String BACKING_STORE_PROPERTY
      Where to read/store the blobs from/to.
      See Also:
    • NO_STORAGE_PROPERTY

      public static final String NO_STORAGE_PROPERTY
      True to put the blobstore into "memory-only" mode.
      See Also:
    • PACKAGE

      public static final String PACKAGE
      The package name for this service.
      See Also:
    • GOOGLE_STORAGE_KEY_PREFIX

      public static final String GOOGLE_STORAGE_KEY_PREFIX
      The prefix we apply to encoded Google Storage BlobKeys
      See Also:
  • Constructor Details

    • LocalBlobstoreService

      public LocalBlobstoreService()
  • Method Details

    • getPackage

      public String getPackage()
      Description copied from interface: LocalRpcService
      Returns the package for the service, for example, "datastore_v3".
      Returns:
      a not null package name.
    • init

      public void init(LocalServiceContext context, Map<String,String> properties)
      Description copied from interface: LocalRpcService
      Initializes the service with a set of configuration properties. Must be called before a service is started.
      Specified by:
      init in interface LocalRpcService
      Overrides:
      init in class AbstractLocalRpcService
      Parameters:
      context - A context object for the application
      properties - A read-only Map of properties.
    • start

      public void start()
      Description copied from interface: LocalRpcService
      Puts a new service into "serving" mode. Aside from setting properties, the service is not functional until after having been started.
      Specified by:
      start in interface LocalRpcService
      Overrides:
      start in class AbstractLocalRpcService
    • stop

      public void stop()
      Description copied from interface: LocalRpcService
      Stops the service, releasing all of its resources.
      Specified by:
      stop in interface LocalRpcService
      Overrides:
      stop in class AbstractLocalRpcService
    • createUploadURL

      public com.google.appengine.api.blobstore.BlobstoreServicePb.CreateUploadURLResponse createUploadURL(LocalRpcService.Status status, com.google.appengine.api.blobstore.BlobstoreServicePb.CreateUploadURLRequest request)
    • deleteBlob

      public com.google.apphosting.base.protos.api.ApiBasePb.VoidProto deleteBlob(LocalRpcService.Status status, com.google.appengine.api.blobstore.BlobstoreServicePb.DeleteBlobRequest request)
    • fetchData

      public com.google.appengine.api.blobstore.BlobstoreServicePb.FetchDataResponse fetchData(LocalRpcService.Status status, com.google.appengine.api.blobstore.BlobstoreServicePb.FetchDataRequest request)
    • createEncodedGoogleStorageKey

      public com.google.appengine.api.blobstore.BlobstoreServicePb.CreateEncodedGoogleStorageKeyResponse createEncodedGoogleStorageKey(LocalRpcService.Status status, com.google.appengine.api.blobstore.BlobstoreServicePb.CreateEncodedGoogleStorageKeyRequest request)