org.pivot4j.pentaho.servlet.PluginServletConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pivot4j-pentaho Show documentation
Show all versions of pivot4j-pentaho Show documentation
Pivot4J Pentatho is an OLAP analysis plugin for BI platform based on Pivot4J library.
The newest version!
package org.pivot4j.pentaho.servlet;
import java.util.Enumeration;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
public class PluginServletConfig implements ServletConfig {
public static final String SERVLET_NAME = "facesServlet";
private ServletContext context;
/**
* @param context
*/
public PluginServletConfig(ServletContext context) {
this.context = context;
}
/**
* @see javax.servlet.ServletConfig#getInitParameter(java.lang.String)
*/
@Override
public String getInitParameter(String name) {
return context.getInitParameter(name);
}
/**
* @see javax.servlet.ServletConfig#getInitParameterNames()
*/
@Override
public Enumeration> getInitParameterNames() {
return context.getInitParameterNames();
}
/**
* @see javax.servlet.ServletConfig#getServletContext()
*/
@Override
public ServletContext getServletContext() {
return context;
}
/**
* @see javax.servlet.ServletConfig#getServletName()
*/
@Override
public String getServletName() {
return SERVLET_NAME;
}
}