Package com.google.apphosting.runtime
Class ServletEngineAdapter.Config
- java.lang.Object
-
- com.google.apphosting.runtime.ServletEngineAdapter.Config
-
- Enclosing interface:
- ServletEngineAdapter
public abstract static class ServletEngineAdapter.Config extends Object
Options to configure a Jetty HTTP server, forwarding servlet requests to the GAE Java runtime.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServletEngineAdapter.Config.BuilderBuilder forConfiginstances.
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringapplicationRoot()Base root area for a given application.static ServletEngineAdapter.Config.Builderbuilder()Returns anConfig.Builder.abstract EvaluationRuntimeServerInterfaceevaluationRuntimeServerInterface()A local server that can be called directly to satisfy EvaluationRuntime requests.abstract StringfixedApplicationPath()Fixed path to use for the application root directory, irrespective of the application id and version.abstract com.google.common.net.HostAndPortjettyHttpAddress()Host and port used by the Jetty HTTP server.abstract intjettyRequestHeaderSize()Jetty server's max size for HTTP request headers.abstract intjettyResponseHeaderSize()Jetty server's max size for HTTP response headers.abstract booleanjettyReusePort()Whether to set SO_REUSEPORT on the Jetty HTTP port.abstract booleanpassThroughPrivateHeaders()Whether to pass through all headers to the web app, including X-AppEngine-*.abstract booleanuseJettyHttpProxy()Boolean to turn on the Jetty HTTP server.
-
-
-
Method Detail
-
useJettyHttpProxy
public abstract boolean useJettyHttpProxy()
Boolean to turn on the Jetty HTTP server. False by default.
-
applicationRoot
public abstract String applicationRoot()
Base root area for a given application. The exploded web app can be located under the appId/appVersion directory, to be fully compatible with GAE, or given as a Java runtime flag.
-
fixedApplicationPath
@Nullable public abstract String fixedApplicationPath()
Fixed path to use for the application root directory, irrespective of the application id and version. Ignored if not specified.
-
jettyHttpAddress
public abstract com.google.common.net.HostAndPort jettyHttpAddress()
Host and port used by the Jetty HTTP server. Defaults to [::]:8080.
-
jettyReusePort
public abstract boolean jettyReusePort()
Whether to set SO_REUSEPORT on the Jetty HTTP port.
-
jettyRequestHeaderSize
public abstract int jettyRequestHeaderSize()
Jetty server's max size for HTTP request headers. Defaults to 16384.
-
jettyResponseHeaderSize
public abstract int jettyResponseHeaderSize()
Jetty server's max size for HTTP response headers. Defaults to 16384.
-
evaluationRuntimeServerInterface
@Nullable public abstract EvaluationRuntimeServerInterface evaluationRuntimeServerInterface()
A local server that can be called directly to satisfy EvaluationRuntime requests.
-
passThroughPrivateHeaders
public abstract boolean passThroughPrivateHeaders()
Whether to pass through all headers to the web app, including X-AppEngine-*.
-
builder
public static ServletEngineAdapter.Config.Builder builder()
Returns anConfig.Builder.
-
-