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 FileReturns the URL as a file.static FilegetLocalFile(URL aURL) Returns the given URL as a file (downloading to temp dir, if necessary).static FilegetLocalFile(URL aURL, File aFile) Returns the given URL as given file by downloading it.static FilegetLocalFileDestination(URL aURL, File aFile) Returns the destination file that the given URL would be saved to using the getLocalFile method.static StringgetRedirectString(String aURLString) Returns a redirect string.static URIReturns a URL for given string.static booleanReturns whether a URL is local.static voidTries to open the given URL with the platform reader.static ExceptionsendCGIEmail(String aURLString, Map aMap) Send CGI Email.static ExceptionsendCGIEmail(URL aURL, Map aMap) Send CGI Email.
-
Constructor Details
-
RMURLUtils
public RMURLUtils()
-
-
Method Details
-
getURI
-
getRedirectString
-
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
-
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
-
sendCGIEmail
-
sendCGIEmail
-