Hi,

We need to extract HTTP headers and apply some business logic based on the
header info when REST request comes in. We are planning to writer a custom
InInterceptor by extending AbstractPhaseInterceptor

However, the AbstractPhaseInterceptor.handleMessage method only exposes a
Message object.


It looks like that I can get the Exchange from Message. From Exchange, I can
get cxf HTTPSession. However, it doesn't look like there is any API for get
the HTTPServletRequest from HTTPSession.

I wonder if there is any way to get the HTTPSevletRequest when writing an
interceptor for REST.


Thanks in advance,

Li


-- 
View this message in context: 
http://www.nabble.com/How-to-intercept-message-and-extract-HTTP-headers-in-REST-tp24956057p24956057.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to