Is there a way to access the CXF message exchange from a JAX-RS REST Resource within CXF?

后端 未结 2 568
挽巷
挽巷 2021-01-22 02:35

Currently we have a a RESTful API using CXF 2.4.2. In one of my resource methods, I would like to process some query parameters and store the result in the CXF message exchange

2条回答
  •  半阙折子戏
    2021-01-22 02:50

    The easiest, if using CXF, is to just do:

    PhaseInterceptorChain.getCurrentMessage()
    

    That will work in JAXWS and JAXRS services.

提交回复
热议问题