/** * 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; }
/** * 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; }
rfsRule.getSource(), rfsRule.getRfsPrefix())); if (rfsRule.getUseRelativeLinks() != null) { if (rfsRule.getUseRelativeLinks().booleanValue()) { CmsLog.INIT.info( Messages.get().getBundle().key(
rfsRule.getSource(), rfsRule.getRfsPrefix())); if (rfsRule.getUseRelativeLinks() != null) { if (rfsRule.getUseRelativeLinks().booleanValue()) { CmsLog.INIT.info(Messages.get().getBundle().key( Messages.INIT_EXPORT_RFS_RULE_RELATIVE_LINKS_1,
String.valueOf(rule.getExportBackups())); if (rule.getUseRelativeLinks() != null) { rfsRuleElement.addElement(N_STATICEXPORT_RELATIVELINKS).addText( rule.getUseRelativeLinks().toString());
String.valueOf(rule.getExportBackups())); if (rule.getUseRelativeLinks() != null) { rfsRuleElement.addElement(N_STATICEXPORT_RELATIVELINKS).addText( rule.getUseRelativeLinks().toString());