Class SysControllerFilter
- java.lang.Object
-
- com.smartfoxserver.v2.controllers.filter.SysControllerFilter
-
- All Implemented Interfaces:
ISystemFilter
- Direct Known Subclasses:
ReadOnlyUserVariablesFilter
public abstract class SysControllerFilter extends java.lang.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:
SysControllerFilterChain
,Zone.setFilterChain(com.smartfoxserver.v2.controllers.SystemRequest, ISystemFilterChain)
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description SysControllerFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
void
setName(java.lang.String name)
protected void
trace(ExtensionLogLevel level, java.lang.Object... args)
Trace a message to the console and log files using the specified logging levelprotected void
trace(java.lang.Object... args)
Traces a message to the console and log files using the Logger INFO level-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.smartfoxserver.v2.controllers.filter.ISystemFilter
handleClientRequest
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
trace
protected void trace(java.lang.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, java.lang.Object... args)
Trace a message to the console and log files using the specified logging level- Parameters:
level
- the logging levelargs
- any number of object to trace
-
-