本文整理了Java中org.eclipse.jetty.webapp.WebAppContext.setSystemClasses()
方法的一些代码示例,展示了WebAppContext.setSystemClasses()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebAppContext.setSystemClasses()
方法的具体详情如下:
包路径:org.eclipse.jetty.webapp.WebAppContext
类名称:WebAppContext
方法名:setSystemClasses
[英]Set the system classes patterns.
System classes/packages are classes provided by the JVM and that cannot be replaced by classes of the same name from WEB-INF, regardless of the value of #setParentLoaderPriority(boolean). A ClasspathPattern is used to match the system classes.
[中]
代码示例来源:origin: org.terracotta/terracotta-l1-ee
restContext.setSystemClasses(systemClasses.toArray(new String[systemClasses.size()]));
代码示例来源:origin: org.terracotta/terracotta-ee
restContext.setSystemClasses(systemClasses.toArray(new String[systemClasses.size()]));
代码示例来源:origin: org.mule.transports/mule-transport-jetty
@Override
public ContextHandler createContextHandler(App app) throws Exception
{
WebAppContext webAppContext = (WebAppContext) super.createContextHandler(app);
if (webappsConfiguration.getServerClasses() != null)
{
webAppContext.setServerClasses(webappsConfiguration.getServerClasses());
}
if (webappsConfiguration.getSystemClasses() != null)
{
webAppContext.setSystemClasses(webappsConfiguration.getSystemClasses());
}
File workDir = new File(muleContext.getConfiguration().getWorkingDirectory(),
"_exploded_wars" + webAppContext.getContextPath());
workDir.mkdirs();
webAppContext.setTempDirectory(workDir);
webAppContext.setAttribute(MULE_CONTEXT_ATTRIBUTE, muleContext);
webAppContext.setVirtualHosts(new String[] {getVirtualHostName(jettyConnector)});
if (logger.isInfoEnabled())
{
String msg = String.format("Will deploy a web app at %s://%s%s%s",
"http", jettyConnector.getHost(),
jettyConnector.getPort() == 80 ? StringUtils.EMPTY : ":" + jettyConnector.getPort(),
webAppContext.getContextPath());
logger.info(StringMessageUtils.getBoilerPlate(msg, '*', 70));
}
return webAppContext;
}
};
内容来源于网络,如有侵权,请联系作者删除!