Package com.inductiveautomation.rm.base
Class RMURLUtils
java.lang.Object
com.inductiveautomation.rm.base.RMURLUtils
Utilities for URL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
Returns bytes for url.static File
Returns the URL as a file.static File
getLocalFile
(URL aURL) Returns the given URL as a file (downloading to temp dir, if necessary).static File
getLocalFile
(URL aURL, File aFile) Returns the given URL as given file by downloading it.static File
getLocalFileDestination
(URL aURL, File aFile) Returns the destination file that the given URL would be saved to using the getLocalFile method.static String
getRedirectString
(String aURLString) Returns a redirect string.static URI
Returns a URL for given string.static boolean
Returns whether a URL is local.static void
Tries to open the given URL with the platform reader.static Exception
sendCGIEmail
(String aURLString, Map aMap) Send CGI Email.static Exception
sendCGIEmail
(URL aURL, Map aMap) Send CGI Email.
-
Constructor Details
-
RMURLUtils
public RMURLUtils()
-
-
Method Details
-
getURI
Returns a URL for given string. -
getRedirectString
Returns a redirect string. -
openURL
Tries to open the given URL with the platform reader. -
getBytes
Returns bytes for url.- Throws:
IOException
-
isLocal
Returns whether a URL is local. -
getFile
Returns the URL as a file. -
getLocalFile
Returns the given URL as a file (downloading to temp dir, if necessary).- Throws:
IOException
-
getLocalFile
Returns the given URL as given file by downloading it.- Throws:
IOException
-
getLocalFileDestination
Returns the destination file that the given URL would be saved to using the getLocalFile method. -
sendCGIEmail
Send CGI Email. -
sendCGIEmail
Send CGI Email.
-