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

eos.model.web.EndpointMappings Maven / Gradle / Ivy

Go to download

EOS is a Full Fledged Java Application Server with built in Dependency Injection, Request Mapping and Data Management support. EOS boasts its own custom view tag library and the ability to write your own custom view tags.

The newest version!
package eos.model.web;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

public class EndpointMappings {

    ConcurrentMap mappings;

    public EndpointMappings(){
        this.mappings = new ConcurrentHashMap<>();
    }

    public void add(String key, EndpointMapping endpointMapping){
        this.mappings.put(key, endpointMapping);
    }

    public EndpointMapping get(String key){
        if(this.mappings.containsKey(key)){
            return this.mappings.get(key);
        }
        return null;
    }

    public boolean contains(String key){
        return this.mappings.containsKey(key);
    }

    public ConcurrentMap getMappings() {
        return mappings;
    }

    public void setMappings(ConcurrentMap m) {
        this.mappings = mappings;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy