Class HttpApiServer
java.lang.Object
com.google.appengine.tools.development.HttpApiServer
- All Implemented Interfaces:
Closeable,AutoCloseable
Google App Engine API HTTP server, using the SDK API stubs for local testing of API calls.
-
Constructor Summary
ConstructorsConstructorDescriptionHttpApiServer(int apiServerPort, String appEngineServerHost, int appEngineServerPort) Create an API server. the start() method will have to be called. -
Method Summary
-
Constructor Details
-
HttpApiServer
Create an API server. the start() method will have to be called.- Parameters:
apiServerPort- port number of the API serverappEngineServerHost- : 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
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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-