Browse Source
* commit '8543bef69f9d1cc5239ab37113a54441e6d6bdb7': KERNEL-7725 feat: websocket提供全局拦截器 DEC-17833 fix: CBB独立发布 third打包脚本修改 withCBB写反了 DEC-17833 feat: CBB独立发布 third打包脚本修改 DEC-17833 feat: CBB独立发布 third打包脚本修改 无jira任务 chore: 解决bugfix合并到feature的冲突 KERNEL-6189 fix: 修复third打包脚本 KERNEL-6189 chore: feature分支fine-third打包加入CBB KERNEL-6151 fix: fine-third打包脚本修改 KERNEL-6151 feat: fine-third适配fine-essential并加入打包 KERNEL-5583 feat: 升级spring到4.3.29RELEASErelease/10.0
superman
4 years ago
4 changed files with 136 additions and 1 deletions
@ -0,0 +1,27 @@
|
||||
package com.fr.third.socketio.listener.interceptor; |
||||
|
||||
import com.fr.third.socketio.AckRequest; |
||||
import com.fr.third.socketio.SocketIOClient; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* Desc |
||||
* |
||||
* @author Elijah |
||||
* created on 2021-04-26 |
||||
*/ |
||||
public interface EventInterceptor extends Interceptor { |
||||
default void before(SocketIOClient client, List<Object> params, AckRequest ackRequest){ |
||||
before(client); |
||||
} |
||||
|
||||
default void after(SocketIOClient client, List<Object> params, AckRequest ackRequest){ |
||||
after(client); |
||||
} |
||||
|
||||
default boolean accept(String eventName, SocketIOClient client, List<Object> param){ |
||||
return accept(client); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,23 @@
|
||||
package com.fr.third.socketio.listener.interceptor; |
||||
|
||||
import com.fr.third.socketio.SocketIOClient; |
||||
|
||||
/** |
||||
* Desc |
||||
* |
||||
* @author Elijah |
||||
* created on 2021-05-06 |
||||
*/ |
||||
public interface Interceptor { |
||||
default void before(SocketIOClient client){ |
||||
|
||||
} |
||||
|
||||
default void after(SocketIOClient client){ |
||||
|
||||
} |
||||
|
||||
default boolean accept(SocketIOClient client){ |
||||
return true; |
||||
} |
||||
} |
Loading…
Reference in new issue