Skip to content

Commit

Permalink
Update version of Mondrian/Pentaho libraries
Browse files Browse the repository at this point in the history
Update library versions to match the deployment environment for easier debugging.
  • Loading branch information
mysticfall committed May 15, 2016
1 parent 0b1b555 commit e9d7130
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public String getInitParameter(String name) {
* @see javax.servlet.ServletConfig#getInitParameterNames()
*/
@Override
public Enumeration<?> getInitParameterNames() {
public Enumeration<String> getInitParameterNames() {
return context.getInitParameterNames();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,11 @@
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Enumeration;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.*;

import javax.faces.view.facelets.ResourceResolver;
import javax.servlet.RequestDispatcher;
import javax.servlet.Servlet;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextAttributeEvent;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletException;
import javax.servlet.*;
import javax.servlet.descriptor.JspConfigDescriptor;

import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.UnhandledException;
Expand Down Expand Up @@ -91,7 +83,7 @@ public Object getAttribute(String name) {
* @return
* @see javax.servlet.ServletContext#getAttributeNames()
*/
public Enumeration<?> getAttributeNames() {
public Enumeration<String> getAttributeNames() {
return wrappedContext.getAttributeNames();
}

Expand Down Expand Up @@ -128,8 +120,8 @@ public String getInitParameter(String name) {
* @return
* @see javax.servlet.ServletContext#getInitParameterNames()
*/
public Enumeration<?> getInitParameterNames() {
Enumeration<?> e = wrappedContext.getInitParameterNames();
public Enumeration<String> getInitParameterNames() {
Enumeration<String> e = wrappedContext.getInitParameterNames();

if (initParameters == null) {
return e;
Expand All @@ -148,6 +140,11 @@ public Enumeration<?> getInitParameterNames() {
return Collections.enumeration(names);
}

@Override
public boolean setInitParameter(String name, String value) {
return false;
}

/**
* @return
* @see javax.servlet.ServletContext#getMajorVersion()
Expand All @@ -164,6 +161,16 @@ public int getMinorVersion() {
return wrappedContext.getMinorVersion();
}

@Override
public int getEffectiveMajorVersion() {
return 0;
}

@Override
public int getEffectiveMinorVersion() {
return 0;
}

/**
* @param file
* @return
Expand Down Expand Up @@ -236,7 +243,7 @@ public InputStream getResourceAsStream(String path) {
* @return
* @see javax.servlet.ServletContext#getResourcePaths(java.lang.String)
*/
public Set<?> getResourcePaths(String path) {
public Set<String> getResourcePaths(String path) {
return wrappedContext.getResourcePaths(path);
}

Expand Down Expand Up @@ -267,12 +274,123 @@ public String getServletContextName() {
return wrappedContext.getServletContextName();
}

@Override
public ServletRegistration.Dynamic addServlet(String servletName, String className) {
return null;
}

@Override
public ServletRegistration.Dynamic addServlet(String servletName, Servlet servlet) {
return null;
}

@Override
public ServletRegistration.Dynamic addServlet(String servletName, Class<? extends Servlet> servletClass) {
return null;
}

@Override
public <T extends Servlet> T createServlet(Class<T> clazz) throws ServletException {
return null;
}

@Override
public ServletRegistration getServletRegistration(String servletName) {
return null;
}

@Override
public Map<String, ? extends ServletRegistration> getServletRegistrations() {
return null;
}

@Override
public FilterRegistration.Dynamic addFilter(String filterName, String className) {
return null;
}

@Override
public FilterRegistration.Dynamic addFilter(String filterName, Filter filter) {
return null;
}

@Override
public FilterRegistration.Dynamic addFilter(String filterName, Class<? extends Filter> filterClass) {
return null;
}

@Override
public <T extends Filter> T createFilter(Class<T> clazz) throws ServletException {
return null;
}

@Override
public FilterRegistration getFilterRegistration(String filterName) {
return null;
}

@Override
public Map<String, ? extends FilterRegistration> getFilterRegistrations() {
return null;
}

@Override
public SessionCookieConfig getSessionCookieConfig() {
return null;
}

@Override
public void setSessionTrackingModes(Set<SessionTrackingMode> sessionTrackingModes) {
}

@Override
public Set<SessionTrackingMode> getDefaultSessionTrackingModes() {
return null;
}

@Override
public Set<SessionTrackingMode> getEffectiveSessionTrackingModes() {
return null;
}

@Override
public void addListener(String className) {
}

@Override
public <T extends EventListener> void addListener(T t) {
}

@Override
public void addListener(Class<? extends EventListener> listenerClass) {

}

@Override
public <T extends EventListener> T createListener(Class<T> clazz) throws ServletException {
return null;
}

@Override
public JspConfigDescriptor getJspConfigDescriptor() {
return null;
}

@Override
public ClassLoader getClassLoader() {
return null;
}

@Override
public void declareRoles(String... roleNames) {
}

/**
* @return
* @deprecated
* @see javax.servlet.ServletContext#getServletNames()
*/
public Enumeration<?> getServletNames() {
public Enumeration<String> getServletNames() {
return wrappedContext.getServletNames();
}

Expand All @@ -281,7 +399,7 @@ public Enumeration<?> getServletNames() {
* @deprecated
* @see javax.servlet.ServletContext#getServlets()
*/
public Enumeration<?> getServlets() {
public Enumeration<Servlet> getServlets() {
return wrappedContext.getServlets();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public PluginServletRequest(PluginServletContext servletContext,
/**
* @return the servletContext
*/
protected PluginServletContext getServletContext() {
public PluginServletContext getServletContext() {
return servletContext;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public Object getValue(String name) {
* @return
* @see javax.servlet.http.HttpSession#getAttributeNames()
*/
public Enumeration<?> getAttributeNames() {
public Enumeration<String> getAttributeNames() {
return wrappedSession.getAttributeNames();
}

Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ It aims to leverage mature but now discontinued JPivot project's codebase to mak
<version.slf4j>1.7.7</version.slf4j>
<version.log4j>2.0.2</version.log4j>

<version.mondrian>3.6.7</version.mondrian>
<version.mondrian>3.12.0.2-208</version.mondrian>
<version.olap4j>1.2.0</version.olap4j>
<version.pentaho>5.0.2</version.pentaho>
<version.pentaho>6.1.0.2-208</version.pentaho>

<version.commons.configuration>1.10</version.commons.configuration>
<version.commons.dbutils>1.5</version.commons.dbutils>
Expand Down Expand Up @@ -535,7 +535,7 @@ It aims to leverage mature but now discontinued JPivot project's codebase to mak
<repository>
<id>pentaho</id>
<name>Pentaho Repository</name>
<url>http://repo.pentaho.org/artifactory/repo/</url>
<url>http://repository.pentaho.org/artifactory/repo/</url>
</repository>
</repositories>

Expand Down

0 comments on commit e9d7130

Please sign in to comment.