Class SysControllerFilter

java.lang.Object
com.smartfoxserver.controllers.filter.SysControllerFilter
All Implemented Interfaces:
ISystemFilter
Direct Known Subclasses:
ReadOnlyUserVariablesFilter

public abstract class SysControllerFilter extends Object implements ISystemFilter
A filter can be used to intercept any API client request (not Extension requests) and interact with the parameter, adding extra validation, custom logic etc...

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

Since:
version 2.3.0
See Also:
  • Field Details

    • logger

      protected final org.slf4j.Logger logger
  • Constructor Details

    • SysControllerFilter

      public SysControllerFilter()
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • trace

      protected void trace(Object... args)
      Traces a message to the console and log files using the Logger INFO level
      Parameters:
      args - any number of strings/object to trace
    • trace

      protected void trace(ExtensionLogLevel level, Object... args)
      Trace a message to the console and log files using the specified logging level
      Parameters:
      level - the logging level
      args - any number of object to trace