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

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

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

WebAppContext.setExtractWAR介绍

暂无

代码示例

代码示例来源:origin: com.mysema.commons/mysema-commons-jetty

public static JettyConfig startJetty(JettyConfig config) {
  WebAppContext webappcontext = new WebAppContext();
  webappcontext.setContextPath(config.contextPath);
  webappcontext.setWar(config.warPath);
  if (new File(config.warPath).isFile()) {
    webappcontext.setExtractWAR(true);
  }
  return startJetty(config, webappcontext);
}

代码示例来源:origin: org.apache.jackrabbit/jackrabbit-standalone

private void prepareWebapp(File file, File repository, File tmp) {
  webapp.setContextPath("/");
  webapp.setWar(file.getPath());
  webapp.setExtractWAR(false);
  webapp.setTempDirectory(tmp);
  ServletHolder servlet =
    new ServletHolder(JackrabbitRepositoryServlet.class);
  servlet.setInitOrder(1);
  servlet.setInitParameter("repository.home", repository.getPath());
  String conf = command.getOptionValue("conf");
  if (conf != null) {
    servlet.setInitParameter("repository.config", conf);
  }
  webapp.addServlet(servlet, "/repository.properties");
}

代码示例来源:origin: senseidb/zoie

int index = fileName.lastIndexOf(".war");
fileName = fileName.substring(0, index);
web.setExtractWAR(true);

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

if (_defaultsDescriptor!=null)
  wah.setDefaultsDescriptor(_defaultsDescriptor);
wah.setExtractWAR(_extract);
wah.setWar(app.toString());
wah.setParentLoaderPriority(_parentLoaderPriority);

代码示例来源:origin: org.apache.commons/commons-vfs2

private void prepareWebapp(final File file, final File repository, final File tmp) {
  webapp.setContextPath("/");
  webapp.setWar(file.getPath());
  webapp.setClassLoader(JackrabbitMain.class.getClassLoader());
  // we use a modified web.xml which has some servlets remove (which produce random empty directories)
  final URL res = getResource("/jcrweb.xml");
  if (res != null) {
    webapp.setDescriptor(res.toString());
  }
  webapp.setExtractWAR(false);
  webapp.setTempDirectory(tmp);
  final ServletHolder servlet = new ServletHolder(JackrabbitRepositoryServlet.class);
  servlet.setInitOrder(1);
  servlet.setInitParameter("repository.home", repository.getAbsolutePath());
  final String conf = command.getOptionValue("conf");
  if (conf != null) {
    servlet.setInitParameter("repository.config", conf);
  }
  webapp.addServlet(servlet, "/repository.properties");
}

代码示例来源:origin: apache/commons-vfs

private void prepareWebapp(final File file, final File repository, final File tmp) {
  webapp.setContextPath("/");
  webapp.setWar(file.getPath());
  webapp.setClassLoader(JackrabbitMain.class.getClassLoader());
  // we use a modified web.xml which has some servlets remove (which produce random empty directories)
  final URL res = getResource("/jcrweb.xml");
  if (res != null) {
    webapp.setDescriptor(res.toString());
  }
  webapp.setExtractWAR(false);
  webapp.setTempDirectory(tmp);
  final ServletHolder servlet = new ServletHolder(JackrabbitRepositoryServlet.class);
  servlet.setInitOrder(1);
  servlet.setInitParameter("repository.home", repository.getAbsolutePath());
  final String conf = command.getOptionValue("conf");
  if (conf != null) {
    servlet.setInitParameter("repository.config", conf);
  }
  webapp.addServlet(servlet, "/repository.properties");
}

代码示例来源:origin: io.fabric8/fabric-hadoop

webAppContext.setDisplayName("WepAppsContext");
webAppContext.setContextPath("/");
webAppContext.setExtractWAR(false);
webAppContext.setCopyWebDir(false);
webAppContext.setWar(appDir + "/" + name + "/");

代码示例来源:origin: org.springframework.osgi/org.springframework.osgi.web

wac.setExtractWAR(true);

代码示例来源:origin: org.springframework.osgi/spring-osgi-web

wac.setExtractWAR(true);

相关文章

WebAppContext类方法