equal
deleted
inserted
replaced
58 } |
58 } |
59 |
59 |
60 HostPortrange(String scheme, String str) { |
60 HostPortrange(String scheme, String str) { |
61 // Parse the host name. A name has up to three components, the |
61 // Parse the host name. A name has up to three components, the |
62 // hostname, a port number, or two numbers representing a port |
62 // hostname, a port number, or two numbers representing a port |
63 // range. "www.sun.com:8080-9090" is a valid host name. |
63 // range. "www.example.com:8080-9090" is a valid host name. |
64 |
64 |
65 // With IPv6 an address can be 2010:836B:4179::836B:4179 |
65 // With IPv6 an address can be 2010:836B:4179::836B:4179 |
66 // An IPv6 address needs to be enclose in [] |
66 // An IPv6 address needs to be enclose in [] |
67 // For ex: [2010:836B:4179::836B:4179]:8080-9090 |
67 // For ex: [2010:836B:4179::836B:4179]:8080-9090 |
68 // Refer to RFC 2732 for more information. |
68 // Refer to RFC 2732 for more information. |