public WebAppContext addWarAppFromClasspath ( String warFromClasspath , String contextPath ) throws JettyBootstrapException { WarAppFromClasspathJettyHandler warAppFromClasspathJettyHandler = new WarAppFromClasspathJettyHandler ( getInitializedConfiguration ( ) ) ; warAppFromClasspathJettyHandler . setWarFromClasspath ( warFromClasspath ) ; warAppFromClasspathJettyHandler . setContextPath ( contextPath ) ; WebAppContext webAppContext = warAppFromClasspathJettyHandler . getHandler ( ) ; handlers . addHandler ( webAppContext ) ; return webAppContext ; }
Add a War application from the current classpath specifying the context path .