Package com.google.appengine.api.utils.SystemProperty.Environment

Examples of com.google.appengine.api.utils.SystemProperty.Environment.Value


      for (Map.Entry<String, String> header : headers.entrySet()) {
        builder.add(new HTTPHeader(header.getKey(), header.getValue()));
      }
    }
    RawGcsService rawGcsService;
    Value location = SystemProperty.environment.value();
    if (location == SystemProperty.Environment.Value.Production) {
      rawGcsService = OauthRawGcsServiceFactory.createOauthRawGcsService(builder.build());
    } else if (location == SystemProperty.Environment.Value.Development) {
      rawGcsService = LocalRawGcsServiceFactory.createLocalRawGcsService();
    } else {
View Full Code Here


    }
  }

  @Override
  public boolean isDevMode() {
    Value env = SystemProperty.environment.value();
    log.info("System environment: " + env.toString());
    return env.equals(SystemProperty.Environment.Value.Development);
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.api.utils.SystemProperty.Environment.Value

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.