- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for hasPort (0.23 sec)
-
guava-tests/test/com/google/common/net/HostAndPortTest.java
assertTrue(badDefaultPort); } // Check the pre-withDefaultPort() instance. if (expectHasExplicitPort) { assertTrue(hp.hasPort()); assertEquals(expectPort, hp.getPort()); } else { assertFalse(hp.hasPort()); try { hp.getPort(); fail("Expected IllegalStateException"); } catch (IllegalStateException expected) { } }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Apr 17 11:19:47 GMT 2023 - 10K bytes - Viewed (0) -
android/guava/src/com/google/common/net/HostAndPort.java
* to prevent this from occurring. */ public int getPort() { checkState(hasPort()); return port; } /** Returns the current port number, with a default if no port is defined. */ public int getPortOrDefault(int defaultPort) { return hasPort() ? port : defaultPort; } /** * Build a HostAndPort instance from separate host and port values. *
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Aug 22 20:55:57 GMT 2023 - 11.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/HostAndPortTest.java
assertTrue(badDefaultPort); } // Check the pre-withDefaultPort() instance. if (expectHasExplicitPort) { assertTrue(hp.hasPort()); assertEquals(expectPort, hp.getPort()); } else { assertFalse(hp.hasPort()); try { hp.getPort(); fail("Expected IllegalStateException"); } catch (IllegalStateException expected) { } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 17 11:19:47 GMT 2023 - 9.6K bytes - Viewed (0) -
android/guava/src/com/google/common/net/HostSpecifier.java
// Verify that no port was specified, and strip optional brackets from // IPv6 literals. HostAndPort parsedHost = HostAndPort.fromString(specifier); Preconditions.checkArgument(!parsedHost.hasPort()); String host = parsedHost.getHost(); // Try to interpret the specifier as an IP address. Note we build // the address rather than using the .is* methods because we want to
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Apr 05 09:18:40 GMT 2023 - 6K bytes - Viewed (0) -
internal/rest/client.go
// return true if the string includes a port. func hasPort(s string) bool { return strings.LastIndex(s, ":") > strings.LastIndex(s, "]") } // removeEmptyPort strips the empty port in ":port" to "" // as mandated by RFC 3986 Section 6.2.3. func removeEmptyPort(host string) string { if hasPort(host) { return strings.TrimSuffix(host, ":") } return host }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 14K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComTransactionResponse.java
byte subCommand; boolean hasMore = true; boolean isPrimary = true; byte[] txn_buf; /* for doNetEnum and doFindFirstNext */ int status; int numEntries; FileEntry[] results; SmbComTransactionResponse() { txn_buf = null; } void reset() { super.reset(); bufDataStart = 0; isPrimary = hasMore = true;
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Fri Mar 22 21:10:40 GMT 2019 - 6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java
public void reset () { super.reset(); this.bufDataStart = 0; this.isPrimary = this.hasMore = true; this.parametersDone = this.dataDone = false; } @Override public boolean hasMoreElements () { return this.errorCode == 0 && this.hasMore; } @Override public SmbComTransactionResponse nextElement () { if ( this.isPrimary ) {
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 9.2K bytes - Viewed (0) -
cmd/callhome.go
DeploymentID: globalDeploymentID(), }, }, } go fetchHealthInfo(healthCtx, objectAPI, &query, healthInfoCh, healthInfo) for { select { case hi, hasMore := <-healthInfoCh: if !hasMore { // Received all data. Send to SUBNET and return err := sendHealthInfo(ctx, healthInfo) if err != nil { internalLogIf(ctx, fmt.Errorf("Unable to perform callhome: %w", err)) }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 5.1K bytes - Viewed (1) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java
@Override public void reset () { super.reset(); this.isPrimary = this.hasMore = true; } protected void reset ( int key, String lastName ) { reset(); } @Override public boolean hasMoreElements () { return this.hasMore; } @Override public SmbComTransaction nextElement () {
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun May 17 13:43:42 GMT 2020 - 13.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComTransaction.java
secondaryParameterOffset = SECONDARY_PARAMETER_OFFSET; } void reset() { super.reset(); isPrimary = hasMore = true; } void reset( int key, String lastName ) { reset(); } public boolean hasMoreElements() { return hasMore; } public Object nextElement() { if( isPrimary ) { isPrimary = false;
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Fri Mar 22 21:10:40 GMT 2019 - 10.5K bytes - Viewed (0)