Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 87 for UnknownHostException (0.12 sec)

  1. okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

    import assertk.assertions.isEmpty
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotEmpty
    import assertk.assertions.isNull
    import assertk.fail
    import java.net.InetAddress
    import java.net.UnknownHostException
    import java.util.concurrent.CountDownLatch
    import mockwebserver3.MockResponse
    import mockwebserver3.junit4.MockWebServerRule
    import okhttp3.AsyncDns
    import okhttp3.HttpUrl.Companion.toHttpUrl
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

      @Test
      fun dnsFail() {
        client =
          OkHttpClient.Builder()
            .dns { _ -> throw UnknownHostException("reason") }
            .eventListenerFactory(loggingEventListenerFactory)
            .build()
        try {
          client.newCall(request().build()).execute()
          fail<Any>()
        } catch (expected: UnknownHostException) {
        }
        logRecorder
          .assertLogMatch(Regex("""callStart: Request\{method=GET, url=$url\}"""))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbNamedPipe.java

                                throws MalformedURLException, UnknownHostException {
            super( url );
            this.pipeType = pipeType;
            type = TYPE_NAMED_PIPE;
        }
        public SmbNamedPipe( String url, int pipeType, NtlmPasswordAuthentication auth )
                                throws MalformedURLException, UnknownHostException {
            super( url, auth );
            this.pipeType = pipeType;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Dns.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import java.net.InetAddress
    import java.net.UnknownHostException
    import okhttp3.Dns.Companion.SYSTEM
    
    /**
     * A domain name service that resolves IP addresses for host names. Most applications will use the
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt

                  hostname,
                  UnknownHostException(e.message).apply {
                    initCause(e)
                  },
                )
              }
            },
          )
        } catch (e: Exception) {
          // Handle any errors that might leak out
          // https://issuetracker.google.com/issues/319957694
          callback.onFailure(
            hostname,
            UnknownHostException(e.message).apply {
              initCause(e)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 10:07:48 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/AsyncDns.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     *
     */
    
    package okhttp3
    
    import java.net.InetAddress
    import java.net.UnknownHostException
    import java.util.concurrent.CountDownLatch
    import okio.IOException
    
    /**
     * An async domain name service that resolves IP addresses for host names.
     *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

     */
    
        public SmbFileInputStream( SmbFile file ) throws SmbException, MalformedURLException, UnknownHostException {
            this( file, SmbFile.O_RDONLY );
        }
    
        SmbFileInputStream( SmbFile file, int openFlags ) throws SmbException, MalformedURLException, UnknownHostException {
            this.file = file;
            this.openFlags = openFlags & 0xFFFF;
            this.access = (openFlags >>> 16) & 0xFFFF;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/RandomAccessFileTest.java

    import static org.junit.Assert.fail;
    
    import java.io.DataOutput;
    import java.io.IOException;
    import java.io.InputStream;
    import java.net.MalformedURLException;
    import java.net.UnknownHostException;
    import java.util.Arrays;
    import java.util.Collection;
    import java.util.Map;
    import java.util.Random;
    
    import org.junit.Assert;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11.4K bytes
    - Viewed (0)
  9. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DohProviders.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.dnsoverhttps
    
    import java.net.InetAddress
    import java.net.UnknownHostException
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    
    /**
     * Temporary registry of known DNS over HTTPS providers.
     *
     * https://github.com/curl/curl/wiki/DNS-over-HTTPS
     */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Dec 23 10:26:25 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/Lmhosts.java

    import java.io.BufferedReader;
    import java.io.IOException;
    import java.util.Hashtable;
    
    import jcifs.smb1.Config;
    import jcifs.smb1.smb1.SmbFileInputStream;
    import jcifs.smb1.util.LogStream;
    
    import java.net.UnknownHostException;
    
    public class Lmhosts {
    
        private static final String FILENAME = Config.getProperty( "jcifs.smb1.netbios.lmhosts" );
        private static final Hashtable TAB = new Hashtable();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5.8K bytes
    - Viewed (0)
Back to top