Package snap.web
Class WebGetter
java.lang.Object
snap.web.WebGetter
A class to handle loading of URL items.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static WebSite
createSiteForURL
(WebURL aSiteURL) Creates a site for given URL.static URL
getJavaURL
(Object anObj) Returns a java.net.URL for given source.static URL
getJavaUrlForClass
(Class<?> aClass, String aName) Returns a URL for given class and name/path string.static URL
getJavaUrlForString
(String urlString) Returns a java.net.URL for given source.static WebSite
Returns a site for given source URL.protected static void
Sets a site for given source URL.
-
Constructor Details
-
WebGetter
public WebGetter()
-
-
Method Details
-
getJavaURL
Returns a java.net.URL for given source. -
getJavaUrlForString
Returns a java.net.URL for given source. -
getJavaUrlForClass
Returns a URL for given class and name/path string. -
getSite
Returns a site for given source URL. -
setSite
Sets a site for given source URL. -
createSiteForURL
Creates a site for given URL.
-