com.bumptech.glide.load.model
Class GlideUrl

java.lang.Object
  extended by com.bumptech.glide.load.model.GlideUrl

public class GlideUrl
extends Object

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 GlideUrl.

To obtain a properly escaped URL, call toURL(). To obtain a properly escaped string URL, call toURL() and then URL.toString().


Constructor Summary
GlideUrl(String url)
           
GlideUrl(URL url)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 URL toURL()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlideUrl

public GlideUrl(URL url)

GlideUrl

public GlideUrl(String url)
Method Detail

toURL

public URL toURL()
          throws MalformedURLException
Throws:
MalformedURLException

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object