com.litongjava.tio.boot.http.interceptor.ServerInteceptorConfigure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tio-boot Show documentation
Show all versions of tio-boot Show documentation
Java High Performance Web Development Framework
package com.litongjava.tio.boot.http.interceptor;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 拦击器配置类
* @author Tong Li
*
*/
public class ServerInteceptorConfigure {
Map inteceptors = Collections.synchronizedMap(new LinkedHashMap<>());
public void add(HttpServerInterceptorModel model) {
inteceptors.put(model.getName(), model);
}
public HttpServerInterceptorModel remove(String key) {
return inteceptors.remove(key);
}
public Map getInteceptors() {
return inteceptors;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy