All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.litongjava.tio.boot.http.interceptor.HttpInteceptorConfigure Maven / Gradle / Ivy

There is a newer version: 1.8.6
Show newest version
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