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

com.litongjava.tio.boot.http.interceptor.ServerInteceptorConfigure 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 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