Class AppVersionHandlerFactory
- java.lang.Object
-
- com.google.apphosting.runtime.jetty94.AppVersionHandlerFactory
-
public class AppVersionHandlerFactory extends Object
AppVersionHandlerFactoryimplements aHandlerfor a givenAppVersionKey.
-
-
Field Summary
Fields Modifier and Type Field Description static StringWEB_DEFAULTS_XMLAny settings in this webdefault.xml file will be inherited by all applications.
-
Constructor Summary
Constructors Constructor Description AppVersionHandlerFactory(org.eclipse.jetty.server.Server server, String serverInfo, WebAppContextFactory contextFactory, boolean useJettyErrorPageHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jetty.server.HandlercreateHandler(AppVersion appVersion)Returns theHandlerthat will handle requests for the specified application version.
-
-
-
Field Detail
-
WEB_DEFAULTS_XML
public static final String WEB_DEFAULTS_XML
Any settings in this webdefault.xml file will be inherited by all applications. We don't want to use Jetty's built-in webdefault.xml because we want to disable some of their functionality, and because we want to be explicit about what functionality we are supporting.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AppVersionHandlerFactory
public AppVersionHandlerFactory(org.eclipse.jetty.server.Server server, String serverInfo, WebAppContextFactory contextFactory, boolean useJettyErrorPageHandler)
-
-
Method Detail
-
createHandler
public org.eclipse.jetty.server.Handler createHandler(AppVersion appVersion) throws javax.servlet.ServletException
Returns theHandlerthat will handle requests for the specified application version.- Throws:
javax.servlet.ServletException
-
-