org.springframework.web.reactive.resource

Class CssLinkResourceTransformer.AbstractLinkParser

  • java.lang.Object
    • org.springframework.web.reactive.resource.CssLinkResourceTransformer.AbstractLinkParser
    • Constructor Summary

      Constructors 
      Modifier Constructor and Description
      protected AbstractLinkParser() 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      protected int extractLink(int index, char endChar, java.lang.String content, java.util.Set<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result) 
      protected abstract int extractUnquotedLink(int position, java.lang.String content, java.util.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 java.lang.String getKeyword()
      Return the keyword to use to search for links, e.g.
      void parse(java.lang.String content, java.util.SortedSet<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractLinkParser

        protected AbstractLinkParser()
    • Method Detail

      • getKeyword

        protected abstract java.lang.String getKeyword()
        Return the keyword to use to search for links, e.g. "@import", "url("
      • parse

        public void parse(java.lang.String content,
                          java.util.SortedSet<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result)
        Specified by:
        parse in interface CssLinkResourceTransformer.LinkParser
      • extractLink

        protected int extractLink(int index,
                                  char endChar,
                                  java.lang.String content,
                                  java.util.Set<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result)
      • extractUnquotedLink

        protected abstract int extractUnquotedLink(int position,
                                                   java.lang.String content,
                                                   java.util.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.