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

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

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

WebAppContext.getDisplayName介绍

暂无

代码示例

代码示例来源:origin: ch.cern.hadoop/hadoop-common

@Override
public void addFilter(String name, String classname,
  Map<String, String> parameters) {
 final String[] USER_FACING_URLS = { "*.html", "*.jsp" };
 defineFilter(webAppContext, name, classname, parameters, USER_FACING_URLS);
 LOG.info("Added filter " + name + " (class=" + classname
   + ") to context " + webAppContext.getDisplayName());
 final String[] ALL_URLS = { "/*" };
 for (Map.Entry<Context, Boolean> e : defaultContexts.entrySet()) {
  if (e.getValue()) {
   Context ctx = e.getKey();
   defineFilter(ctx, name, classname, parameters, ALL_URLS);
   LOG.info("Added filter " + name + " (class=" + classname
     + ") to context " + ctx.getDisplayName());
  }
 }
 filterNames.add(name);
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

@Override
public void addFilter(String name, String classname,
  Map<String, String> parameters) {
 final String[] USER_FACING_URLS = { "*.html", "*.jsp" };
 defineFilter(webAppContext, name, classname, parameters, USER_FACING_URLS);
 LOG.info("Added filter " + name + " (class=" + classname
   + ") to context " + webAppContext.getDisplayName());
 final String[] ALL_URLS = { "/*" };
 for (Map.Entry<Context, Boolean> e : defaultContexts.entrySet()) {
  if (e.getValue()) {
   Context ctx = e.getKey();
   defineFilter(ctx, name, classname, parameters, ALL_URLS);
   LOG.info("Added filter " + name + " (class=" + classname
     + ") to context " + ctx.getDisplayName());
  }
 }
 filterNames.add(name);
}

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

public void setClassLoader(ClassLoader classLoader)
{
  super.setClassLoader(classLoader);
  if (classLoader!=null && classLoader instanceof WebAppClassLoader)
    ((WebAppClassLoader)classLoader).setName(getDisplayName());
}

代码示例来源:origin: io.hops/hadoop-common

@Override
public void addFilter(String name, String classname,
  Map<String, String> parameters) {
 final String[] USER_FACING_URLS = { "*.html", "*.jsp" };
 defineFilter(webAppContext, name, classname, parameters, USER_FACING_URLS);
 LOG.info("Added filter " + name + " (class=" + classname
   + ") to context " + webAppContext.getDisplayName());
 final String[] ALL_URLS = { "/*" };
 for (Map.Entry<Context, Boolean> e : defaultContexts.entrySet()) {
  if (e.getValue()) {
   Context ctx = e.getKey();
   defineFilter(ctx, name, classname, parameters, ALL_URLS);
   LOG.info("Added filter " + name + " (class=" + classname
     + ") to context " + ctx.getDisplayName());
  }
 }
 filterNames.add(name);
}

代码示例来源:origin: io.hops/hadoop-common

@Override
public void addFilter(String name, String classname,
  Map<String, String> parameters) {
 final String[] USER_FACING_URLS = { "*.html", "*.jsp" };
 defineFilter(webAppContext, name, classname, parameters, USER_FACING_URLS);
 LOG.info("Added filter " + name + " (class=" + classname
   + ") to context " + webAppContext.getDisplayName());
 final String[] ALL_URLS = { "/*" };
 for (Map.Entry<Context, Boolean> e : defaultContexts.entrySet()) {
  if (e.getValue()) {
   Context ctx = e.getKey();
   defineFilter(ctx, name, classname, parameters, ALL_URLS);
   LOG.info("Added filter " + name + " (class=" + classname
     + ") to context " + ctx.getDisplayName());
  }
 }
 filterNames.add(name);
}

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

/** {@inheritDoc} */
public void addFilter(String name, String classname,
  Map<String, String> parameters) {
 final String[] USER_FACING_URLS = { "*.html", "*.jsp" };
 defineFilter(webAppContext, name, classname, parameters, USER_FACING_URLS);
 LOG.info("Added filter " + name + " (class=" + classname
   + ") to context " + webAppContext.getDisplayName());
 final String[] ALL_URLS = { "/*" };
 for (Map.Entry<Context, Boolean> e : defaultContexts.entrySet()) {
  if (e.getValue()) {
   Context ctx = e.getKey();
   defineFilter(ctx, name, classname, parameters, ALL_URLS);
   LOG.info("Added filter " + name + " (class=" + classname
     + ") to context " + ctx.getDisplayName());
  }
 }
 filterNames.add(name);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-common

@Override
public void addFilter(String name, String classname,
  Map<String, String> parameters) {
 FilterHolder filterHolder = getFilterHolder(name, classname, parameters);
 final String[] USER_FACING_URLS = { "*.html", "*.jsp" };
 FilterMapping fmap = getFilterMapping(name, USER_FACING_URLS);
 defineFilter(webAppContext, filterHolder, fmap);
 LOG.info(
   "Added filter " + name + " (class=" + classname + ") to context " + webAppContext.getDisplayName());
 final String[] ALL_URLS = { "/*" };
 fmap = getFilterMapping(name, ALL_URLS);
 for (Map.Entry<Context, Boolean> e : defaultContexts.entrySet()) {
  if (e.getValue()) {
   Context ctx = e.getKey();
   defineFilter(ctx, filterHolder, fmap);
   LOG.info("Added filter " + name + " (class=" + classname
     + ") to context " + ctx.getDisplayName());
  }
 }
 filterNames.add(name);
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

@Override
public void addFilter(String name, String classname,
  Map<String, String> parameters) {
 FilterHolder filterHolder = getFilterHolder(name, classname, parameters);
 final String[] USER_FACING_URLS = { "*.html", "*.jsp" };
 FilterMapping fmap = getFilterMapping(name, USER_FACING_URLS);
 defineFilter(webAppContext, filterHolder, fmap);
 LOG.info(
   "Added filter " + name + " (class=" + classname + ") to context " + webAppContext.getDisplayName());
 final String[] ALL_URLS = { "/*" };
 fmap = getFilterMapping(name, ALL_URLS);
 for (Map.Entry<Context, Boolean> e : defaultContexts.entrySet()) {
  if (e.getValue()) {
   Context ctx = e.getKey();
   defineFilter(ctx, filterHolder, fmap);
   LOG.info("Added filter " + name + " (class=" + classname
     + ") to context " + ctx.getDisplayName());
  }
 }
 filterNames.add(name);
}

代码示例来源:origin: io.hops/hadoop-common

@Override
public void addFilter(String name, String classname,
  Map<String, String> parameters) {
 FilterHolder filterHolder = getFilterHolder(name, classname, parameters);
 final String[] USER_FACING_URLS = { "*.html", "*.jsp" };
 FilterMapping fmap = getFilterMapping(name, USER_FACING_URLS);
 defineFilter(webAppContext, filterHolder, fmap);
 LOG.info(
   "Added filter " + name + " (class=" + classname + ") to context " + webAppContext.getDisplayName());
 final String[] ALL_URLS = { "/*" };
 fmap = getFilterMapping(name, ALL_URLS);
 for (Map.Entry<Context, Boolean> e : defaultContexts.entrySet()) {
  if (e.getValue()) {
   Context ctx = e.getKey();
   defineFilter(ctx, filterHolder, fmap);
   LOG.info("Added filter " + name + " (class=" + classname
     + ") to context " + ctx.getDisplayName());
  }
 }
 filterNames.add(name);
}

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

public void dumpUrl() 
{
  Connector[] connectors = getServer().getConnectors();
  for (int i=0;i<connectors.length;i++) 
  {
    String connectorName = connectors[i].getName();
    String displayName = getDisplayName();
    if (displayName == null)
      displayName = "WebApp@"+connectors.hashCode();
        Log.info(displayName + " at http://" + connectorName + getContextPath());
  }
}

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

LOG.error(
   "Error while stopping listener for webapp"
     + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web app context for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
 LOG.error(
   "Error while stopping web server for webapp "
     + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);

代码示例来源:origin: org.apache.tajo/tajo-core

LOG.error(
   "Error while stopping listener for webapp"
     + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web app context for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
 LOG.error(
   "Error while stopping web server for webapp "
     + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);

代码示例来源:origin: io.hops/hadoop-common

LOG.error(
    "Error while stopping listener for webapp"
      + webAppContext.getDisplayName(), e);
  exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web app context for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web server for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);

代码示例来源:origin: io.hops/hadoop-common

} catch (Exception e) {
 LOG.error("Error while stopping listener for webapp"
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web app context for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web server for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);

代码示例来源:origin: ch.cern.hadoop/hadoop-common

} catch (Exception e) {
 LOG.error("Error while stopping listener for webapp"
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web app context for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web server for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

} catch (Exception e) {
 LOG.error("Error while stopping listener for webapp"
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web app context for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web server for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);

代码示例来源:origin: io.hops/hadoop-common

LOG.error(
    "Error while stopping listener for webapp"
      + webAppContext.getDisplayName(), e);
  exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web app context for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web server for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);

代码示例来源:origin: ch.cern.hadoop/hadoop-common

LOG.error(
    "Error while stopping listener for webapp"
      + webAppContext.getDisplayName(), e);
  exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web app context for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web server for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

LOG.error(
    "Error while stopping listener for webapp"
      + webAppContext.getDisplayName(), e);
  exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web app context for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);
} catch (Exception e) {
 LOG.error("Error while stopping web server for webapp "
   + webAppContext.getDisplayName(), e);
 exception = addMultiException(exception, e);

代码示例来源:origin: org.sonatype.plexus/plexus-jetty6

public void lifeCycleStarting( LifeCycle lifecycle )
{
  if ( lifecycle instanceof ContextHandlerCollection )
  {
    Logger logger = Log.getLogger( getClass().getName() );
    Handler[] childHandlers = ((ContextHandlerCollection) lifecycle).getChildHandlers();
    if ( childHandlers != null && childHandlers.length > 0 )
    {
      for ( Handler child : childHandlers )
      {
        if ( child instanceof WebAppContext )
        {
          WebAppContext webapp = (WebAppContext) child;
          if ( logger != null )
          {
            logger.info( "Injecting Plexus container for: {} (context path: {})", webapp.getDisplayName(),
                   webapp.getContextPath() );
          }
          PlexusContainer container = PlexusContainerHolder.get();
          webapp.setAttribute( PlexusConstants.PLEXUS_KEY, container );
          webapp.setClassLoader( container.getContainerRealm() );
        }
      }
    }
  }
}

相关文章

WebAppContext类方法