public interface ServletEngineAdapter extends UPRequestHandler
| Modifier and Type | Interface and Description |
|---|---|
static class |
ServletEngineAdapter.Config
Options to configure a Jetty HTTP server, forwarding servlet requests to the GAE Java runtime.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAppVersion(AppVersion appVersion)
Register the specified application version for future calls to
serviceRequest. |
void |
deleteAppVersion(AppVersion appVersion)
Remove the specified application version and free up any
resources associated with it.
|
void |
setSessionStoreFactory(SessionStoreFactory factory)
Sets the
SessionStoreFactory that will be used to create the list
of SessionStores to which the HTTP Session will be
stored, if sessions are enabled. |
void |
start(String serverInfo,
ServletEngineAdapter.Config runtimeOptions)
Performs whatever setup is necessary for this servlet container.
|
void |
stop()
Perform any shutdown procedures necessary for this servlet
container.
|
serviceRequestvoid start(String serverInfo, ServletEngineAdapter.Config runtimeOptions)
serverInfo - The string that should be returned by ServletContext.getServerInfo().runtimeOptions - Extra options, currently used for the Jetty HTTP adapter only.void stop()
void addAppVersion(AppVersion appVersion) throws FileNotFoundException
serviceRequest.FileNotFoundException - If any of the specified files could
not be located.void deleteAppVersion(AppVersion appVersion)
void setSessionStoreFactory(SessionStoreFactory factory)
SessionStoreFactory that will be used to create the list
of SessionStores to which the HTTP Session will be
stored, if sessions are enabled. This method must be invoked after
start(java.lang.String, com.google.apphosting.runtime.ServletEngineAdapter.Config).Copyright © 2022. All rights reserved.