Class CssLinkResourceTransformer.AbstractLinkParser
java.lang.Object
org.springframework.web.reactive.resource.CssLinkResourceTransformer.AbstractLinkParser
- All Implemented Interfaces:
- CssLinkResourceTransformer.LinkParser
- Enclosing class:
- CssLinkResourceTransformer
protected abstract static class CssLinkResourceTransformer.AbstractLinkParser
extends Object
implements CssLinkResourceTransformer.LinkParser
Abstract base class for 
CssLinkResourceTransformer.LinkParser implementations.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected intextractLink(int index, char endChar, String content, Set<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result) protected abstract intextractUnquotedLink(int position, String content, Set<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> linksToAdd) Invoked after a keyword match, after whitespace has been removed, and when the next char is neither a single nor double quote.protected abstract StringReturn the keyword to use to search for links, for example, "@import", "url(".voidparse(String content, SortedSet<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result) 
- 
Constructor Details- 
AbstractLinkParserprotected AbstractLinkParser()
 
- 
- 
Method Details- 
getKeywordReturn the keyword to use to search for links, for example, "@import", "url(".
- 
parsepublic void parse(String content, SortedSet<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result) - Specified by:
- parsein interface- CssLinkResourceTransformer.LinkParser
 
- 
extractLink
- 
extractUnquotedLinkprotected abstract int extractUnquotedLink(int position, String content, Set<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> linksToAdd) Invoked after a keyword match, after whitespace has been removed, and when the next char is neither a single nor double quote.
 
-