src/java.base/share/classes/java/net/HostPortrange.java
changeset 52700 b206bdfb9fe2
parent 47216 71c04702a3d5
child 52902 e3398b2e1ab0
equal deleted inserted replaced
52699:44fe5fab538a 52700:b206bdfb9fe2
    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.