test/jdk/java/net/httpclient/http2/RedirectTest.java
branchhttp-client-branch
changeset 56265 ec34ae013fbe
parent 56233 1753108d07b9
child 56451 9585061fdb04
equal deleted inserted replaced
56264:c012b93297b0 56265:ec34ae013fbe
    99             httpPort = httpServer.getAddress().getPort();
    99             httpPort = httpServer.getAddress().getPort();
   100 
   100 
   101             // urls are accessed in sequence below. The first two are on
   101             // urls are accessed in sequence below. The first two are on
   102             // different servers. Third on same server as second. So, the
   102             // different servers. Third on same server as second. So, the
   103             // client should use the same http connection.
   103             // client should use the same http connection.
   104             httpURIString = "http://127.0.0.1:" + httpPort + "/foo/";
   104             httpURIString = "http://localhost:" + httpPort + "/foo/";
   105             httpURI = URI.create(httpURIString);
   105             httpURI = URI.create(httpURIString);
   106             altURIString1 = "http://127.0.0.1:" + httpPort + "/redir";
   106             altURIString1 = "http://localhost:" + httpPort + "/redir";
   107             altURI1 = URI.create(altURIString1);
   107             altURI1 = URI.create(altURIString1);
   108             altURIString2 = "http://127.0.0.1:" + httpPort + "/redir_again";
   108             altURIString2 = "http://localhost:" + httpPort + "/redir_again";
   109             altURI2 = URI.create(altURIString2);
   109             altURI2 = URI.create(altURIString2);
   110 
   110 
   111             Redirector r = new Redirector(sup(altURIString1, altURIString2));
   111             Redirector r = new Redirector(sup(altURIString1, altURIString2));
   112             httpServer.addHandler(r, "/foo");
   112             httpServer.addHandler(r, "/foo");
   113             httpServer.addHandler(r, "/redir");
   113             httpServer.addHandler(r, "/redir");