Package snap.web

Class WebGetter

java.lang.Object
snap.web.WebGetter

public class WebGetter extends Object
A class to handle loading of URL items.
  • Constructor Details

    • WebGetter

      public WebGetter()
  • Method Details

    • getJavaURL

      public static URL getJavaURL(Object anObj)
      Returns a java.net.URL for given source.
    • getJavaUrlForString

      public static URL getJavaUrlForString(String urlString)
      Returns a java.net.URL for given source.
    • getJavaUrlForClass

      public static URL getJavaUrlForClass(Class<?> aClass, String aName)
      Returns a URL for given class and name/path string.
    • getSite

      public static WebSite getSite(WebURL aSiteURL)
      Returns a site for given source URL.
    • setSite

      protected static void setSite(WebURL aSiteURL, WebSite aSite)
      Sets a site for given source URL.
    • createSiteForURL

      protected static WebSite createSiteForURL(WebURL aSiteURL)
      Creates a site for given URL.