Package com.google.appengine.tools.development

Examples of com.google.appengine.tools.development.LocalEnvironment


  /**
   * Constructs the {@link com.google.apphosting.api.ApiProxy.Environment} that
   * will be installed. Subclass and override to provide your own implementation.
   */
  protected ApiProxy.Environment newEnvironment() {
    LocalEnvironment env = new LocalEnvironment(envAppId, envModuleId,
        envVersionId, envInstance, TestLocalServerEnvironment.TEST_PORT, null) {
      @Override
      public String getEmail() {
        return envEmail;
      }

      @Override
      public boolean isLoggedIn() {
        return envIsLoggedIn;
      }

      @Override
      public boolean isAdmin() {
        return envIsAdmin;
      }

      @Override
      public String getAuthDomain() {
        return envAuthDomain;
      }

      @Override
      public long getRemainingMillis() {
        return timer.getRemainingMillis();
      }
    };
    env.getAttributes().putAll(envAttributes);
    return env;
  }
View Full Code Here


  {
  }

  public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException
  {
    LocalEnvironment env = new LocalHttpRequestEnvironment(appEngineWebXml, (HttpServletRequest)servletRequest);
    ApiProxy.setEnvironmentForCurrentThread(env);
    try
    {
      filterChain.doFilter(servletRequest, servletResponse);
    }
View Full Code Here

TOP

Related Classes of com.google.appengine.tools.development.LocalEnvironment

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.