接口 JeeConfig
- 所有已知实现类:
JeeContextConfig
,JeeFilterConfig
,JeeServletConfig
public interface JeeConfig
Because sometimes you don't care about the difference between a
servlet and a filter. Why isn't there a common interface for
FilterConfig
and ServletConfig
already? Sheesh.
Anyway, this also adds the ability to fake everything if you don't have
either a FilterConfig or a ServletConfig handy. Just implement it and
override the methods that return things you care about. Oh, and if you don't
have any init-params at all, just use JeeContextConfig
as
ServletContext
is the only really essential thing for creating a
VelocityView
.
- 从以下版本开始:
- 2.0
- 版本:
- $Id$
-
方法概要
修饰符和类型方法说明findInitParameter
(String key) Looks for the specified init-param in the servlet/filter config (i.e.getInitParameter
(String name) Returns an initialization parameter.Returns all the parameter names.getName()
Returns the name of the servlet (or filter) being used.ServletContext
Returns the servlet context.
-
方法详细资料
-
getInitParameter
Returns an initialization parameter.- 参数:
name
- The name of the initialization parameter.- 返回:
- The value of the parameter.
-
findInitParameter
Looks for the specified init-param in the servlet/filter config (i.e. callsgetInitParameter(java.lang.String)
). If no such init-param is found there, it checks theServletContext
's init-params for the specified parameter.- 参数:
key
- The name of the initialization parameter.- 返回:
- The value of the initialization parameter.
-
getInitParameterNames
Enumeration getInitParameterNames()Returns all the parameter names.- 返回:
- The enumeration containing the parameter names.
-
getName
String getName()Returns the name of the servlet (or filter) being used.- 返回:
- The name of the configuration.
-
getServletContext
ServletContext getServletContext()Returns the servlet context.- 返回:
- The servlet context.
-