/** * Returns true if the links in the static export should be relative.<p> * * @param vfsName the name of the resource to export * * @return true if the links in the static export should be relative */ public boolean relativeLinksInExport(String vfsName) { if (vfsName != null) { Iterator<CmsStaticExportRfsRule> it = m_rfsRules.iterator(); while (it.hasNext()) { CmsStaticExportRfsRule rule = it.next(); if (rule.getSource().matcher(vfsName).matches()) { return rule.getUseRelativeLinks() != null ? rule.getUseRelativeLinks().booleanValue() : m_exportRelativeLinks; } } } return m_exportRelativeLinks; }
while (it.hasNext()) { CmsStaticExportRfsRule rule = (CmsStaticExportRfsRule)it.next(); if (rule.getSource().matcher(vfsName).matches()) { return rule.getRfsPrefix();
while (it.hasNext()) { CmsStaticExportRfsRule rule = it.next(); if (rule.getSource().matcher(vfsName).matches()) { return rule.getRfsPrefix();
/** * Returns true if the links in the static export should be relative.<p> * * @param vfsName the name of the resource to export * * @return true if the links in the static export should be relative */ public boolean relativeLinksInExport(String vfsName) { if (vfsName != null) { Iterator it = m_rfsRules.iterator(); while (it.hasNext()) { CmsStaticExportRfsRule rule = (CmsStaticExportRfsRule)it.next(); if (rule.getSource().matcher(vfsName).matches()) { return rule.getUseRelativeLinks() != null ? rule.getUseRelativeLinks().booleanValue() : m_exportRelativeLinks; } } } return m_exportRelativeLinks; }
while (it.hasNext()) { CmsStaticExportRfsRule rule = it.next(); if (rule.getSource().matcher(vfsName).matches()) { return rule.getExportPath();
while (it.hasNext()) { CmsStaticExportRfsRule rule = (CmsStaticExportRfsRule)it.next(); if (rule.getSource().matcher(vfsName).matches()) { return rule.getExportPath();
while (it.hasNext()) { CmsStaticExportRfsRule rule = (CmsStaticExportRfsRule)it.next(); if (rule.getSource().matcher(source).matches() && rule.match(vfsName)) { return rule.getRfsPrefix().concat(rfsName);
while (it.hasNext()) { CmsStaticExportRfsRule rule = it.next(); if (rule.getSource().matcher(source).matches() && rule.match(vfsName)) { return rule.getRfsPrefix().concat(rfsName);
Messages.get().getBundle().key( Messages.INIT_EXPORT_RFS_RULE_EXPORT_PATH_2, rfsRule.getSource(), rfsRule.getExportPath())); CmsLog.INIT.info( Messages.get().getBundle().key( Messages.INIT_EXPORT_RFS_RULE_RFS_PREFIX_2, rfsRule.getSource(), rfsRule.getRfsPrefix())); if (rfsRule.getUseRelativeLinks() != null) { Messages.get().getBundle().key( Messages.INIT_EXPORT_RFS_RULE_RELATIVE_LINKS_1, rfsRule.getSource())); } else { CmsLog.INIT.info( Messages.get().getBundle().key( Messages.INIT_EXPORT_RFS_RULE_ABSOLUTE_LINKS_1, rfsRule.getSource()));
CmsLog.INIT.info(Messages.get().getBundle().key( Messages.INIT_EXPORT_RFS_RULE_EXPORT_PATH_2, rfsRule.getSource(), rfsRule.getExportPath())); CmsLog.INIT.info(Messages.get().getBundle().key( Messages.INIT_EXPORT_RFS_RULE_RFS_PREFIX_2, rfsRule.getSource(), rfsRule.getRfsPrefix())); if (rfsRule.getUseRelativeLinks() != null) { CmsLog.INIT.info(Messages.get().getBundle().key( Messages.INIT_EXPORT_RFS_RULE_RELATIVE_LINKS_1, rfsRule.getSource())); } else { CmsLog.INIT.info(Messages.get().getBundle().key( Messages.INIT_EXPORT_RFS_RULE_ABSOLUTE_LINKS_1, rfsRule.getSource()));
rfsRuleElement.addElement(N_STATICEXPORT_NAME).addText(rule.getName()); rfsRuleElement.addElement(N_STATICEXPORT_DESCRIPTION).addText(rule.getDescription()); rfsRuleElement.addElement(N_STATICEXPORT_SOURCE).addText(rule.getSource().pattern()); rfsRuleElement.addElement(N_STATICEXPORT_RFS_PREFIX).addText(rule.getRfsPrefixConfigured()); rfsRuleElement.addElement(N_STATICEXPORT_EXPORTPATH).addText(rule.getExportPathConfigured());
rfsRuleElement.addElement(N_STATICEXPORT_NAME).addText(rule.getName()); rfsRuleElement.addElement(N_STATICEXPORT_DESCRIPTION).addText(rule.getDescription()); rfsRuleElement.addElement(N_STATICEXPORT_SOURCE).addText(rule.getSource().pattern()); rfsRuleElement.addElement(N_STATICEXPORT_RFS_PREFIX).addText(rule.getRfsPrefixConfigured()); rfsRuleElement.addElement(N_STATICEXPORT_EXPORTPATH).addText(rule.getExportPathConfigured());
CmsStaticExportRfsRule rule = it.next(); boolean export = rule.getSource().matcher(siteRoot + vfsName).matches(); matched |= export;
CmsStaticExportRfsRule rule = (CmsStaticExportRfsRule)it.next(); boolean export = rule.getSource().matcher(siteRoot + vfsName).matches(); matched |= export;