Class SysControllerFilterChain

  • All Implemented Interfaces:
    ISystemFilterChain

    public class SysControllerFilterChain
    extends java.lang.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.

    Since:
    version 2.3.0
    See Also:
    SysControllerFilter, Zone.setFilterChain(com.smartfoxserver.v2.controllers.SystemRequest, ISystemFilterChain)
    • Constructor Detail

      • SysControllerFilterChain

        public SysControllerFilterChain()