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,JakartaServletContextImporter,JavaxServletContextImporter,RelativeUrlImporter,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 Stringcanonicalize(String url, boolean fromImport)abstract URLcanonicalizeUrl(String url)com.sass_lang.embedded_protocol.InboundMessage.ImportResponse.ImportSuccesshandleImport(String string)com.sass_lang.embedded_protocol.InboundMessage.ImportResponse.ImportSuccesshandleImport(URL url)protected booleanisFile(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:
canonicalizein 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:
OutboundMessage.CanonicalizeRequest
-
canonicalizeUrl
@Nullable public abstract URL canonicalizeUrl(String url) throws Exception
- Throws:
Exception
-
handleImport
public com.sass_lang.embedded_protocol.InboundMessage.ImportResponse.ImportSuccess handleImport(String string) throws Exception
- Specified by:
handleImportin classCustomImporter- Parameters:
string- The url to import- Throws:
Exception- See Also:
OutboundMessage.ImportRequest
-
handleImport
public com.sass_lang.embedded_protocol.InboundMessage.ImportResponse.ImportSuccess handleImport(URL url) throws Exception
- Throws:
Exception
-
isFile
protected boolean isFile(URL url) throws IOException
- Throws:
IOException
-
-