Class SysControllerFilterChain

java.lang.Object
com.smartfoxserver.controllers.filter.SysControllerFilterChain
All Implemented Interfaces:
ISystemFilterChain

public class SysControllerFilterChain extends Object implements ISystemFilterChain

The SystemFilterChain can contain one or several SystemController Filter instances that can be applied before a client request is executed by the SystemController. Filters allow to interact with the request parameters, add extra logic and validation etc...

Here are a few example use cases:

  • Bypass Public/Private/Buddy Message filtering, adding your own custom filter or a third party solution
  • Bypass the Anti-Flood Filter with a custom or third party implementation
  • Add custom logic on top of requests such as JoinRoom and CreateRoom
  • Add custom filtering or logic to requests such as SetUserVariables and SetRoomVariables
The order of execution in the filter chain respects the order in which Filters are added to the chain itself.

A complete description of the process is found in this tutorial.

See Also:
  • Constructor Details

    • SysControllerFilterChain

      public SysControllerFilterChain()
  • Method Details