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 Modifier and Type Field Description static javax.servlet.UnavailableException
NOT_READY_UE
Fields inherited from class brave.test.ITRemote
BAGGAGE_FIELD, BAGGAGE_FIELD_KEY, currentTraceContext, globalTimeout, propagationFactory, spanHandler, testName, tracing
-
Constructor Summary
Constructors Modifier Constructor Description protected
ITServletContainer(ServletContainer.ServerController serverController)
-
Method Summary
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_async, notFound, options, readsBaggage_existingTrace, readsBaggage_newTrace, readsBaggage_unsampled, readsRequestAtResponseTime, reportsClientAddress, reportsClientAddress_XForwardedFor, reportsServerKindToZipkin, reusesPropagatedSpanId, samplingDisabled, setsErrorAndHttpStatusOnUncaughtException, setsErrorAndHttpStatusOnUncaughtException_async, setup, spanHandlerSeesError, spanHandlerSeesException_async, supportsPortableCustomization, supportsPortableCustomizationDeprecated
Methods inherited from class brave.test.ITRemote
assertChildOf, assertChildOf, assertChildOf, assertNoError, assertNoErrorTag, assertSameIds, assertSequential, assertSpanInInterval, checkForLeakedScopes, close, currentTraceContextBuilder, newTraceContext, tracingBuilder
-
Field Details
-
NOT_READY_UE
public static final javax.servlet.UnavailableException NOT_READY_UE
-
-
Constructor Details
-
Method Details
-
newServletContainer
-
init
protected final void init()recreates the server so that it uses the supplied trace configuration- Specified by:
init
in classITHttpServer
-
url
- 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
public void stop()
-