'Logging HTTPS out/in RESTful messages

I would like to log RESTful messages on a HTTPS connection, using a SSLConnectionSocketFactory with user certificate.

I am using an interceptor that extends AbstractPhaseInterceptor, and also the org.apache.cxf.interceptor.LoggingOutInterceptor of cxf 3.1.13, but the handleMessage event in not launched.

Is it possible to log the RESTful in/out messages before they are encrypted when they are sent by the HTTPS connection?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source