Searched refs:defaultPort (Results 1 – 7 of 7) sorted by relevance
71 private final int defaultPort; field in Scheme111 this.defaultPort = port; in Scheme()122 return defaultPort; in getDefaultPort()169 return ((port <= 0) || (port > 0xffff)) ? defaultPort : port; in resolvePort()184 buffer.append(Integer.toString(this.defaultPort)); in toString()206 defaultPort == s.defaultPort && in equals()221 hash = LangUtils.hashCode(hash, this.defaultPort); in hashCode()
117 public int getPortOrDefault(int defaultPort) { in getPortOrDefault() argument118 return hasPort() ? port : defaultPort; in getPortOrDefault()247 public HostAndPort withDefaultPort(int defaultPort) { in withDefaultPort() argument248 checkArgument(isValidPort(defaultPort)); in withDefaultPort()249 if (hasPort() || port == defaultPort) { in withDefaultPort()252 return new HostAndPort(host, defaultPort, hasBracketlessColons); in withDefaultPort()
97 int defaultPort, in checkFromStringCase() argument112 final boolean badDefaultPort = (defaultPort < 0 || defaultPort > 65535); in checkFromStringCase()115 hp2 = hp.withDefaultPort(defaultPort); in checkFromStringCase()
421 public static int defaultPort(String scheme) { in defaultPort() method in HttpUrl596 result.port = port != defaultPort(scheme) ? port : -1; in newBuilder()733 return port != -1 ? port : defaultPort(scheme); in effectivePort()943 if (effectivePort != defaultPort(scheme)) { in toString()1051 this.port = defaultPort(this.scheme); in parse()
109 String effectivePort = url.port() != HttpUrl.defaultPort(url.scheme()) in testHttpUrl()
263 return includeDefaultPort || url.port() != HttpUrl.defaultPort(url.scheme())
275 : HttpUrl.defaultPort(url.getProtocol()); in getPermission()