Class AbstractOpenTracingInterceptor
- java.lang.Object
-
- org.apache.cxf.tracing.AbstractTracingProvider
-
- org.apache.cxf.tracing.opentracing.AbstractOpenTracingProvider
-
- org.apache.cxf.tracing.opentracing.AbstractOpenTracingInterceptor
-
- All Implemented Interfaces:
Interceptor<Message>,PhaseInterceptor<Message>
- Direct Known Subclasses:
OpenTracingStartInterceptor,OpenTracingStopInterceptor
public abstract class AbstractOpenTracingInterceptor extends AbstractOpenTracingProvider implements PhaseInterceptor<Message>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cxf.tracing.AbstractTracingProvider
AbstractTracingProvider.TraceScopeHolder<T>
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.tracing.opentracing.AbstractOpenTracingProvider
LOG, TRACE_SPAN, tracer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOpenTracingInterceptor(String phase, io.opentracing.Tracer tracer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<PhaseInterceptor<? extends Message>>getAdditionalInterceptors()Returns a collection of Interceptors that should be added to the chain whenever this interceptor is added.Set<String>getAfter()Returns a set containing the IDs of the interceptors that should be executed before this interceptor.Set<String>getBefore()Returns a set containing the IDs of the interceptors that should be executed after this interceptor.StringgetId()Returns the ID of this interceptor.StringgetPhase()Returns the phase in which this interceptor is excecuted.voidhandleFault(Message message)Called for all interceptors (in reverse order) on which handleMessage had been successfully invoked, when normal execution of the chain was aborted for some reason.-
Methods inherited from class org.apache.cxf.tracing.opentracing.AbstractOpenTracingProvider
isAsyncResponse, startTraceSpan, stopTraceSpan
-
Methods inherited from class org.apache.cxf.tracing.AbstractTracingProvider
buildSpanDescription, getSpanIdHeader, getUri
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cxf.interceptor.Interceptor
handleMessage
-
-
-
-
Constructor Detail
-
AbstractOpenTracingInterceptor
protected AbstractOpenTracingInterceptor(String phase, io.opentracing.Tracer tracer)
-
-
Method Detail
-
getAfter
public Set<String> getAfter()
Description copied from interface:PhaseInterceptorReturns a set containing the IDs of the interceptors that should be executed before this interceptor. This interceptor will be placed in the chain after the interceptors in the set.- Specified by:
getAfterin interfacePhaseInterceptor<Message>- Returns:
- the IDs of the interceptors
-
getBefore
public Set<String> getBefore()
Description copied from interface:PhaseInterceptorReturns a set containing the IDs of the interceptors that should be executed after this interceptor. This interceptor will be placed in the inteceptor chain before the interceptors in the set.- Specified by:
getBeforein interfacePhaseInterceptor<Message>- Returns:
- the ids of the interceptors
-
getId
public String getId()
Description copied from interface:PhaseInterceptorReturns the ID of this interceptor.- Specified by:
getIdin interfacePhaseInterceptor<Message>- Returns:
- the ID
-
getPhase
public String getPhase()
Description copied from interface:PhaseInterceptorReturns the phase in which this interceptor is excecuted.- Specified by:
getPhasein interfacePhaseInterceptor<Message>- Returns:
- the phase
-
getAdditionalInterceptors
public Collection<PhaseInterceptor<? extends Message>> getAdditionalInterceptors()
Description copied from interface:PhaseInterceptorReturns a collection of Interceptors that should be added to the chain whenever this interceptor is added. May return null.- Specified by:
getAdditionalInterceptorsin interfacePhaseInterceptor<Message>- Returns:
- the collection of interceptors
-
handleFault
public void handleFault(Message message)
Description copied from interface:InterceptorCalled for all interceptors (in reverse order) on which handleMessage had been successfully invoked, when normal execution of the chain was aborted for some reason.- Specified by:
handleFaultin interfaceInterceptor<Message>
-
-