io.trygvis.appsh.booter.jetty
Class JettyWebServer.ClasspathContext

java.lang.Object
  extended by io.trygvis.appsh.booter.jetty.JettyWebServer.ClasspathContext
Enclosing class:
JettyWebServer

public static class JettyWebServer.ClasspathContext
extends Object

Adds a web application context from within the classpath. To get JSPs to work the app has to be extracted


Constructor Summary
JettyWebServer.ClasspathContext(String contextPath, String prefix)
           
 
Method Summary
protected  org.eclipse.jetty.server.handler.ContextHandler toJetty(JettyWebServer.ServerSettings settings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyWebServer.ClasspathContext

public JettyWebServer.ClasspathContext(String contextPath,
                                       String prefix)
Parameters:
contextPath - Where to "mount" the application, for example /my-app
prefix - Where to start the classpath scan, for example "/my-awesome-webapp".
Method Detail

toJetty

protected org.eclipse.jetty.server.handler.ContextHandler toJetty(JettyWebServer.ServerSettings settings)
                                                           throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.