Example usage for javax.servlet GenericServlet getServletConfig

List of usage examples for javax.servlet GenericServlet getServletConfig

Introduction

In this page you can find the example usage for javax.servlet GenericServlet getServletConfig.

Prototype

public ServletConfig getServletConfig() 

Source Link

Document

Returns this servlet's ServletConfig object.

Usage

From source file:org.sonar.ide.test.TestServlet.java

public static String getBaseDir(GenericServlet servlet) {
    return StringUtils.defaultIfEmpty(servlet.getServletConfig().getInitParameter("baseDir"),
            "target/sonar-data");
}