public void visit ( final WebApp webApp ) { NullArgumentException . validateNotNull ( webApp , "Web app" ) ; bundleClassLoader = new BundleClassLoader ( webApp . getBundle ( ) ) ; httpContext = new WebAppHttpContext ( httpService . createDefaultHttpContext ( ) , webApp . getRootPath ( ) , webApp . getBundle ( ) , webApp . getMimeMappings ( ) ) ; try { LOG . info ( "Pax Web not available. Skipping context params registration" ) ; httpService . registerResources ( "/" , "default" , httpContext ) ; //CHECKSTYLE:OFF } catch ( Throwable ignore ) { LOG . error ( "Registration exception. Skipping." , ignore ) ; } //CHECKSTYLE:ON }
Creates a default context that will be used for all following registrations and registers a resource for root of war .