- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for getAllByName (0.06 sec)
-
src/test/java/jcifs/smb1/UniAddressTest.java
void getAllByNameRejectsNullOrEmptyHostname() { assertThrows(UnknownHostException.class, () -> UniAddress.getAllByName("", false), "getAllByName should throw UnknownHostException for empty string"); assertThrows(UnknownHostException.class, () -> UniAddress.getAllByName(null, false), "getAllByName should throw UnknownHostException for null name"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
// getFirstAddress branch: host given and path non-root -> possibleNTDomain=false when(nsc.getAllByName(eq("server"), eq(false))).thenReturn(new Address[] { addr }); SmbResourceLocatorImpl workgroupLike = locator("smb://server/"); // path is "/" -> triggers possibleNTDomainOrWorkgroup true when(nsc.getAllByName(eq("server"), eq(true))).thenReturn(new Address[] { addr }); assertTrue(workgroupLike.isWorkgroup());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/NameServiceClientTest.java
boolean possibleNTDomainOrWorkgroup = true; Address[] expectedAddresses = { mock(Address.class) }; when(nameServiceClient.getAllByName(hostname, possibleNTDomainOrWorkgroup)).thenReturn(expectedAddresses); // Act Address[] actualAddresses = nameServiceClient.getAllByName(hostname, possibleNTDomainOrWorkgroup); // Assert assertNotNull(actualAddresses);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dns.kt
*/ @Throws(UnknownHostException::class) fun lookup(hostname: String): List<InetAddress> companion object { /** * A DNS that uses [InetAddress.getAllByName] to ask the underlying operating system to * lookup IP addresses. Most custom [Dns] implementations should delegate to this instance. */ @JvmField val SYSTEM: Dns = DnsSystem()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/UniAddress.java
*/ public static UniAddress getByName(final String hostname, final boolean possibleNTDomainOrWorkgroup) throws UnknownHostException { final UniAddress[] addrs = UniAddress.getAllByName(hostname, possibleNTDomainOrWorkgroup); return addrs[0]; } /** * Resolves all addresses for the given hostname. * * @param hostname the hostname to resolveRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
@Override public UniAddress getByName(final String hostname, final boolean possibleNTDomainOrWorkgroup) throws UnknownHostException { return getAllByName(hostname, possibleNTDomainOrWorkgroup)[0]; } @Override public UniAddress[] getAllByName(final String hostname, final boolean possibleNTDomainOrWorkgroup) throws UnknownHostException { if (hostname == null || hostname.length() == 0) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbResourceLocatorImpl.java
} } else if (path.length() == 0 || path.equals("/")) { this.addresses = this.ctx.getNameServiceClient().getAllByName(host, true); } else { this.addresses = this.ctx.getNameServiceClient().getAllByName(host, false); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 23.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
when(addr1.getHostAddress()).thenReturn("10.0.0.1"); Address addr2 = mock(Address.class); when(addr2.getHostAddress()).thenReturn("10.0.0.2"); when(nameSvc.getAllByName(eq("test.server"), eq(true))).thenReturn(new Address[] { addr1, addr2 }); // Set fail counts (addr1 has more failures, addr2 has fewer) pool.failCounts.put("10.0.0.1", 5);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/conn/IdnDnsResolver.java
* @throws UnknownHostException if the host name cannot be resolved */ @Override public InetAddress[] resolve(final String host) throws UnknownHostException { return InetAddress.getAllByName(toAscii(host)); } /** * Decodes the given host string using the specified encoding. * * @param host the host string to decode * @return the decoded host string */Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 3.4K bytes - Viewed (0) -
docs/changelogs/upgrading_to_okhttp_4.md
```kotlin val client = OkHttpClient.Builder() .dns { hostname -> InetAddress.getAllByName(hostname).toList() } .build() ``` Kotlin calling OkHttp 4.x: ```kotlin val client = OkHttpClient.Builder() .dns(object : Dns { override fun lookup(hostname: String) = InetAddress.getAllByName(hostname).toList() }) .build() ``` SAM conversion impacts these APIs:
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 16:58:16 UTC 2022 - 10.9K bytes - Viewed (0)