本文整理了Java中org.apache.catalina.Manager.setContext()
方法的一些代码示例,展示了Manager.setContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Manager.setContext()
方法的具体详情如下:
包路径:org.apache.catalina.Manager
类名称:Manager
方法名:setContext
[英]Set the Container with which this Manager is associated.
[中]设置与此管理器关联的容器。
代码示例来源:origin: pivotalsoftware/session-managers
@Before
public void manager() throws Exception {
this.manager.setContext(this.context);
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
manager.setContext(this);
代码示例来源:origin: codefollower/Tomcat-Research
manager.setContext(this);
if (getState().isAvailable() && (manager != null) &&
(manager instanceof Lifecycle)) {
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
manager.setContext(this);
代码示例来源:origin: pivotalsoftware/session-managers
@Before
public void setupManager() {
Context context = new StandardContext();
Host host = new StandardHost();
this.manager.setContext(context);
context.setName("test-context-name");
context.setParent(host);
host.setName("test-host-name");
}
内容来源于网络,如有侵权,请联系作者删除!