Application

com.google.appengine.tools.admin

Class Application

  • java.lang.Object
    • com.google.appengine.tools.admin.Application
  • All Implemented Interfaces:
    com.google.appengine.tools.admin.GenericApplication


    public class Application
    extends java.lang.Object
    implements com.google.appengine.tools.admin.GenericApplication
    An App Engine application. You can read an Application from a path, and create an AppAdmin to upload, create indexes, or otherwise manage it.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.google.appengine.tools.admin.GenericApplication

        com.google.appengine.tools.admin.GenericApplication.ErrorHandler
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void cleanStagingDirectory()
      deletes the staging directory, if one was created.
      java.io.File createStagingDirectory(com.google.appengine.tools.admin.ApplicationProcessingOptions opts, com.google.appengine.tools.admin.ResourceLimits resourceLimits)
      Creates a new staging directory, if needed, or returns the existing one if already created.
      java.io.File createStagingDirectory(com.google.appengine.tools.admin.ApplicationProcessingOptions opts, com.google.appengine.tools.admin.ResourceLimits resourceLimits, java.io.File stagingDir)
      Populates and creates (if necessary) a user specified, staging directory
      void exportRepoInfoFile()
      Generates source context file in the staging directory.
      java.lang.String getApiVersion()
      Returns the desired API version for the current application, or "none" if no API version was used.
      AppEngineWebXml getAppEngineWebXml()
      Returns the AppEngineWebXml describing the application.
      java.lang.String getAppId()
      Returns the application identifier, from the AppEngineWebXml config
      java.lang.String getAppYaml()
      Returns the app.yaml string.
      BackendsXml getBackendsXml()
      Returns the BackendsXml describing the applications' backends.
      CronXml getCronXml()
      Returns the CronXml describing the applications' cron jobs.
      DispatchXml getDispatchXml()
      Returns the possibly empty DispatchXml descriptor for this application or null if none is configured.
      DosXml getDosXml()
      Returns the DosXml describing the applications' DoS entries.
      java.util.List<com.google.appengine.tools.admin.GenericApplication.ErrorHandler> getErrorHandlers()
      Returns the list of error handlers for this application
      IndexesXml getIndexesXml()
      Returns the IndexesXml describing the applications' indexes.
      java.lang.String getInstanceClass()
      Returns the application instance class name or null if not specified.
      java.lang.String getMimeTypeIfStatic(java.lang.String path)
      Returns the mime-type if path corresponds to static content, null otherwise.
      java.lang.String getModule()
      Returns the application module name or null if not specified.
      java.lang.String getPath()
      Returns a path to an exploded WAR directory for the application.
      QueueXml getQueueXml()
      Returns the QueueXml describing the applications' task queues.
      java.lang.String getRuntime()
      Returns the desired runtime for the current application.
      AppEngineWebXml getScrubbedAppEngineWebXml()
      Modified app.yaml for Cloud SDK deployment.
      static java.io.File getSdkDocsDir() 
      static Version getSdkVersion() 
      java.io.File getStagingDir()
      Returns the staging directory, or null if none has been created.
      java.lang.String getVersion()
      Returns the application version, from the AppEngineWebXml config
      WebXml getWebXml()
      Returns the WebXml describing the applications' servlets and generic web application information.
      static java.lang.String guessContentTypeFromName(java.lang.String fileName) 
      boolean isPrecompilationEnabled()
      Returns whether precompilation is enabled for this application
      static Application