Package org.meshcms.core

Examples of org.meshcms.core.WebSite


          doc.createElementNS("http://www.sitemaps.org/schemas/sitemap/0.9",
          "urlset");
      //urlset.setAttribute("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9");
      doc.appendChild(urlset);

      WebSite webSite =
          (WebSite) request.getAttribute(HitFilter.WEBSITE_ATTRIBUTE);

      if (webSite != null) {
        SiteMap siteMap = webSite.getSiteMap();
        List pagesList = siteMap.getPagesList();

        for (Iterator iter = pagesList.iterator(); iter.hasNext();) {
          PageInfo pageInfo = (PageInfo) iter.next();

          if (pageInfo.getPath().isRoot() &&
              webSite.getConfiguration().isRedirectRoot() &&
              HitFilter.getPreferredLanguage(request) != null) {
            continue;
          }

          Element url = doc.createElement("url");
View Full Code Here

TOP

Related Classes of org.meshcms.core.WebSite

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.