Interface KmlUrlSanitizer

  • All Implemented Interfaces:

    
    public interface KmlUrlSanitizer
    
                        

    Interface for sanitizing URLs in KML documents. Developers can implement this to control which external resources (images, etc.) are loaded.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String sanitizeUrl(String url) Sanitizes a URL before it is used to fetch a resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • sanitizeUrl

         abstract String sanitizeUrl(String url)

        Sanitizes a URL before it is used to fetch a resource.

        Parameters:
        url - The raw URL from the KML.
        Returns:

        A safe, validated URL string, or null to block this resource.