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).
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;
}
|
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from com.opensymphony.module.sitemesh.Config Detail: |
public ServletContext getServletContext() {
return servletConfig != null ? servletConfig.getServletContext() : filterConfig.getServletContext();
}
|