com.litongjava.tio.boot.http.interceptor.HttpInteceptorConfigure 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 HttpInteceptorConfigure {
Map inteceptors = Collections.synchronizedMap(new LinkedHashMap<>());
public void add(HttpInterceptorModel model) {
inteceptors.put(model.getName(), model);
}
public HttpInterceptorModel remove(String key) {
return inteceptors.remove(key);
}
public Map getInteceptors() {
return inteceptors;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy