Package brave.test.http
Class ServletContainer
java.lang.Object
brave.test.http.ServletContainer
public abstract class ServletContainer extends Object
Starts a jetty server which runs a servlet container
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ServletContainer.ServerController
Allows us to work with multiple Jetty versions. -
Constructor Summary
Constructors Modifier Constructor Description protected
ServletContainer(ServletContainer.ServerController serverController)
-
Method Summary
Modifier and Type Method Description void
init()
recreates the server so that it uses the supplied trace configurationabstract void
init(org.eclipse.jetty.servlet.ServletContextHandler handler)
Implement by registering a servlet for the test resource and anything needed for tracingvoid
stop()
String
url(String path)
-
Constructor Details
-
Method Details
-
init
public final void init()recreates the server so that it uses the supplied trace configuration -
url
-
init
public abstract void init(org.eclipse.jetty.servlet.ServletContextHandler handler)Implement by registering a servlet for the test resource and anything needed for tracing -
stop
public void stop()
-