equal
deleted
inserted
replaced
59 public URIBuilder host(String host) { |
59 public URIBuilder host(String host) { |
60 this.host = host; |
60 this.host = host; |
61 return this; |
61 return this; |
62 } |
62 } |
63 |
63 |
|
64 public URIBuilder host(InetAddress address) { |
|
65 String hostaddr = address.isAnyLocalAddress() |
|
66 ? "localhost" : address.getHostAddress(); |
|
67 return host(hostaddr); |
|
68 } |
|
69 |
64 public URIBuilder loopback() { |
70 public URIBuilder loopback() { |
65 return host(InetAddress.getLoopbackAddress().getHostAddress()); |
71 return host(InetAddress.getLoopbackAddress().getHostAddress()); |
66 } |
72 } |
67 |
73 |
68 public URIBuilder port(int port) { |
74 public URIBuilder port(int port) { |