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

com.brettonw.servlet.test.TestServletConfig Maven / Gradle / Ivy

Go to download

Servlet Tester provides a support class to test 'GET' and 'POST' on servlet interfaces.

There is a newer version: 1.2.11
Show newest version
package com.brettonw.servlet.test;

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

public class TestServletConfig implements ServletConfig {
    TestServletContext servletContext;
    String name;

    public TestServletConfig () {
        this ("Test");
    }

    public TestServletConfig (String name) {
        this.name = name;
        servletContext = new TestServletContext ();
    }

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

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

    @Override
    public String getInitParameter (String s) {
        return null;
    }

    @Override
    public Enumeration getInitParameterNames () {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy