com.opensymphony.module.sitemesh
public class: Config [javadoc |
source]
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:
< - a href="mailto:joe@truemesh.com">Joe Walnes
- version:
$ - Revision: 1.1 $
| Constructor: |
public Config(ServletConfig servletConfig) {
if (servletConfig == null) throw new NullPointerException("ServletConfig cannot be null");
this.servletConfig = servletConfig;
}
|
public Config(FilterConfig filterConfig) {
if (filterConfig == null) throw new NullPointerException("FilterConfig cannot be null");
this.filterConfig = filterConfig;
}
|
| Method from com.opensymphony.module.sitemesh.Config Detail: |
public ServletContext getServletContext() {
return servletConfig != null ? servletConfig.getServletContext() : filterConfig.getServletContext();
}
|