Package com.inductiveautomation.rm.base
Class RMURLUtils
java.lang.Object
com.inductiveautomation.rm.base.RMURLUtils
Utilities for URL.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
RMURLUtilspublic RMURLUtils()
 
- 
- 
Method Details- 
getURIReturns a URL for given string.
- 
getRedirectStringReturns a redirect string.
- 
openURLTries to open the given URL with the platform reader.
- 
getBytesReturns bytes for url.- Throws:
- IOException
 
- 
isLocalReturns whether a URL is local.
- 
getFileReturns the URL as a file.
- 
getLocalFileReturns the given URL as a file (downloading to temp dir, if necessary).- Throws:
- IOException
 
- 
getLocalFileReturns the given URL as given file by downloading it.- Throws:
- IOException
 
- 
getLocalFileDestinationReturns the destination file that the given URL would be saved to using the getLocalFile method.
- 
sendCGIEmailSend CGI Email.
- 
sendCGIEmailSend CGI Email.
 
-