Class CustomUrlImporter
- java.lang.Object
-
- de.larsgrefer.sass.embedded.importer.Importer
-
- de.larsgrefer.sass.embedded.importer.CustomImporter
-
- de.larsgrefer.sass.embedded.importer.CustomUrlImporter
-
- Direct Known Subclasses:
ClasspathImporter
,RelativeUrlImporter
,ServletContextImporter
,SpringResourceImporter
public abstract class CustomUrlImporter extends CustomImporter
-
-
Constructor Summary
Constructors Constructor Description CustomUrlImporter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
canonicalize(String url, boolean fromImport)
abstract URL
canonicalizeUrl(String url)
sass.embedded_protocol.EmbeddedSass.InboundMessage.ImportResponse.ImportSuccess
handleImport(String string)
sass.embedded_protocol.EmbeddedSass.InboundMessage.ImportResponse.ImportSuccess
handleImport(URL url)
protected boolean
isFile(URL url)
-
Methods inherited from class de.larsgrefer.sass.embedded.importer.CustomImporter
autoCanonicalize
-
-
-
-
Method Detail
-
canonicalize
public String canonicalize(String url, boolean fromImport) throws Exception
- Specified by:
canonicalize
in classCustomImporter
- Parameters:
url
- The URL of the import to be canonicalized. This may be either absolute or relative.fromImport
- Whether this request comes from an `@import` rule.- Returns:
- The canonicalized URL (including a scheme)
- Throws:
Exception
- See Also:
EmbeddedSass.OutboundMessage.CanonicalizeRequest
-
canonicalizeUrl
@Nullable public abstract URL canonicalizeUrl(String url) throws Exception
- Throws:
Exception
-
handleImport
public sass.embedded_protocol.EmbeddedSass.InboundMessage.ImportResponse.ImportSuccess handleImport(String string) throws Exception
- Specified by:
handleImport
in classCustomImporter
- Parameters:
string
- The url to import- Throws:
Exception
- See Also:
EmbeddedSass.OutboundMessage.ImportRequest
-
handleImport
public sass.embedded_protocol.EmbeddedSass.InboundMessage.ImportResponse.ImportSuccess handleImport(URL url) throws Exception
- Throws:
Exception
-
isFile
protected boolean isFile(URL url) throws IOException
- Throws:
IOException
-
-