public abstract class CustomUrlImporter extends CustomImporter
| Constructor and Description |
|---|
CustomUrlImporter() |
| Modifier and Type | Method and 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) |
autoCanonicalizepublic String canonicalize(String url, boolean fromImport) throws Exception
canonicalize in class CustomImporterurl - The URL of the import to be canonicalized. This may be either absolute or relative.fromImport - Whether this request comes from an `@import` rule.ExceptionEmbeddedSass.OutboundMessage.CanonicalizeRequest@Nullable public abstract URL canonicalizeUrl(String url) throws Exception
Exceptionpublic sass.embedded_protocol.EmbeddedSass.InboundMessage.ImportResponse.ImportSuccess handleImport(String string) throws Exception
handleImport in class CustomImporterstring - The url to importExceptionEmbeddedSass.OutboundMessage.ImportRequestpublic sass.embedded_protocol.EmbeddedSass.InboundMessage.ImportResponse.ImportSuccess handleImport(URL url) throws Exception
Exceptionprotected boolean isFile(URL url) throws IOException
IOException