public class SrcSetURLReplacer extends BaseURLReplacer

| Modifier and Type | Field and Description |
|---|---|
static String |
IMG |
static String |
IMG_SRCSET_ATTR |
| Constructor and Description |
|---|
SrcSetURLReplacer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(String tagName,
String attrName)
Return true if replacer can handle tag and attr
|
static String[] |
getURLsFromSrcSet(String srcSet) |
String |
replacePlaceholdersByRefs(String originalValue,
Map<Long,String> refs,
String workspaceName,
Locale locale,
JCRNodeWrapper parent)
replace placeholders by refs
|
String |
replaceRefsByPlaceholders(String originalValue,
Map<String,Long> newRefs,
Map<String,Long> oldRefs,
String workspace,
Locale locale,
JCRNodeWrapper node,
ExtendedPropertyDefinition definition)
replace refs by placeholders
|
getUrlInterceptor, setUrlInterceptorpublic static final String IMG
public static final String IMG_SRCSET_ATTR
public boolean canHandle(String tagName, String attrName)
canHandle in interface URLReplacercanHandle in class BaseURLReplacertagName - tag nameattrName - attribute namepublic String replaceRefsByPlaceholders(String originalValue, Map<String,Long> newRefs, Map<String,Long> oldRefs, String workspace, Locale locale, JCRNodeWrapper node, ExtendedPropertyDefinition definition) throws javax.jcr.RepositoryException
replaceRefsByPlaceholders in interface URLReplacerreplaceRefsByPlaceholders in class BaseURLReplacerjavax.jcr.RepositoryExceptionpublic String replacePlaceholdersByRefs(String originalValue, Map<Long,String> refs, String workspaceName, Locale locale, JCRNodeWrapper parent) throws javax.jcr.RepositoryException
replacePlaceholdersByRefs in interface URLReplacerreplacePlaceholdersByRefs in class BaseURLReplacerjavax.jcr.RepositoryExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.