Class HttpApiServer

java.lang.Object
com.google.appengine.tools.development.HttpApiServer
All Implemented Interfaces:
Closeable, AutoCloseable

public class HttpApiServer extends Object implements Closeable
Google App Engine API HTTP server, using the SDK API stubs for local testing of API calls.
  • Constructor Summary

    Constructors
    Constructor
    Description
    HttpApiServer(int apiServerPort, String appEngineServerHost, int appEngineServerPort)
    Create an API server. the start() method will have to be called.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Shutdown the Api Server.
    static void
    main(String[] args)
    Simple command line interface to start an API server locally.
    void
    start(boolean blocking)
    Starts the Api Server.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HttpApiServer

      public HttpApiServer(int apiServerPort, String appEngineServerHost, int appEngineServerPort)
      Create an API server. the start() method will have to be called.
      Parameters:
      apiServerPort - port number of the API server
      appEngineServerHost - : hostname of the GAE runtime using this API server.
      appEngineServerPort - : port number of the GAE runtime using this API server. Needed for taskqueue call back only.
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Simple command line interface to start an API server locally.
      Parameters:
      args - the command line arguments: --api_server_port, --api_server_host and --runtime_server_port supported.
      Throws:
      IOException
    • start

      public void start(boolean blocking)
      Starts the Api Server.
      Parameters:
      blocking - : Determines if the Jetty server should be joined.
    • close

      public void close()
      Shutdown the Api Server.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable