Class Config

java.lang.Object
com.opensymphony.module.sitemesh.Config

public class Config extends Object
Common interface to ServletConfig and FilterConfig (since javax.servlet.Config was removed from 2.3 spec).
Author:
Joe Walnes
  • Constructor Details

    • Config

      public Config(javax.servlet.ServletConfig servletConfig)
      Instantiates a new config.
      Parameters:
      servletConfig - the servlet config
    • Config

      public Config(javax.servlet.FilterConfig filterConfig)
      Instantiates a new config.
      Parameters:
      filterConfig - the filter config
  • Method Details

    • getServletContext

      public javax.servlet.ServletContext getServletContext()
      Gets the servlet context.
      Returns:
      the servlet context
    • getConfigFile

      public String getConfigFile()
      Gets the config file.
      Returns:
      the config file