Class BrowserUpProxyUtil


  • public class BrowserUpProxyUtil
    extends java.lang.Object
    General utility class for functionality and classes used mostly internally by BrowserUp Proxy.
    • Constructor Detail

      • BrowserUpProxyUtil

        public BrowserUpProxyUtil()
    • Method Detail

      • copyHarThroughPageRef

        public static Har copyHarThroughPageRef​(Har har,
                                                java.lang.String pageRef)
        Copies HarEntry and HarPage references from the specified har to a new har copy, up to and including the specified pageRef. Does not perform a "deep copy", so any subsequent modification to the entries or pages will be reflected in the copied har.
        Parameters:
        har - existing har to copy
        pageRef - last page ID to copy
        Returns:
        copy of a Har with entries and pages from the original har, or null if the input har is null
      • getVersionString

        public static java.lang.String getVersionString()
        Returns the version of BrowserUp Proxy, e.g. "2.1.0".
        Returns:
        BUP version string
      • inetSocketAddressFromString

        public static java.net.InetSocketAddress inetSocketAddressFromString​(java.lang.String hostAndPort)
                                                                      throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • getTotalElapsedTime

        public static int getTotalElapsedTime​(HarTiming timings)