Package com.inductiveautomation.rm.base
Class RMURLUtils
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMURLUtils
 
- 
 public class RMURLUtils extends java.lang.ObjectUtilities for URL.
- 
- 
Constructor SummaryConstructors Constructor Description RMURLUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]getBytes(java.net.URL aURL)Returns bytes for url.static java.io.FilegetFile(java.net.URL aURL)Returns the URL as a file.static java.io.FilegetLocalFile(java.net.URL aURL)Returns the given URL as a file (downloading to temp dir, if necessary).static java.io.FilegetLocalFile(java.net.URL aURL, java.io.File aFile)Returns the given URL as given file by downloading it.static java.io.FilegetLocalFileDestination(java.net.URL aURL, java.io.File aFile)Returns the destination file that the given URL would be saved to using the getLocalFile method.static java.lang.StringgetRedirectString(java.lang.String aURLString)Returns a redirect string.static java.net.URIgetURI(java.net.URL aURL)Returns a URL for given string.static booleanisLocal(java.net.URL aURL)Returns whether a URL is local.static voidopenURL(java.lang.String aURL)Tries to open the given URL with the platform reader.static java.lang.ExceptionsendCGIEmail(java.lang.String aURLString, java.util.Map aMap)Send CGI Email.static java.lang.ExceptionsendCGIEmail(java.net.URL aURL, java.util.Map aMap)Send CGI Email.
 
- 
- 
- 
Method Detail- 
getURIpublic static java.net.URI getURI(java.net.URL aURL) Returns a URL for given string.
 - 
getRedirectStringpublic static java.lang.String getRedirectString(java.lang.String aURLString) Returns a redirect string.
 - 
openURLpublic static void openURL(java.lang.String aURL) Tries to open the given URL with the platform reader.
 - 
getBytespublic static byte[] getBytes(java.net.URL aURL) throws java.io.IOExceptionReturns bytes for url.- Throws:
- java.io.IOException
 
 - 
isLocalpublic static boolean isLocal(java.net.URL aURL) Returns whether a URL is local.
 - 
getFilepublic static java.io.File getFile(java.net.URL aURL) Returns the URL as a file.
 - 
getLocalFilepublic static java.io.File getLocalFile(java.net.URL aURL) throws java.io.IOExceptionReturns the given URL as a file (downloading to temp dir, if necessary).- Throws:
- java.io.IOException
 
 - 
getLocalFilepublic static java.io.File getLocalFile(java.net.URL aURL, java.io.File aFile) throws java.io.IOExceptionReturns the given URL as given file by downloading it.- Throws:
- java.io.IOException
 
 - 
getLocalFileDestinationpublic static java.io.File getLocalFileDestination(java.net.URL aURL, java.io.File aFile)Returns the destination file that the given URL would be saved to using the getLocalFile method.
 - 
sendCGIEmailpublic static java.lang.Exception sendCGIEmail(java.lang.String aURLString, java.util.Map aMap)Send CGI Email.
 - 
sendCGIEmailpublic static java.lang.Exception sendCGIEmail(java.net.URL aURL, java.util.Map aMap)Send CGI Email.
 
- 
 
-