Class LocalCapabilitiesService

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

@AutoService(LocalRpcService.class) public class LocalCapabilitiesService extends AbstractLocalRpcService
Java stub implementation of the capabilities api backend.
  • Field Details

  • Constructor Details

    • LocalCapabilitiesService

      public LocalCapabilitiesService()
  • 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.
      Throws:
      IllegalArgumentException - If a property key is not known
    • setCapabilitiesStatusJavaStub

      public void setCapabilitiesStatusJavaStub(String service, com.google.appengine.api.capabilities.CapabilityStatus status)
    • 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
    • isEnabled

      public com.google.appengine.api.capabilities.CapabilityServicePb.IsEnabledResponse isEnabled(LocalRpcService.Status status, com.google.appengine.api.capabilities.CapabilityServicePb.IsEnabledRequest request)
      Implementation of RPC IsEnabled. Everything is enabled in the local dev.
      Parameters:
      status - RPC status
      request - CapabilityServicePb.IsEnabledRequest
      Returns:
      CapabilityServicePb.IsEnabledResponse
    • getLocalCapabilitiesEnvironment

      public LocalCapabilitiesEnvironment getLocalCapabilitiesEnvironment()
      Returns:
      the current LocalCapabilitiesEnvironment
    • geCapabilityPropertyKey

      public static String geCapabilityPropertyKey(String packageName, String capability)