- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 32 for openConnection (0.08 seconds)
-
src/main/java/jcifs/smb1/http/Handler.java
return DEFAULT_HTTP_PORT; } @Override protected URLConnection openConnection(URL url) throws IOException { url = new URL(url, url.toExternalForm(), getDefaultStreamHandler(url.getProtocol())); return new NtlmHttpURLConnection((HttpURLConnection) url.openConnection()); } private static URLStreamHandler getDefaultStreamHandler(final String protocol) throws IOException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/test/net/protocol/xxx1/Handler.java
import java.net.URLConnection; import java.net.URLStreamHandler; public class Handler extends URLStreamHandler { public static final String PROTOCOL_TYPE = "web"; @Override protected URLConnection openConnection(URL u) throws IOException { return null; }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 15 06:53:53 GMT 2025 - 1006 bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/Handler.java
*/ public Handler() { } @Override protected int getDefaultPort() { return SmbConstants.DEFAULT_PORT; } @Override public URLConnection openConnection(final URL u) throws IOException { return new SmbFile(u); } @Override protected void parseURL(final URL u, String spec, final int start, int limit) { final String host = u.getHost();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/Handler.java
this.transportContext = tc; } @Override protected int getDefaultPort() { return SmbConstants.DEFAULT_PORT; } @Override public URLConnection openConnection(final URL u) throws IOException { if (log.isDebugEnabled()) { log.debug("Opening file " + u); } return new SmbFile(u, getTransportContext()); } /** * @returnCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3K bytes - Click Count (0) -
src/main/java/jcifs/http/Handler.java
return DEFAULT_HTTP_PORT; } @Override protected URLConnection openConnection(URL url) throws IOException { url = new URL(url, url.toExternalForm(), getDefaultStreamHandler(url.getProtocol())); return new NtlmHttpURLConnection((HttpURLConnection) url.openConnection(), this.transportContext); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.9K bytes - Click Count (0) -
src/main/java/org/codelibs/core/net/URLUtil.java
* @return A {@link URLConnection} object to the URL. */ public static URLConnection openConnection(final URL url) { assertArgumentNotNull("url", url); try { final URLConnection connection = url.openConnection(); connection.setUseCaches(false); return connection; } catch (final IOException e) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 6.8K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
} else if (stream != null) { when(conn.getInputStream()).thenReturn(stream); } } /** * Test helper class for mocking URL.openConnection() behavior */ static class TestURLStreamHandler extends java.net.URLStreamHandler { private final List<HttpURLConnection> connections = new ArrayList<>(); private int currentIndex = 0;
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) -
src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java
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/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
// Minimal URLStreamHandler to allow creating smb:// URLs in tests private static final URLStreamHandler SMB_HANDLER = new URLStreamHandler() { @Override protected URLConnection openConnection(URL u) { return null; // not used } }; @BeforeEach void setup() { when(ctx.getConfig()).thenReturn(config); when(ctx.getCredentials()).thenReturn(creds);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt
} } @Test fun testUrlConnectionDirect() { testRequest { val url = URI(mockServer.endpoint + "/person?name=peter").toURL() val connection = url.openConnection() as HttpURLConnection assertThat( connection.inputStream .source() .buffer() .readUtf8(), ).contains("Peter the person") } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 6.2K bytes - Click Count (1)