Package arcommon.net

Class NetUtil


  • public class NetUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      NetUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkUnlimitedCipher()  
      static java.lang.String decodeCookieElement​(java.lang.String cookieElement)  
      static java.lang.String decodeDomainNameFromIDN​(java.lang.String domainName)  
      static java.lang.String decodeHtml​(java.lang.String string)
      This method will remove all HTML tags.
      static java.lang.String decodeUrlFormData​(java.lang.String url)  
      static java.lang.String decodeUrlPath​(java.lang.String url)  
      static java.lang.String decodeUrlToDisplayString​(java.lang.String urlString)
      This method will return the urlString parameter URL in a displayable / human-readable format.
      static java.lang.String downloadContentOf​(java.lang.String urlString)  
      static void downloadFile​(java.lang.String urlString, java.lang.String fileName)  
      static java.lang.String encodeCookieName​(java.lang.String cookieName)  
      static java.lang.String encodeCookieValue​(java.lang.String cookieValue)  
      static java.lang.String encodeDomainNameToIDN​(java.lang.String domainName)  
      static java.lang.String encodeUrlFormData​(java.lang.String url)
      This will encode ' ' as '+' and that will properly not work, if it is used before the '?' in the URL.
      static java.lang.String encodeUrlMyVariant​(java.lang.String url)
      This method will return the encoding the entire URL (if needed).
      static java.lang.String encodeUrlPath​(java.lang.String path)
      This will encode ' ' as "%20" and that will properly not work, if it is used after the '?' in the URL.
      static boolean isUrlValid​(java.lang.String url)
      Returns true if the url parameter is a valid URL.
      static boolean openBrowser​(java.lang.String url)  
      static void openBrowserWithDialog​(java.lang.String url)  
      static void trustAllHttpsCertificates()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait