Package brave.test.http
Class ITServletContainer
- java.lang.Object
-
- brave.test.ITRemote
-
- brave.test.http.ITHttpServer
-
- brave.test.http.ITServletContainer
-
- Direct Known Subclasses:
ITServlet25Container
public abstract class ITServletContainer extends ITHttpServer
Starts a jetty server which runs a servlet container
-
-
Field Summary
-
Fields inherited from class brave.test.http.ITHttpServer
client, httpTracing, NOT_READY_ISE
-
Fields inherited from class brave.test.ITRemote
BAGGAGE_FIELD, BAGGAGE_FIELD_KEY, currentTraceContext, propagationFactory, testName, testSpanHandler, tracing
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ITServletContainer(ServletContainer.ServerController serverController)
protected
ITServletContainer(ServletContainer.ServerController serverController, org.eclipse.jetty.util.log.Logger logger)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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 tracingprotected ServletContainer
newServletContainer()
void
stop()
protected String
url(String path)
-
Methods inherited from class brave.test.http.ITHttpServer
addsStatusCode_badRequest, async, childCompletesBeforeServer, createsChildSpan, createsChildWhenJoinDisabled, customSampler, defaultSpanNameIsMethodNameOrRoute, get, get, httpPathTagExcludesQueryParams, httpRoute, httpRoute_async, httpRoute_nested, httpStatusCodeSettable_onUncaughtException, httpStatusCodeSettable_onUncaughtException_async, httpStatusCodeTagMatchesResponse_onUncaughtException, httpStatusCodeTagMatchesResponse_onUncaughtException, httpStatusCodeTagMatchesResponse_onUncaughtException, httpStatusCodeTagMatchesResponse_onUncaughtException_async, notFound, options, readsBaggage_existingTrace, readsBaggage_newTrace, readsBaggage_unsampled, readsRequestAtResponseTime, reportsClientAddress, reportsClientAddress_XForwardedFor, reportsServerKindToZipkin, reusesPropagatedSpanId, samplingDisabled, setsErrorAndHttpStatusOnUncaughtException, setsErrorAndHttpStatusOnUncaughtException_async, setup, spanHandlerSeesError, spanHandlerSeesError_async, supportsPortableCustomization
-
Methods inherited from class brave.test.ITRemote
assertChildOf, assertChildOf, assertChildOf, assertNoError, assertNoErrorTag, assertSameIds, assertSequential, assertSpanInInterval, checkForLeakedScopes, close, currentTraceContextBuilder, newTraceContext, tracingBuilder
-
-
-
-
Constructor Detail
-
ITServletContainer
protected ITServletContainer(ServletContainer.ServerController serverController)
-
ITServletContainer
protected ITServletContainer(ServletContainer.ServerController serverController, org.eclipse.jetty.util.log.Logger logger)
-
-
Method Detail
-
newServletContainer
protected ServletContainer newServletContainer()
-
init
protected final void init()
recreates the server so that it uses the supplied trace configuration- Specified by:
init
in classITHttpServer
-
url
protected final String url(String path)
- Specified by:
url
in classITHttpServer
-
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
@AfterEach public void stop()
-
-