- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 87 for UnknownHostException (0.47 sec)
-
guava-tests/test/com/google/common/net/InetAddressesTest.java
} public void testForStringIPv4NonAsciiInput() throws UnknownHostException { String ipStr = "૧૯૨.૧૬૮.૦.૧"; // 192.168.0.1 in Gujarati digits // Shouldn't hit DNS, because it's an IP string literal. InetAddress ipv4Addr; try { ipv4Addr = InetAddress.getByName(ipStr); } catch (UnknownHostException e) { // OK: this is probably Android, which is stricter. return; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 24 16:44:05 UTC 2024 - 35.3K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt
return this } @Throws(UnknownHostException::class) fun lookup( hostname: String, index: Int, ): InetAddress { return hostAddresses[hostname]!![index] } @Throws(UnknownHostException::class) override fun lookup(hostname: String): List<InetAddress> { requestedHosts.add(hostname) return hostAddresses[hostname] ?: throw UnknownHostException() }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.6K bytes - Viewed (0) -
src/main/java/jcifs/NameServiceClient.java
* @return the resolved address * @throws java.net.UnknownHostException * if there is an error resolving the name */ NetbiosAddress getNbtByName ( String host ) throws UnknownHostException; /** * @param nbtAddress * @return the node status responses * @throws UnknownHostException */
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/tests/DelegatingNameServiceClient.java
return this.nscl.getNbtAllByName(host, type, scope, svr); } @Override public NetbiosAddress[] getNbtAllByAddress ( String host ) throws UnknownHostException { return this.nscl.getNbtAllByAddress(host); } @Override public NetbiosAddress[] getNbtAllByAddress ( String host, int type, String scope ) throws UnknownHostException {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 3.6K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
} } throw new UnknownHostException(addr.getHostName()); } @Override public NbtAddress getNbtByName ( String host ) throws UnknownHostException { return getNbtByName(host, 0x00, null); } @Override public NbtAddress getNbtByName ( String host, int type, String scope ) throws UnknownHostException { return getNbtByName(host, type, scope, null);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Aug 14 14:26:22 UTC 2022 - 38.2K bytes - Viewed (0) -
src/main/java/jcifs/NetbiosAddress.java
* @throws UnknownHostException * if the host cannot be resolved to find out. */ boolean isInConflict ( CIFSContext tc ) throws UnknownHostException; /** * Determines if this address is active. * * @param tc * context to use * @return whether this address is active * * @throws UnknownHostException
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/UniAddress.java
* and return successful suffix or throw an UnknownHostException. import javax.naming.*; import javax.naming.directory.*; public static String getDomainByName(String name) throws UnknownHostException { DirContext context; UnknownHostException uhe = null; try { context = new InitialDirContext(); for ( ;; ) { try {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 16.2K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
unknownHostException.initCause(failure) for (i in 1 until failures.size) { unknownHostException.addSuppressed(failures[i]) } throw unknownHostException } private fun getCacheOnlyResponse(request: Request): Response? { if (client.cache != null) { try { // Use the cache without hitting the network first
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Oct 31 09:27:31 UTC 2024 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NbtAddress.java
checkData(tc); return this.groupName; } @Override public int getNodeType ( CIFSContext tc ) throws UnknownHostException { checkData(tc); return this.nodeType; } @Override public boolean isBeingDeleted ( CIFSContext tc ) throws UnknownHostException { checkNodeStatusData(tc);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 15.2K bytes - Viewed (0) -
okhttp-android/src/test/kotlin/okhttp3/android/AndroidLoggingTest.kt
client.newCall(request).execute() } catch (uhe: UnknownHostException) { // expected } val logs = ShadowLog.getLogsForTag("testHttpLoggingInterceptor") assertThat(logs.map { it.type }).containsOnly(Log.INFO) assertThat(logs.map { it.msg }).containsExactly( "--> GET http://google.com/robots.txt", "<-- HTTP FAILED: java.net.UnknownHostException: shortcircuit", )
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 11:07:32 UTC 2024 - 3.2K bytes - Viewed (0)