package io.tracee.cxf.interceptor;

import io.tracee.Tracee;
import io.tracee.TraceeBackend;
import org.apache.cxf.message.Message;
import org.apache.cxf.message.MessageUtils;
import org.apache.cxf.phase.Phase;

import static io.tracee.configuration.TraceeFilterConfiguration.Channel.IncomingResponse;

public class TraceeRequestInInterceptor extends AbstractTraceeInInterceptor {

	public TraceeRequestInInterceptor() {
		this(Tracee.getBackend(), null);
	}

	public TraceeRequestInInterceptor(TraceeBackend backend) {
		this(backend, null);
	}

	public TraceeRequestInInterceptor(TraceeBackend backend, String profile) {
		super(Phase.PRE_INVOKE, IncomingResponse, backend, profile);
	}

	@Override
	protected boolean shouldHandleMessage(Message message) {
		return !MessageUtils.isRequestor(message);
	}
}

@@ -287,22 +287,21 @@
 comingRe
-sponse
+quest
 ;%0A%0Apubli
@@ -655,14 +655,13 @@
 ngRe
-sponse
+quest
 , ba

Use correct filterconfiguration