Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 108 for getDefault (0.14 sec)

  1. okhttp/src/test/java/okhttp3/MediaTypeJvmTest.kt

        }
      }
    
      private fun <T> withLocale(
        locale: Locale,
        block: () -> T,
      ): T {
        val previous = Locale.getDefault()
        try {
          Locale.setDefault(locale)
          return block()
        } finally {
          Locale.setDefault(previous)
        }
      }
    
      @Test fun testIllegalCharsetName() {
        val mediaType = parse("text/plain; charset=\"!@#$%^&*()\"")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt

        // required. These socket factories explicitly set the buffer sizes on sockets created.
        server = MockWebServer()
        server.serverSocketFactory =
          object : DelegatingServerSocketFactory(getDefault()) {
            @Throws(SocketException::class)
            override fun configureServerSocket(serverSocket: ServerSocket): ServerSocket {
              serverSocket.setReceiveBufferSize(SOCKET_BUFFER_SIZE)
              return serverSocket
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Clients.kt

        ianaSuites = ianaSuites,
      )
    }
    
    fun systemDefault(
      name: String,
      version: String,
      ianaSuites: IanaSuites,
    ): Client {
      val socketFactory = SSLSocketFactory.getDefault() as SSLSocketFactory
      val sslSocket = socketFactory.createSocket() as SSLSocket
    
      return Client(
        userAgent = name,
        version = version,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Apr 02 01:44:15 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/context/CIFSContextCredentialWrapper.java

                if ( renewed != null ) {
                    this.creds = renewed;
                    return true;
                }
            }
            NtlmAuthenticator auth = NtlmAuthenticator.getDefault();
            if ( auth != null ) {
                NtlmPasswordAuthenticator newAuth = NtlmAuthenticator
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Aug 02 08:32:29 UTC 2018
    - 2.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt

        // required. These socket factories explicitly set the buffer sizes on sockets created.
        server = MockWebServer()
        server.serverSocketFactory =
          object : DelegatingServerSocketFactory(ServerSocketFactory.getDefault()) {
            @Throws(IOException::class)
            override fun configureServerSocket(serverSocket: ServerSocket): ServerSocket {
              serverSocket.receiveBufferSize = SOCKET_BUFFER_SIZE
              return serverSocket
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/NtlmAuthenticator.java

         * 
         * @param a
         */
    
        public synchronized static void setDefault ( NtlmAuthenticator a ) {
            if ( auth != null ) {
                return;
            }
            auth = a;
        }
    
    
        /**
         * 
         * @return the default authentiucation credentials
         */
        public static NtlmAuthenticator getDefault () {
            return auth;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.4K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

        proxySelector: ProxySelector = this.proxySelector,
      ): Address {
        return Address(
          uriHost = uriHost,
          uriPort = uriPort,
          dns = dns,
          socketFactory = SocketFactory.getDefault(),
          sslSocketFactory = null,
          hostnameVerifier = null,
          certificatePinner = null,
          proxyAuthenticator = proxyAuthenticator,
          proxy = proxy,
          protocols = protocols,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

          strings.any { it.matches(Regex("[A-Z]+=Entrust.*")) }
        }
      }
    
      private fun startTlsServer(): InetSocketAddress {
        val serverSocketFactory = ServerSocketFactory.getDefault()
        serverSocket = serverSocketFactory.createServerSocket()
        val serverAddress = InetAddress.getByName("localhost")
        serverSocket!!.bind(InetSocketAddress(serverAddress, 0), 50)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/SpecificHostSocketFactory.kt

    /**
     * A [SocketFactory] that redirects connections to [defaultAddress] or specific overridden address via [set].
     */
    class SpecificHostSocketFactory(
      val defaultAddress: InetSocketAddress?,
    ) : DelegatingSocketFactory(getDefault()) {
      private val hostMapping = mutableMapOf<InetAddress, InetSocketAddress>()
    
      /** Sets the [real] address for [requested].  */
      operator fun set(
        requested: InetAddress,
        real: InetSocketAddress,
      ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/text/DecimalFormatUtil.java

         *
         * @param s
         *            数値を表す文字列
         * @return 正規化された文字列
         * @see #normalize(String, Locale)
         */
        public static String normalize(final String s) {
            return normalize(s, LocaleUtil.getDefault());
        }
    
        /**
         * 数値の文字列での表記をグルーピングセパレータを削除し、小数点を.であらわした標準形に正規化します。
         *
         * @param s
         *            数値を表す文字列
         * @param locale
         *            ロケール。{@literal null}であってはいけません
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top