Class JettyHttpProxy
- java.lang.Object
-
- com.google.apphosting.runtime.jetty94.JettyHttpProxy
-
public class JettyHttpProxy extends Object
A Jetty web server handling HTTP requests on a given port and forwarding them via gRPC to the Java8 App Engine runtime implementation. The deployed application is assumed to be located in a location provided via a flag, or infered to "/base/data/home/apps/" + APP_ID + "/" + APP_VERSION where APP_ID and APP_VERSION come from env variables (GAE_APPLICATION and GAE_VERSION), with some default values. The logic relies on the presence of "WEB-INF/appengine-generated/app.yaml" so the deployed app should have been staged by a GAE SDK before it can be served.When used as a Docker Titanium image, you can create the image via a Dockerfile like:
FROM gcr.io/gae-gcp/java8-runtime-http-proxy # for now s~ is needed for API calls. ENV GAE_APPLICATION s~myapp ENV GAE_VERSION myversion ADD . /appdata/s~myapp/myversion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJettyHttpProxy.ForwardingHandlerHandler to stub out the frontend server.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.jetty.server.ServernewServer(ServletEngineAdapter.Config runtimeOptions, JettyHttpProxy.ForwardingHandler handler)static voidstartServer(ServletEngineAdapter.Config runtimeOptions)Based on the adapter configuration, this will start a new Jetty server in charge of proxying HTTP requests to the App Engine Java runtime.
-
-
-
Method Detail
-
startServer
public static void startServer(ServletEngineAdapter.Config runtimeOptions)
Based on the adapter configuration, this will start a new Jetty server in charge of proxying HTTP requests to the App Engine Java runtime.
-
newServer
public static org.eclipse.jetty.server.Server newServer(ServletEngineAdapter.Config runtimeOptions, JettyHttpProxy.ForwardingHandler handler)
-
-