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();
}
}