Package 

Class ImageUrl

  • All Implemented Interfaces:
    com.mobwith.imgmodule.load.Key

    
    public class ImageUrl
     implements Key
                        

    A wrapper for strings representing http/https URLs responsible for ensuring URLs are properly escaped and avoiding unnecessary URL instantiations for loaders that require only string urls rather than URL objects.

    Users wishing to replace the class for handling URLs must register a factory using ImageModuleUrl.

    To obtain a properly escaped URL, call toURL. To obtain a properly escaped string URL, call toStringUrl. To obtain a less safe, but less expensive to calculate cache key, call getCacheKey.

    This class can also optionally wrap com.mobwith.imgmodule.load.model.Headers for convenience.