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:
        EmbeddedSass.OutboundMessage.CanonicalizeRequest
      • handleImport

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