Class Network


  • public final class Network
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.net.URI getRebasedURL​(java.net.URI originalURI)  
      static java.lang.String proxyURL​(net.lightbody.bmp.BrowserMobProxy proxy)  
      • Methods inherited from class java.lang.Object

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

      • getRebasedURL

        public static java.net.URI getRebasedURL​(java.net.URI originalURI)
                                          throws java.net.SocketException,
                                                 java.net.URISyntaxException
        Parameters:
        originalURI - to be rewritten if localhost mainly
        Returns:
        rewritten for localhost, untouched otherwise
        Throws:
        java.net.SocketException - exception
        java.net.URISyntaxException - exception
      • proxyURL

        public static java.lang.String proxyURL​(net.lightbody.bmp.BrowserMobProxy proxy)
        Parameters:
        proxy - the source proxy to get the url
        Returns:
        a url that docker can access.