Package com.browserup.bup.util
Class BrowserUpProxyUtil
- java.lang.Object
-
- com.browserup.bup.util.BrowserUpProxyUtil
-
public class BrowserUpProxyUtil extends java.lang.ObjectGeneral utility class for functionality and classes used mostly internally by BrowserUp Proxy.
-
-
Constructor Summary
Constructors Constructor Description BrowserUpProxyUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HarcopyHarThroughPageRef(Har har, java.lang.String pageRef)static intgetTotalElapsedTime(HarTiming timings)static java.lang.StringgetVersionString()Returns the version of BrowserUp Proxy, e.g.static java.net.InetSocketAddressinetSocketAddressFromString(java.lang.String hostAndPort)
-
-
-
Method Detail
-
copyHarThroughPageRef
public static Har copyHarThroughPageRef(Har har, java.lang.String pageRef)
CopiesHarEntryandHarPagereferences 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 copypageRef- last page ID to copy- Returns:
- copy of a
Harwith 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)
-
-