
hudson.util.IncompatibleServletVersionDetected Maven / Gradle / Ivy
package hudson.util;
import hudson.remoting.Which;
import java.io.File;
import java.io.IOException;
/**
* Model object used to display the error top page if
* we find out that the container doesn't support servlet 2.4.
*
*
* index.jelly would display a nice friendly error page.
*
* @author Kohsuke Kawaguchi
*/
public class IncompatibleServletVersionDetected extends ErrorObject {
private final Class servletClass;
public IncompatibleServletVersionDetected(Class servletClass) {
this.servletClass = servletClass;
}
public File getWhereServletIsLoaded() throws IOException {
return Which.jarFile(servletClass);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy