Class RoomInterceptor

All Implemented Interfaces:
AtmosphereInterceptor, AtmosphereConfigAware, InvokationOrder

public class RoomInterceptor extends AtmosphereInterceptorAdapter
Interceptor that auto-joins resources to rooms based on URL path.

Given a base path (default /room/), any request to /room/lobby will auto-join the resource to a room named "lobby".


 // Configure with framework
 RoomManager rooms = RoomManager.create(framework);
 framework.interceptor(new RoomInterceptor(rooms));

 // Or with a custom base path
 framework.interceptor(new RoomInterceptor(rooms, "/chat/"));
 
Since:
4.0