Package com.opensymphony.module.sitemesh
Class Config
java.lang.Object
com.opensymphony.module.sitemesh.Config
Common interface to ServletConfig and FilterConfig (since javax.servlet.Config was removed from 2.3 spec).
- Author:
- Joe Walnes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the config file.javax.servlet.ServletContextGets the servlet context.
-
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
Gets the config file.- Returns:
- the config file
-