org.apache.catalina.Context.start()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中org.apache.catalina.Context.start()方法的一些代码示例,展示了Context.start()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Context.start()方法的具体详情如下:
包路径:org.apache.catalina.Context
类名称:Context
方法名:start

Context.start介绍

暂无

代码示例

代码示例来源:origin: psi-probe/psi-probe

@Override
public void start(String name) throws Exception {
 Context ctx = findContext(name);
 if (ctx != null) {
  ctx.start();
 }
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

context.start();
} catch (Exception e) {
  log.warn(sm.getString

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

return;
context.start();
if (context.getAvailable())
  writer.println(smClient.getString("managerServlet.started",

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

return;
context.start();
if (context.getAvailable())
  writer.println(smClient.getString("managerServlet.started",

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

return;
context.start();
if (context.getAvailable())
  writer.println(smClient.getString("managerServlet.started",

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

return;
context.start();
if (context.getState().isAvailable())
  writer.println(smClient.getString("managerServlet.started",

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

return;
context.start();
if (context.getAvailable())
  writer.println(smClient.getString("managerServlet.started",

代码示例来源:origin: codefollower/Tomcat-Research

return;
context.start();
if (context.getState().isAvailable())
  writer.println(smClient.getString("managerServlet.started",

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

return;
context.start();
if (context.getState().isAvailable())
  writer.println(smClient.getString("managerServlet.started",

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

return;
context.start();
if (context.getState().isAvailable())
  writer.println(smClient.getString("managerServlet.started",

代码示例来源:origin: codefollower/Tomcat-Research

private void reload(DeployedApplication app) {
  if(log.isInfoEnabled())
    log.info(sm.getString("hostConfig.reload", app.name));
  Context context = (Context) host.findChild(app.name);
  if (context.getState().isAvailable()) {
    // Reload catches and logs exceptions
    context.reload();
  } else {
    // If the context was not started (for example an error
    // in web.xml) we'll still get to try to start
    try {
      context.start();
    } catch (Exception e) {
      log.warn(sm.getString
           ("hostConfig.context.restart", app.name), e);
    }
  }
}

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

private void reload(DeployedApplication app, File fileToRemove, String newDocBase) {
  if(log.isInfoEnabled())
    log.info(sm.getString("hostConfig.reload", app.name));
  Context context = (Context) host.findChild(app.name);
  if (context.getState().isAvailable()) {
    if (fileToRemove != null && newDocBase != null) {
      context.addLifecycleListener(
          new ExpandedDirectoryRemovalListener(fileToRemove, newDocBase));
    }
    // Reload catches and logs exceptions
    context.reload();
  } else {
    // If the context was not started (for example an error
    // in web.xml) we'll still get to try to start
    if (fileToRemove != null && newDocBase != null) {
      ExpandWar.delete(fileToRemove);
      context.setDocBase(newDocBase);
    }
    try {
      context.start();
    } catch (Exception e) {
      log.warn(sm.getString
           ("hostConfig.context.restart", app.name), e);
    }
  }
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

private void reload(DeployedApplication app, File fileToRemove, String newDocBase) {
  if(log.isInfoEnabled())
    log.info(sm.getString("hostConfig.reload", app.name));
  Context context = (Context) host.findChild(app.name);
  if (context.getState().isAvailable()) {
    if (fileToRemove != null && newDocBase != null) {
      context.addLifecycleListener(
          new ExpandedDirectoryRemovalListener(fileToRemove, newDocBase));
    }
    // Reload catches and logs exceptions
    context.reload();
  } else {
    // If the context was not started (for example an error
    // in web.xml) we'll still get to try to start
    if (fileToRemove != null && newDocBase != null) {
      ExpandWar.delete(fileToRemove);
      context.setDocBase(newDocBase);
    }
    try {
      context.start();
    } catch (Exception e) {
      log.warn(sm.getString
           ("hostConfig.context.restart", app.name), e);
    }
  }
}

相关文章

微信公众号

最新文章

更多

Context类方法