org.netbeans.modules.j2ee.dd.api.web.WebApp.getSingleWelcomeFileList()方法的使用及代码示例

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

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

WebApp.getSingleWelcomeFileList介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-project-jsf

public static void removeWelcomeFile(WebApp ddRoot, String facesMapping, String pageName) {
  // remove welcome file
  WelcomeFileList welcomeFiles = ddRoot.getSingleWelcomeFileList();
  if (welcomeFiles == null) {
    return;
  }
  String welcomePath;
  if (facesMapping.charAt(0) == '/') {
    // if the mapping start with '/' (like /faces/*), then the welcame file can be the mapping
    welcomeFiles.removeWelcomeFile(ConfigurationUtils.translateURI(facesMapping, pageName));
  } else {
    // if the mapping doesn't strat '/' (like *.jsf), then the welcome file has to be
    // a helper file, which will foward the request to the right url
    welcomeFiles.removeWelcomeFile(FORWARD_JSF);
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-javaee-project

if (ddRoot.getSingleWelcomeFileList() != null) {
  welcomeFiles.addAll(Arrays.asList(ddRoot.getSingleWelcomeFileList().getWelcomeFile()));

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-project-jsf

public static void setWelcomeFile(WebModule webModule, WebApp ddRoot, String facesMapping, String pageName) {
  WelcomeFileList welcomeFiles = ddRoot.getSingleWelcomeFileList();
  if (welcomeFiles == null) {
    try {

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-project

WelcomeFileList welcomeFiles = ddRoot.getSingleWelcomeFileList();
if (welcomeFiles == null) {
  welcomeFiles = (WelcomeFileList) ddRoot.createBean("WelcomeFileList");

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-jsf

WelcomeFileList welcomeFiles = ddRoot.getSingleWelcomeFileList();
List<String> welcomeFileList = new ArrayList<String>();

相关文章