Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 961 - 970 of 3,637 for throwIf (0.05 seconds)

  1. docs/features/https.md

                      .build())
              .build();
    
          public void run() throws Exception {
            Request request = new Request.Builder()
                .url("https://publicobject.com/robots.txt")
                .build();
    
            try (Response response = client.newCall(request).execute()) {
              if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/http/NetworkExplorer.java

         * @param req the HTTP servlet request
         * @param resp the HTTP servlet response
         * @param file the SMB file to download
         * @throws IOException if an I/O error occurs
         */
        protected void doFile(final HttpServletRequest req, final HttpServletResponse resp, final SmbFile file) throws IOException {
            final byte[] buf = new byte[8192];
            String url, type;
            int n;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 22.6K bytes
    - Click Count (0)
  3. src/main/java/jcifs/netbios/Lmhosts.java

        private long lastModified = 1L;
        private int alt;
    
        /**
         * This is really just for {@link jcifs.netbios.UniAddress}. It does
         * not throw an {@link java.net.UnknownHostException} because this
         * is queried frequently and exceptions would be rather costly to
         * throw on a regular basis here.
         *
         * @param host the hostname to resolve
         * @param tc the CIFS context
         * @return resolved name, null if not found
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTest.java

                @TempDir(cleanup = CleanupMode.ON_SUCCESS) Path userHome)
                throws Exception {
            invoke(cwd, userHome, List.of("verify"), List.of());
        }
    
        @Disabled("Enable it when fully moved to NIO2 with Path/Filesystem (ie MavenExecutionRequest)")
        @Test
        void jimFs() throws Exception {
            try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 21 12:17:55 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/crawler/transformer/FessStandardTransformer.java

         * @return the extractor instance for processing the document
         * @throws FessSystemException if no suitable extractor can be found
         */
        @Override
        protected Extractor getExtractor(final ResponseData responseData) {
            final ExtractorFactory extractorFactory = ComponentUtil.getExtractorFactory();
            if (extractorFactory == null) {
                throw new FessSystemException("Could not find extractorFactory.");
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

            throw new UnsupportedOperationException("Transport creation needs integration with SmbTransportPool");
        }
    
        /**
         * Perform channel binding for a channel
         *
         * @param channel channel to bind
         * @throws IOException if binding fails
         */
        public void performChannelBinding(ChannelInfo channel) throws IOException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 20K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java

    import groovy.lang.GroovyShell;
    
    public class AbstractDataStoreTest extends UnitFessTestCase {
        public AbstractDataStore dataStore;
    
        @Override
        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            dataStore = new AbstractDataStore() {
                @Override
                protected String getName() {
                    return "Test";
                }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.8K bytes
    - Click Count (1)
  8. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

            }
        }
    
        @Override
        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            crawlJob = new CrawlJob();
        }
    
        @Override
        protected void tearDown(TestInfo testInfo) throws Exception {
            super.tearDown(testInfo);
        }
    
        // Test constructor and field initialization
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 25K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java

            authenticator = null;
        }
    
        @AfterEach
        public void tearDown() throws Exception {
            if (authenticator != null) {
                authenticator.close();
            }
        }
    
        @Test
        @DisplayName("Test password stored as char array")
        void testPasswordStoredAsCharArray() throws Exception {
            authenticator = new NtlmPasswordAuthenticator("DOMAIN", "username", "password123");
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java

                throw new RuntimeException("test error");
            });
            coordinatorHelper.addEventHandler("test_event", event -> secondCalled.set(true));
    
            final EventInfo event = new EventInfo();
            event.name = "test_event";
            coordinatorHelper.dispatchEvent(event);
    
            // Second handler should still be called even if first throws
            assertTrue(secondCalled.get());
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 58.6K bytes
    - Click Count (0)
Back to Top