- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for getResponseCode (0.1 seconds)
-
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 {Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 44.1K bytes - Click Count (0) -
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();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 22.1K bytes - Click Count (0) -
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();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 25.6K bytes - Click Count (0) -
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.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.6K bytes - Click Count (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
val url = server.url("/").toUrl() val connection = url.openConnection() as HttpURLConnection assertThat(connection.getResponseCode()).isEqualTo(HttpURLConnection.HTTP_OK) val refusedConnection = url.openConnection() as HttpURLConnection assertFailsWith<ConnectException> { refusedConnection.getResponseCode() }.also { expected -> assertThat(expected.message!!).contains("refused") } } @Test
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 03 13:16:34 GMT 2025 - 22.3K bytes - Click Count (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
*/ @Override public void accept(final HttpURLConnection con) { try { response.setEncoding(encoding); response.setHttpStatusCode(con.getResponseCode()); response.setHeaders(con.getHeaderFields()); } catch (final Exception e) { throw new CurlException("Failed to access the response.", e); }Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 19.7K bytes - Click Count (0)