Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getResponseCode (0.45 sec)

  1. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            mockResponse(HTTP_OK, "OK", null, null);
    
            // Act & Assert
            assertDoesNotThrow(() -> spiedConnection.getResponseCode());
            // Use reflection to verify handshake method is called
            assertDoesNotThrow(() -> spiedConnection.getResponseCode());
            assertDoesNotThrow(() -> spiedConnection.getInputStream());
        }
    
        /**
         * Test a successful NTLM authentication handshake.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/curl/io/IOIntegrationTest.java

                return false;
            }
    
            @Override
            public void connect() throws IOException {
                // Do Nothing
            }
    
            @Override
            public int getResponseCode() throws IOException {
                return 200;
            }
    
            @Override
            public InputStream getInputStream() throws IOException {
                return new ByteArrayInputStream(new byte[100]); // dummy payload
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Sat May 10 01:44:04 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

        public String getRequestMethod() {
            return connection.getRequestMethod();
        }
    
        @Override
        public int getResponseCode() throws IOException {
            try {
                handshake();
            } catch (final IOException ex) {}
            return connection.getResponseCode();
        }
    
        @Override
        public String getResponseMessage() throws IOException {
            try {
                handshake();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/http/NtlmHttpURLConnection.java

        }
    
        @Override
        public String getRequestMethod() {
            return this.connection.getRequestMethod();
        }
    
        @Override
        public int getResponseCode() throws IOException {
            handshake();
            return this.connection.getResponseCode();
        }
    
        @Override
        public String getResponseMessage() throws IOException {
            handshake();
            return this.connection.getResponseMessage();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/curl/CurlRequest.java

                    response.setHttpStatusCode(con.getResponseCode());
                    response.setHeaders(con.getHeaderFields());
                } catch (final Exception e) {
                    throw new CurlException("Failed to access the response.", e);
                }
                writeContent(() -> {
                    try {
                        if (con.getResponseCode() < 400) {
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 18.6K bytes
    - Viewed (0)
Back to top