Lines Matching refs:port
88 * has an authority, user info, host, port, path or query. An opaque URIs may
120 * A URI's host, port and scheme are not eligible for encoding and must not
186 private transient int port = -1;
235 public URI(String scheme, String userInfo, String host, int port, String path, String query,
253 if (userInfo != null || host != null || port != -1) {
270 if (port != -1) {
272 uri.append(port);
346 * info, host and port:
347 * [user-info@][host][:port]
427 * Breaks this URI's authority into user info, host and port parts.
428 * [user-info@][host][:port]
449 temp = temp.substring(index + 1); // host[:port] is left
459 // determine port and host
462 if (index < (temp.length() - 1)) { // port part is not empty
468 "Invalid port number", hostIndex + index + 1);
475 "Invalid port number", hostIndex + index + 1);
496 // fill in the userInfo, host and port fields
499 port = tempPort;
648 // both are server based, so compare userInfo, host, port
666 // compare port
667 if (port != uri.port) {
668 return port - uri.port;
739 clone.port = port;
854 if (port != uri.port) {
942 * Returns the port number of this URI, or {@code -1} if this URI has no
943 * explicit port.
946 return port;
951 return getEffectivePort(scheme, port);
955 * Returns the port to use for {@code scheme} connections will use when
1089 * host, port, and user-info. If this URI is already determined as a
1321 if (port != -1) {
1322 result.append(":" + port);