protected abstract static class CssLinkResourceTransformer.AbstractCssLinkParser extends java.lang.Object implements CssLinkResourceTransformer.CssLinkParser
Modifier | Constructor and Description |
---|---|
protected |
AbstractCssLinkParser() |
Modifier and Type | Method and Description |
---|---|
protected int |
addLink(int index,
java.lang.String endKey,
java.lang.String content,
java.util.Set<org.springframework.web.servlet.resource.CssLinkResourceTransformer.CssLinkInfo> linkInfos) |
protected abstract int |
extractLink(int index,
java.lang.String content,
java.util.Set<org.springframework.web.servlet.resource.CssLinkResourceTransformer.CssLinkInfo> linkInfos)
Invoked after a keyword match, after whitespaces removed, and when
the next char is neither a single nor double quote.
|
protected abstract java.lang.String |
getKeyword()
Return the keyword to use to search for links.
|
void |
parseLink(java.lang.String content,
java.util.Set<org.springframework.web.servlet.resource.CssLinkResourceTransformer.CssLinkInfo> linkInfos) |
protected abstract java.lang.String getKeyword()
public void parseLink(java.lang.String content, java.util.Set<org.springframework.web.servlet.resource.CssLinkResourceTransformer.CssLinkInfo> linkInfos)
parseLink
in interface CssLinkResourceTransformer.CssLinkParser
protected int addLink(int index, java.lang.String endKey, java.lang.String content, java.util.Set<org.springframework.web.servlet.resource.CssLinkResourceTransformer.CssLinkInfo> linkInfos)
protected abstract int extractLink(int index, java.lang.String content, java.util.Set<org.springframework.web.servlet.resource.CssLinkResourceTransformer.CssLinkInfo> linkInfos)