protected abstract static class CssLinkResourceTransformer.AbstractLinkParser extends Object implements CssLinkResourceTransformer.LinkParser
Modifier | Constructor and Description |
---|---|
protected |
AbstractLinkParser() |
Modifier and Type | Method and Description |
---|---|
protected int |
extractLink(int index,
char endChar,
String content,
Set<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result) |
protected abstract int |
extractUnquotedLink(int position,
String content,
Set<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> linksToAdd)
Invoked after a keyword match, after whitespaces removed, and when
the next char is neither a single nor double quote.
|
protected abstract String |
getKeyword()
Return the keyword to use to search for links, e.g.
|
void |
parse(String content,
SortedSet<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result) |
protected abstract String getKeyword()
public void parse(String content, SortedSet<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result)
parse
in interface CssLinkResourceTransformer.LinkParser
protected int extractLink(int index, char endChar, String content, Set<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result)
protected abstract int extractUnquotedLink(int position, String content, Set<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> linksToAdd)