Class OperationExecutionSOAPRequestInInterceptor

java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
org.apache.cxf.interceptor.AbstractInDatabindingInterceptor
org.apache.cxf.binding.soap.interceptor.SoapHeaderInterceptor
kieker.monitoring.probe.cxf.OperationExecutionSOAPRequestInInterceptor
All Implemented Interfaces:
IMonitoringProbe, org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

public class OperationExecutionSOAPRequestInInterceptor extends org.apache.cxf.binding.soap.interceptor.SoapHeaderInterceptor implements IMonitoringProbe
CXF InInterceptor to get the sessionIdentifier header from an incoming soap message and associate it with the current thread id. Look here how to add it to your server config: http://cwiki.apache.org/CXF20DOC/interceptors.html
Since:
1.0
Author:
Dennis Kieselhorst, Andre van Hoorn
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final ControlFlowRegistry
    Stores the singleton instance of the control flow registry.
    protected final IMonitoringController
    Note we are using this IMonitoringController only to access ITimeSource which is configured for the singleton instance, as this is the instance used by the corresponding other CXF probes.
    static final String
    This constant can be used as a session ID for asynchronous traces.
    protected static final SessionRegistry
    Stores the singleton instance of the session registry.
    protected static final SOAPTraceRegistry
    Stores the singleton instance of the SOAP trace registry.
    protected final ITimeSource
    The used time source.

    Fields inherited from class org.apache.cxf.interceptor.AbstractInDatabindingInterceptor

    NO_VALIDATE_PARTS
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of this class, using the singleton instance of the MonitoringController as controller.
    Creates a new instance of this class, using the given instance of a MonitoringController as controller.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleMessage(org.apache.cxf.message.Message msg)
     

    Methods inherited from class org.apache.cxf.interceptor.AbstractInDatabindingInterceptor

    findMessagePart, getBindingOperationInfo, getDataReader, getDataReader, getMessageInfo, getMessageInfo, getNodeDataReader, getXMLStreamReader, isRequestor, setDataReaderValidation, setMessage, setOperationSchemaValidation, shouldValidate, supportsDataReader

    Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor

    addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, setAfter, setBefore

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SESSION_ID_ASYNC_TRACE

      public static final String SESSION_ID_ASYNC_TRACE
      This constant can be used as a session ID for asynchronous traces.
      See Also:
    • SESSION_REGISTRY

      protected static final SessionRegistry SESSION_REGISTRY
      Stores the singleton instance of the session registry.
    • CF_REGISTRY

      protected static final ControlFlowRegistry CF_REGISTRY
      Stores the singleton instance of the control flow registry.
    • SOAP_REGISTRY

      protected static final SOAPTraceRegistry SOAP_REGISTRY
      Stores the singleton instance of the SOAP trace registry.
    • monitoringController

      protected final IMonitoringController monitoringController
      Note we are using this IMonitoringController only to access ITimeSource which is configured for the singleton instance, as this is the instance used by the corresponding other CXF probes. Depending on the configuration, the time may differ from Kieker's default timer (SystemNanoTimer).
    • timeSource

      protected final ITimeSource timeSource
      The used time source.
  • Constructor Details

    • OperationExecutionSOAPRequestInInterceptor

      public OperationExecutionSOAPRequestInInterceptor()
      Creates a new instance of this class, using the singleton instance of the MonitoringController as controller.
    • OperationExecutionSOAPRequestInInterceptor

      public OperationExecutionSOAPRequestInInterceptor(IMonitoringController monitoringCtrl)
      Creates a new instance of this class, using the given instance of a MonitoringController as controller.
      Parameters:
      monitoringCtrl - The controller of this interceptor.
  • Method Details

    • handleMessage

      public void handleMessage(org.apache.cxf.message.Message msg) throws org.apache.cxf.interceptor.Fault
      Specified by:
      handleMessage in interface org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>
      Overrides:
      handleMessage in class org.apache.cxf.binding.soap.interceptor.SoapHeaderInterceptor
      Throws:
      org.apache.cxf.interceptor.Fault