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

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

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

WebAppContext.getServerClasses介绍

暂无

代码示例

代码示例来源:origin: apache/nifi

List<String> serverClasses = new ArrayList<>(Arrays.asList(webappContext.getServerClasses()));
serverClasses.remove("org.slf4j.");
webappContext.setServerClasses(serverClasses.toArray(new String[0]));

代码示例来源:origin: apache/nifi-minifi

List<String> serverClasses = new ArrayList<>(Arrays.asList(webappContext.getServerClasses()));
serverClasses.remove("org.slf4j.");
webappContext.setServerClasses(serverClasses.toArray(new String[0]));

代码示例来源:origin: org.apache.nifi.minifi/minifi-c2-jetty

List<String> serverClasses = new ArrayList<>(Arrays.asList(webappContext.getServerClasses()));
serverClasses.remove("org.slf4j.");
webappContext.setServerClasses(serverClasses.toArray(new String[0]));

代码示例来源:origin: org.apache.nifi.registry/nifi-registry-jetty

List<String> serverClasses = new ArrayList<>(Arrays.asList(webappContext.getServerClasses()));
serverClasses.remove("org.slf4j.");
webappContext.setServerClasses(serverClasses.toArray(new String[0]));

代码示例来源:origin: org.mortbay.jetty/jetty-maven-plugin

public void configure(WebAppContext context) throws Exception
{
  JettyWebAppContext jwac = (JettyWebAppContext)context;
  if (jwac.getClassPathFiles() != null)
  {
    if (LOG.isDebugEnabled()) LOG.debug("Setting up classpath ...");
    //put the classes dir and all dependencies into the classpath
    Iterator itor = jwac.getClassPathFiles().iterator();
    while (itor.hasNext())
      ((WebAppClassLoader)context.getClassLoader()).addClassPath(((File)itor.next()).getCanonicalPath());
    if (LOG.isDebugEnabled())
      LOG.debug("Classpath = "+LazyList.array2List(((URLClassLoader)context.getClassLoader()).getURLs()));
  }
  super.configure(context);
  
  // knock out environmental maven and plexus classes from webAppContext
  String[] existingServerClasses = context.getServerClasses();
  String[] newServerClasses = new String[2+(existingServerClasses==null?0:existingServerClasses.length)];
  newServerClasses[0] = "org.apache.maven.";
  newServerClasses[1] = "org.codehaus.plexus.";
  System.arraycopy( existingServerClasses, 0, newServerClasses, 2, existingServerClasses.length );
  if (LOG.isDebugEnabled())
  {
    LOG.debug("Server classes:");
    for (int i=0;i<newServerClasses.length;i++)
      LOG.debug(newServerClasses[i]);
  }
  context.setServerClasses( newServerClasses ); 
}

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

String[] old_server_classes = context.getServerClasses();
try
  if (context.getServerClasses()==null)
    context.setServerClasses(old_server_classes);

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

String[] old_server_classes = context.getServerClasses();
try
  if (context.getServerClasses()==null)
    context.setServerClasses(old_server_classes);

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

String[] old_server_classes = context.getServerClasses();
try
  if (context.getServerClasses()==null)
    context.setServerClasses(old_server_classes);

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

String[] old_server_classes = context.getServerClasses();
try

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

String[] old_server_classes = context.getServerClasses();
try

相关文章

WebAppContext类方法