Searched refs:webAddress (Results 1 – 2 of 2) sorted by relevance
28 WebAddress webAddress = new WebAddress("http://google.com./b/c/g"); in testHostWithTrailingDot() local29 assertEquals("google.com.", webAddress.getHost()); in testHostWithTrailingDot()30 assertEquals("/b/c/g", webAddress.getPath()); in testHostWithTrailingDot()36 WebAddress webAddress = new WebAddress("http://www.myspace.com?si=1"); in testPathWithoutLeadingSlash() local37 assertEquals("www.myspace.com", webAddress.getHost()); in testPathWithoutLeadingSlash()38 assertEquals("/?si=1", webAddress.getPath()); in testPathWithoutLeadingSlash()
53 WebAddress webAddress; in guessUrl() local72 webAddress = new WebAddress(inUrl); in guessUrl()82 if (webAddress.getHost().indexOf('.') == -1) { in guessUrl()84 webAddress.setHost("www." + webAddress.getHost() + ".com"); in guessUrl()86 return webAddress.toString(); in guessUrl()