JspServletConfig.java 1.15 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  javax.servlet.ServletConfig
 *  javax.servlet.ServletContext
 */
package com.day.crx.explorer.impl;

import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;

public class JspServletConfig
implements ServletConfig {
    private final ServletContext servletContext;
    private final String servletName;
    private Map<String, String> properties = new HashMap<String, String>();

    public JspServletConfig(ServletContext servletContext, String servletName) {
        this.servletContext = servletContext;
        this.servletName = servletName;
    }

    public String getServletName() {
        return this.servletName;
    }

    public ServletContext getServletContext() {
        return this.servletContext;
    }

    public String getInitParameter(String name) {
        return this.properties.get(name);
    }

    public Enumeration getInitParameterNames() {
        return Collections.enumeration(this.properties.keySet());
    }
}