Home
last modified time | relevance | path

Searched refs:defaultPort (Results 1 – 7 of 7) sorted by relevance

/external/apache-http/src/org/apache/http/conn/scheme/
DScheme.java71 private final int defaultPort; field in Scheme
111 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()
/external/guava/guava/src/com/google/common/net/
DHostAndPort.java117 public int getPortOrDefault(int defaultPort) { in getPortOrDefault() argument
118 return hasPort() ? port : defaultPort; in getPortOrDefault()
247 public HostAndPort withDefaultPort(int defaultPort) { in withDefaultPort() argument
248 checkArgument(isValidPort(defaultPort)); in withDefaultPort()
249 if (hasPort() || port == defaultPort) { in withDefaultPort()
252 return new HostAndPort(host, defaultPort, hasBracketlessColons); in withDefaultPort()
/external/guava/guava-tests/test/com/google/common/net/
DHostAndPortTest.java97 int defaultPort, in checkFromStringCase() argument
112 final boolean badDefaultPort = (defaultPort < 0 || defaultPort > 65535); in checkFromStringCase()
115 hp2 = hp.withDefaultPort(defaultPort); in checkFromStringCase()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DHttpUrl.java421 public static int defaultPort(String scheme) { in defaultPort() method in HttpUrl
596 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()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DWebPlatformUrlTest.java109 String effectivePort = url.port() != HttpUrl.defaultPort(url.scheme()) in testHttpUrl()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DUtil.java263 return includeDefaultPort || url.port() != HttpUrl.defaultPort(url.scheme())
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/
DHttpURLConnectionImpl.java275 : HttpUrl.defaultPort(url.getProtocol()); in getPermission()