Class RoomProtocolInterceptor

java.lang.Object
org.atmosphere.cpr.AtmosphereInterceptorAdapter
org.atmosphere.room.RoomProtocolInterceptor
All Implemented Interfaces:
AtmosphereInterceptor, AtmosphereConfigAware, InvokationOrder

public class RoomProtocolInterceptor extends AtmosphereInterceptorAdapter
Bridges the atmosphere.js client room protocol to the server-side Room API. Intercepts JSON messages from clients, decodes them via RoomProtocolCodec, and routes them to the appropriate Room operations.

This interceptor runs with InvokationOrder.PRIORITY.BEFORE_DEFAULT priority so it processes messages before BroadcastOnPostAtmosphereInterceptor.

Register manually or annotate with AtmosphereInterceptorService for auto-scanning:


 framework.interceptor(new RoomProtocolInterceptor());
 
Since:
4.0