gpt4 book ai didi

org.eclipse.jst.j2ee.webapplication.WebApp.getFilterMappings()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 13:21:05 27 4
gpt4 key购买 nike

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

WebApp.getFilterMappings介绍

暂无

代码示例

代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.ui

public Collection getChildren(Object object) {
  Object webApp = weakWebApp.get();
  if(null != webApp){
    return ((WebApp)webApp).getFilterMappings();
  }
  return Collections.EMPTY_LIST;
}

代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.core

public ModuleFile copy(ModuleFile aModuleFile) {
  /**
   * Timing issue; if the resources containing the bindings, extensions, and dd have not yet
   * be loaded, force that before the copy occurs; otherwise, they will get loaded as the
   * accessors are invoked during copy. Because they will be loaded but not copied into the
   * new archive's context, then changes will not get saved. By forcing the load before the
   * copy commences, the loaded resources will also be copied to the new archive
   */
  aModuleFile.getStandardDeploymentDescriptor();
  /*
   * RLS-8/12/2002 Hack to fix botp defect "141640-failed to install .war file with
   * filter-mapping" The problem is that there is a transient field on the filter mapping
   * class for the servlet name the relationship to the servlet is lazily populated the first
   * time it is requested. If we don't trip it, then it won't get copied.
   */
  if (aModuleFile.isWARFile()) {
    List filterMappings = ((WARFile) aModuleFile).getDeploymentDescriptor().getFilterMappings();
    for (int i = 0; i < filterMappings.size(); i++) {
      ((FilterMapping) filterMappings.get(i)).getServlet();
    }
  }
  ModuleFile copied = (ModuleFile) copy((Archive) aModuleFile);
  return copied;
}

代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.core

/**
 * WAR validation is driven by 3 prong approach: o XML/DTD validation (this is now handled by
 * the XML Validator) o Consistent web.xml data entry validation beyond DTD e.g., duplicate
 * entries, null entries etc. This is also driven by this validator. o web.xml reference to
 * resources in the "file system". This will not be provided by this validator. In the workbench
 * this function is already provided by the link builder.
 * 
 */
public void validate() throws ValidationException {
  validateMimeMapping();
  validateContextParameters();
  validateTagLibs();
  validateServletMappings(webDD.getServletMappings());
  validateWelcomeFileList(webDD.getFileList());
  validateErrorPages(webDD.getErrorPages());
  validateSecurityAndServlets();
  validateFilters(webDD.getFilters());
  validateFilterMappings(webDD.getFilterMappings());
  validateRefs();
  validateLoginConfig(webDD.getLoginConfig());
  validateEnvironmentEntries(webDD.getEnvironmentProperties());
  validateOther();
  validate14();
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com