You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Shishir Jain <sh...@adobe.com.INVALID> on 2020/10/26 13:03:00 UTC

Interceptor for Websocket Connection request

Hi,

I’m experimenting with CXF web-sockets and trying to figure out how can I get an interceptor whenever WebSocket connection request is received. I need to validate the WebSocket connection request before accepting and allowing it for subsequent messages. Unable to find any relevant information in the documentation.

I found that you can add interceptors (Ref: https://cxf.apache.org/docs/interceptors.html) but didn’t find any relevant documentation and steps for WebSockets.

Another way could be add Interceptor directly in Atmosphere runtime, but would like to hear what is the recommended way.

Would appreciate any pointers.

Thanks in advance.,
Shishir Jain