ro.isdc.wro.model.resource.processor.support
Class FallbackCssDataUriUrlInspector

java.lang.Object
  extended by ro.isdc.wro.model.resource.processor.support.CssUrlInspector
      extended by ro.isdc.wro.model.resource.processor.support.FallbackCssDataUriUrlInspector

public class FallbackCssDataUriUrlInspector
extends CssUrlInspector

Similar to CssUrlInspector but responsible for Preserving the original css uri along with the new one. This should work also with browsers which do not support dataURI's.

Since:
1.6.3
Author:
Alex Objelean

Nested Class Summary
 
Nested classes/interfaces inherited from class ro.isdc.wro.model.resource.processor.support.CssUrlInspector
CssUrlInspector.ItemHandler
 
Constructor Summary
FallbackCssDataUriUrlInspector()
           
 
Method Summary
protected  Matcher getMatcher(String content)
          
protected  String getOriginalDeclaration(Matcher matcher)
          
protected  String getOriginalUrl(Matcher matcher)
          
 
Methods inherited from class ro.isdc.wro.model.resource.processor.support.CssUrlInspector
findAndReplace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FallbackCssDataUriUrlInspector

public FallbackCssDataUriUrlInspector()
Method Detail

getMatcher

protected Matcher getMatcher(String content)

Overrides:
getMatcher in class CssUrlInspector
Returns:
the Matcher for processed css content.

getOriginalDeclaration

protected String getOriginalDeclaration(Matcher matcher)

Overrides:
getOriginalDeclaration in class CssUrlInspector
Parameters:
matcher - the Matcher used to find url occurances.
Returns:
the string representing entire css declaration containing the url.

getOriginalUrl

protected String getOriginalUrl(Matcher matcher)

Overrides:
getOriginalUrl in class CssUrlInspector
Parameters:
matcher - the Matcher used to find url occurances.
Returns:
the url found in css declaration.


Copyright © 2008-2013. All Rights Reserved.