Class CustomUrlImporter

    • Constructor Detail

      • CustomUrlImporter

        public CustomUrlImporter()
    • Method Detail

      • canonicalize

        public String canonicalize​(String url,
                                   boolean fromImport)
                            throws Exception
        Specified by:
        canonicalize in class CustomImporter
        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
      • handleImport

        public com.sass_lang.embedded_protocol.InboundMessage.ImportResponse.ImportSuccess handleImport​(String string)
                                                                                                 throws Exception
        Specified by:
        handleImport in class CustomImporter
        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