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

fun.fengwk.convention4j.springboot.starter.xheader.DefaultXHeaderRegistry Maven / Gradle / Ivy

The newest version!
package fun.fengwk.convention4j.springboot.starter.xheader;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author fengwk
 */
public class DefaultXHeaderRegistry implements XHeaderRegistry {

    private final Set xHeaderNames = Collections.newSetFromMap(new ConcurrentHashMap<>());

    @Override
    public void addXHeaderName(String name) {
        xHeaderNames.add(name);
    }

    @Override
    public Set getXHeaderNames() {
        return new HashSet<>(xHeaderNames);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy