org.eclipse.jetty.webapp.WebAppContext.isStarted()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(112)

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

WebAppContext.isStarted介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jetty/jetty-webapp

/**
 * @param configurations The configurations to set.
 */
public void setConfigurations(Configuration[] configurations)
{
  if (isStarted())
    throw new IllegalStateException();
  _configurations.clear();
  if (configurations!=null)
    _configurations.addAll(Arrays.asList(configurations));
}

代码示例来源:origin: org.eclipse.jetty/jetty-webapp

/**
 * @param configurations The configuration class names.  If setConfigurations is not called
 * these classes are used to create a configurations array.
 */
public void setConfigurationClasses(String[] configurations)
{
  if (isStarted())
    throw new IllegalStateException();
  _configurationClasses.clear();
  if (configurations!=null)
    _configurationClasses.addAll(Arrays.asList(configurations));
  _configurations.clear();
}

代码示例来源:origin: org.eclipse.jetty/jetty-webapp

/** Set temporary directory for context.
 * The javax.servlet.context.tempdir attribute is also set.
 * @param dir Writable temporary directory.
 */
public void setTempDirectory(File dir)
{
  if (isStarted())
    throw new IllegalStateException("Started");
  if (dir!=null)
  {
    try{dir=new File(dir.getCanonicalPath());}
    catch (IOException e){LOG.warn(Log.EXCEPTION,e);}
  }
  _tmpDir=dir;
  setAttribute(TEMPDIR,_tmpDir);            
}

代码示例来源:origin: org.eclipse.jetty/jetty-webapp

/**
 * Process web-default.xml, web.xml, override-web.xml
 * 
 */
@Override
public void configure (WebAppContext context) throws Exception
{
  // cannot configure if the context is already started
  if (context.isStarted())
  {
    LOG.debug("Cannot configure webapp after it is started");
    return;
  }
  context.getMetaData().addDescriptorProcessor(new StandardDescriptorProcessor());
}

代码示例来源:origin: org.eclipse.jetty/jetty-webapp

if (context.isStarted())

代码示例来源:origin: org.eclipse.jetty/jetty-webapp

if (context.isStarted())

代码示例来源:origin: jenkinsci/winstone

/**
 * @param configurations The configurations to set.
 */
public void setConfigurations(Configuration[] configurations)
{
  if (isStarted())
    throw new IllegalStateException();
  _configurations.clear();
  if (configurations!=null)
    _configurations.addAll(Arrays.asList(configurations));
}

代码示例来源:origin: jenkinsci/winstone

/**
 * @param configurations The configuration class names.  If setConfigurations is not called
 * these classes are used to create a configurations array.
 */
public void setConfigurationClasses(String[] configurations)
{
  if (isStarted())
    throw new IllegalStateException();
  _configurationClasses.clear();
  if (configurations!=null)
    _configurationClasses.addAll(Arrays.asList(configurations));
  _configurations.clear();
}

代码示例来源:origin: jenkinsci/winstone

/** Set temporary directory for context.
 * The javax.servlet.context.tempdir attribute is also set.
 * @param dir Writable temporary directory.
 */
public void setTempDirectory(File dir)
{
  if (isStarted())
    throw new IllegalStateException("Started");
  if (dir!=null)
  {
    try{dir=new File(dir.getCanonicalPath());}
    catch (IOException e){LOG.warn(Log.EXCEPTION,e);}
  }
  _tmpDir=dir;
  setAttribute(TEMPDIR,_tmpDir);            
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

if (isStarted())
  throw new IllegalStateException("Started");

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

if (isStarted())
  throw new IllegalStateException("Started");

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

if (isStarted())
  throw new IllegalStateException("Started");

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

/**
 * Process web-default.xml, web.xml, override-web.xml
 * 
 */
@Override
public void configure (WebAppContext context) throws Exception
{
  // cannot configure if the context is already started
  if (context.isStarted())
  {
    LOG.debug("Cannot configure webapp after it is started");
    return;
  }
  context.getMetaData().addDescriptorProcessor(new StandardDescriptorProcessor());
}

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

/**
 * Process web-default.xml, web.xml, override-web.xml
 * 
 */
@Override
public void configure (WebAppContext context) throws Exception
{
  // cannot configure if the context is already started
  if (context.isStarted())
  {
    LOG.debug("Cannot configure webapp after it is started");
    return;
  }
  context.getMetaData().addDescriptorProcessor(new StandardDescriptorProcessor());
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

/**
 * Process web-default.xml, web.xml, override-web.xml
 * 
 */
@Override
public void configure (WebAppContext context) throws Exception
{
  // cannot configure if the context is already started
  if (context.isStarted())
  {
    LOG.debug("Cannot configure webapp after it is started");
    return;
  }
  context.getMetaData().addDescriptorProcessor(new StandardDescriptorProcessor());
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

/**
 * Process web-default.xml, web.xml, override-web.xml
 * 
 */
@Override
public void configure (WebAppContext context) throws Exception
{
  // cannot configure if the context is already started
  if (context.isStarted())
  {
    LOG.debug("Cannot configure webapp after it is started");
    return;
  }
  context.getMetaData().addDescriptorProcessor(new StandardDescriptorProcessor());
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

/**
 * Process web-default.xml, web.xml, override-web.xml
 * 
 */
@Override
public void configure (WebAppContext context) throws Exception
{
  // cannot configure if the context is already started
  if (context.isStarted())
  {
    LOG.debug("Cannot configure webapp after it is started");
    return;
  }
  context.getMetaData().addDescriptorProcessor(new StandardDescriptorProcessor());
}

代码示例来源:origin: jenkinsci/winstone

/**
 * Process web-default.xml, web.xml, override-web.xml
 * 
 */
@Override
public void configure (WebAppContext context) throws Exception
{
  // cannot configure if the context is already started
  if (context.isStarted())
  {
    LOG.debug("Cannot configure webapp after it is started");
    return;
  }
  context.getMetaData().addDescriptorProcessor(new StandardDescriptorProcessor());
}

代码示例来源:origin: io.leopard/myjetty-workbench

protected String status(String code) {
  WebAppContext webapp = WebappServiceImpl.getInstance().getWebapp(code);
  if (webapp == null) {
    return "stopped";
  }
  if (webapp.isStarted()) {
    return "started";
  }
  else if (webapp.isStopped()) {
    return "stopped";
  }
  else if (webapp.isStarting()) {
    return "starting";
  }
  else if (webapp.isStopping()) {
    return "stopping";
  }
  throw new RuntimeException("未知状态");
}

代码示例来源:origin: org.gatein.wci/wci-jetty8

private void registerWebAppContext(WebAppContext ctx)
{
 if (!monitoredContexts.contains(ctx.getServletContext().getServletContextName()))
 {
   LOG.debug("Register lifecycle listener on webapp " + ctx.getContextPath());
   ctx.addLifeCycleListener(this);
   if (ctx.isStarted())
   {
    startWebAppContext(ctx);
   }
   monitoredContexts.add(ctx.getServletContext().getServletContextName());
 }
}

相关文章

WebAppContext类方法