Class PacUtils


  • public class PacUtils
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static Logger LOG  
    • Constructor Summary

      Constructors 
      Constructor Description
      PacUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.net.Proxy> getProxiesFromPacResult​(java.lang.String pacString)
      Converts a proxy string from a browser into a List of Proxy objects suitable for java.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        private static final Logger LOG
    • Constructor Detail

      • PacUtils

        public PacUtils()
    • Method Detail

      • getProxiesFromPacResult

        public static java.util.List<java.net.Proxy> getProxiesFromPacResult​(java.lang.String pacString)
        Converts a proxy string from a browser into a List of Proxy objects suitable for java.
        Parameters:
        pacString - a string indicating proxies. For example "PROXY foo.bar:3128; DIRECT"
        Returns:
        a list of Proxy objects representing the parsed string. In case of malformed input, an empty list may be returned