Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1391 - 1400 of 2,175 for match (0.02 sec)

  1. src/test/java/jcifs/context/SingletonContextTest.java

        void resetSingleton() {
            try {
                Field instance = SingletonContext.class.getDeclaredField("INSTANCE");
                instance.setAccessible(true);
                instance.set(null, null);
            } catch (NoSuchFieldException | IllegalAccessException e) {
                log.error("Failed to reset SingletonContext instance", e);
                fail("Failed to reset SingletonContext instance: " + e.getMessage());
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

            try {
                Field f = target.getClass().getDeclaredField(name);
                f.setAccessible(true);
                f.set(target, value);
            } catch (Exception e) {
                fail("Failed to set field '" + name + "'", e);
            }
        }
    
        /**
         * Helper for getting a field via reflection.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt

            override fun onResponse(
              call: Call,
              response: Response,
            ) {
              val socket =
                try {
                  checkUpgradeSuccess(response)
                } catch (e: IOException) {
                  failWebSocket(e, response)
                  response.closeQuietly()
                  response.socket?.sink?.closeQuietly()
                  response.socket?.source?.closeQuietly()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/SequentialExchangeFinder.kt

              if (nextPlan != null) {
                routePlanner.deferredPlans.addFirst(nextPlan)
                continue
              }
            }
            return plan.handleSuccess()
          } catch (e: IOException) {
            if (firstException == null) {
              firstException = e
            } else {
              firstException.addSuppressed(e)
            }
            if (!routePlanner.hasNext()) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt

       */
      @JvmOverloads
      fun charset(defaultValue: Charset? = null): Charset? {
        val charset = parameter("charset") ?: return defaultValue
        return try {
          Charset.forName(charset)
        } catch (_: IllegalArgumentException) {
          defaultValue // This charset is invalid or unsupported. Give up.
        }
      }
    
      /**
       * Returns the parameter [name] of this media type, or null if this media type does not define
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:08 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

        }
    
        @Test
        void testActivityTracking() {
            long initialTime = channelInfo.getLastActivityTime();
    
            // Wait a bit and update activity
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
            }
    
            channelInfo.updateActivity();
            assertTrue(channelInfo.getLastActivityTime() > initialTime);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            PreauthIntegrityNegotiateContext ctx = new PreauthIntegrityNegotiateContext();
            try {
                setPrivateField(ctx, "hashAlgos", new int[] { PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512 });
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
            return ctx;
        }
    
        private NegotiateContextRequest createMockEncryptionContext() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/FessApiAdminAction.java

            try {
                return accessTokenService.getPermissions(request)
                        .map(permissions -> fessConfig.isApiAdminAccessAllowed(permissions))
                        .orElse(false);
            } catch (final InvalidAccessTokenException e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Invalid access token.", e);
                }
                return false;
            }
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/NtTransQuerySecurityDescResponse.java

                return 4;
            }
    
            try {
                securityDescriptor = new SecurityDescriptor();
                bufferIndex += securityDescriptor.decode(buffer, bufferIndex, len);
            } catch (final IOException ioe) {
                throw new RuntimeException(ioe.getMessage());
            }
    
            return bufferIndex - start;
        }
    
        @Override
        public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  10. docs/en/docs/reference/websockets.md

                - iter_json
                - send_text
                - send_bytes
                - send_json
                - close
    
    When a client disconnects, a `WebSocketDisconnect` exception is raised, you can catch it.
    
    You can import it directly form `fastapi`:
    
    ```python
    from fastapi import WebSocketDisconnect
    ```
    
    ::: fastapi.WebSocketDisconnect
    
    ## WebSockets - additional classes
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top