本文整理了Java中org.apache.catalina.Context.findParameter()
方法的一些代码示例,展示了Context.findParameter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Context.findParameter()
方法的具体详情如下:
包路径:org.apache.catalina.Context
类名称:Context
方法名:findParameter
[英]Return the value for the specified context initialization parameter name, if any; otherwise return null
.
[中]返回指定上下文初始化参数名称的值(如果有);否则返回null
。
代码示例来源:origin: OryxProject/oryx
private static void doTestServingLayer(Config config) throws IOException {
try (ServingLayer servingLayer = new ServingLayer(config)) {
servingLayer.start();
Context context = servingLayer.getContext();
assertNotNull(context.findErrorPage(500));
assertEquals(0, context.getApplicationLifecycleListeners().length);
assertNotNull(context.findParameter(ConfigUtils.class.getName() + ".serialized"));
assertNotNull(context.getName());
assertGreaterOrEqual(Double.parseDouble(context.getWebappVersion()), 3.1);
}
}
代码示例来源:origin: psi-probe/psi-probe
context.findParameter(paramName) != null && !nonOverridableParams.contains(paramName));
initParams.add(param);
代码示例来源:origin: psi-probe/psi-probe
context.findParameter(paramName) != null && !nonOverridableParams.contains(paramName));
initParams.add(param);
代码示例来源:origin: psi-probe/psi-probe
context.findParameter(paramName) != null && !nonOverridableParams.contains(paramName));
initParams.add(param);
代码示例来源:origin: psi-probe/psi-probe
context.findParameter(paramName) != null && !nonOverridableParams.contains(paramName));
initParams.add(param);
代码示例来源:origin: org.glassfish.web/web-glue
if (ctx.findParameter(JSF_HA_ENABLED) == null) {
ctx.addParameter(JSF_HA_ENABLED, "true");
内容来源于网络,如有侵权,请联系作者删除!