public class UrlFactory extends Object
| Modifier and Type | Method and Description | 
|---|---|
static void | 
disconnect(URLConnection connection)
Disconnect. 
 | 
static URL | 
getUrl(String urlStr,
      Request request)
Gets the URL Object. 
 | 
public static URL getUrl(String urlStr, Request request) throws MalformedURLException
This method has been created because it is not possible to call URL.setURLStreamHandlerFactory more than once.
urlStr - the URL Stringrequest - the requestMalformedURLException - the malformed URL exceptionpublic static void disconnect(URLConnection connection)
connection - the URL connectionCopyright © 2020. All rights reserved.