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

org.fakeservlet.jakarta.FakeJakartaConfig Maven / Gradle / Ivy

package org.fakeservlet.jakarta;

import jakarta.servlet.ServletConfig;
import jakarta.servlet.ServletContext;
import java.util.Enumeration;

public class FakeJakartaConfig implements ServletConfig {
    private final FakeJakartaContext context = new FakeJakartaContext();

    @Override
    public ServletContext getServletContext() {
        return context;
    }

    @Override
    public String getServletName() {
        return null;
    }

    @Override
    public String getInitParameter(String name) {
        return context.getInitParameter(name);
    }

    @Override
    public Enumeration getInitParameterNames() {
        return context.getInitParameterNames();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy