Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for Adapts (0.04 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt

    import java.net.InetSocketAddress
    import java.net.Proxy
    import okhttp3.Credentials
    import okhttp3.Dns
    import okhttp3.HttpUrl
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.Route
    
    /**
     * Adapts [Authenticator] to [okhttp3.Authenticator]. Configure OkHttp to use [Authenticator] with
     * [okhttp3.OkHttpClient.Builder.authenticator] or [okhttp3.OkHttpClient.Builder.proxyAuthenticator].
     */
    class JavaNetAuthenticator(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt

    import okhttp3.internal.platform.Platform
    import okio.BufferedSink
    import okio.BufferedSource
    import okio.ForwardingSink
    import okio.ForwardingSource
    import okio.asOkioSocket
    import okio.buffer
    
    /**
     * Adapts a [java.net.Socket] to MockWebServer's needs.
     *
     * Note that [asOkioSocket] returns a socket that closes the underlying [java.net.Socket] when both
     * of its component streams are closed. This class takes advantage of that.
     */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

                return 0;
            }
    
            @Override
            public int getFileIndex() {
                return 0;
            }
        }
    
        @Test
        @DisplayName("Happy path: iterates and adapts entries without filter")
        void happyPath_noFilter_returnsAdaptedResources() throws Exception {
            // Arrange: two valid entries
            setupParentForUrlCreation();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. docs/config/README.md

    ### Usage scanner
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 18.1K bytes
    - Viewed (1)
  5. android/guava/src/com/google/common/collect/Iterators.java

        @ParametricNullness
        public T next() {
          if (done) {
            throw new NoSuchElementException();
          }
          done = true;
          return value;
        }
      }
    
      /**
       * Adapts an {@code Enumeration} to the {@code Iterator} interface.
       *
       * <p>This method has no equivalent in {@link Iterables} because viewing an {@code Enumeration} as
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

                protected SmbResource adapt(FileEntry e) {
                    adaptCalled[0] = true;
                    assertEquals(mockFileEntry1, e, "Should adapt the correct entry");
                    return mockResource1;
                }
            };
    
            // When
            SmbResource result = iterator.next();
    
            // Then
            assertTrue(adaptCalled[0], "Adapt method should have been called");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/ShareEnumIterator.java

                if (this.filter == null) {
                    try {
                        return adapt(n);
                    } catch (final MalformedURLException e) {
                        log.error("Failed to create child URL", e);
                        continue;
                    }
                }
                try (SmbResource nr = adapt(n)) {
                    if (!this.filter.accept(nr)) {
                        continue;
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/FileEntryAdapterIterator.java

                if (this.filter == null) {
                    try {
                        return adapt(fe);
                    } catch (final MalformedURLException e) {
                        log.error("Failed to create child URL", e);
                        continue;
                    }
                }
    
                try (SmbResource r = adapt(fe)) {
                    if (this.filter.accept(r)) {
                        return r;
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

        private class TestIterator extends FileEntryAdapterIterator {
            TestIterator(ResourceFilter filter) {
                super(parent, delegate, filter);
            }
    
            @Override
            protected SmbResource adapt(FileEntry e) throws MalformedURLException {
                return resource;
            }
        }
    
        @BeforeEach
        void setUp() {
            lenient().when(fileEntry.getName()).thenReturn("test");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NetServerFileEntryAdapterIterator.java

            super(parent, delegate, filter);
        }
    
        /**
         * @param fe
         * @return
         * @throws MalformedURLException
         */
        @Override
        protected SmbResource adapt(final FileEntry e) throws MalformedURLException {
            return new SmbFile(getParent(), e.getName(), false, e.getType(), SmbConstants.ATTR_READONLY | SmbConstants.ATTR_DIRECTORY, 0L, 0L,
                    0L, 0L);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top