Details
Description
Long story short: ClientResponseFilter gets invalid ClientRequestContext objects. As a result the majority of functionality doesn't work, e.g. requestContext.getUri() will always return null.
This happens due to these lines:
at org.apache.cxf.jaxrs.client.spec.ClientResponseFilterInterceptor.handleMessage(ClientResponseFilterInterceptor.java:57)
ClientRequestContext reqContext = new ClientRequestContextImpl(inMessage.getExchange().getInMessage(), true);
Thus ClientRequestContext implementation wraps response message instead of request:
As a result majority of request context functionality is broken including predefined fields like ClientRequestContext.getUri().