Class CustomUrlImporter

Direct Known Subclasses:
ClasspathImporter, RelativeUrlImporter, Servlet5ContextImporter, SpringResourceImporter

public abstract class CustomUrlImporter extends CustomImporter
  • Constructor Details

    • CustomUrlImporter

      public CustomUrlImporter()
  • Method Details

    • 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
    • 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 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
    • isFile

      protected boolean isFile(URL url) throws IOException
      Throws:
      IOException