- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for SingletonContext (0.33 sec)
-
src/main/java/jcifs/context/SingletonContext.java
import jcifs.config.PropertyConfiguration; /** * Global singleton context * * @author mbechler * */ public class SingletonContext extends BaseContext implements CIFSContext { private static final Logger log = LoggerFactory.getLogger(SingletonContext.class); private static SingletonContext INSTANCE; /** * Initialize singleton context using custom properties * * This method can only be called once.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/context/SingletonContextTest.java
void resetSingleton() { try { Field instance = SingletonContext.class.getDeclaredField("INSTANCE"); instance.setAccessible(true); instance.set(null, null); } catch (NoSuchFieldException | IllegalAccessException e) { log.error("Failed to reset SingletonContext instance", e); fail("Failed to reset SingletonContext instance: " + e.getMessage()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbNamedPipeTest.java
import jcifs.SmbPipeResource; import jcifs.context.SingletonContext; import jcifs.internal.smb1.com.SmbComNTCreateAndX; import jcifs.internal.smb1.com.SmbComNTCreateAndXResponse; @ExtendWith(MockitoExtension.class) class SmbNamedPipeTest { // Creates a minimal valid CIFS context that does not perform I/O by itself private CIFSContext ctx() { return SingletonContext.getInstance(); } @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpSession; import jcifs.SmbResourceLocator; import jcifs.context.SingletonContext; import jcifs.smb.NtlmPasswordAuthentication; import jcifs.smb.SmbFile; /** * Unit tests for the NetworkExplorer servlet. * Tests initialization, authentication handling, and servlet lifecycle. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 21.2K bytes - Viewed (0) -
README.md
- **DCE/RPC Protocol**: Support for advanced operations ## Quick Start ### Basic Usage ```java import jcifs.CIFSContext; import jcifs.context.SingletonContext; import jcifs.smb.SmbFile; // Using default context CIFSContext context = SingletonContext.getInstance(); // Access a file (encryption is transparent - automatically used if server requires it)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 09:24:52 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/HandlerTest.java
assertTrue(conn instanceof SmbFile); SmbFile file = (SmbFile) conn; assertNotNull(file.getContext(), "Context must be non-null"); assertSame(SingletonContext.getInstance(), file.getContext(), "Should use SingletonContext when none provided"); } @Test @DisplayName("parseURL: exact 'smb://' sets default port") void testParseURL_ExactRoot_DefaultPort() throws MalformedURLException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/Handler.java
import java.net.URLConnection; import java.net.URLStreamHandler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.CIFSContext; import jcifs.SmbConstants; import jcifs.context.SingletonContext; /** * URL handler for transparent smb:// URL handling * */ public class Handler extends URLStreamHandler { private static final Logger log = LoggerFactory.getLogger(Handler.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/Config.java
import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Properties; import java.util.StringTokenizer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.context.SingletonContext; /** * This class now contains only utilities for config parsing. * * We strongly suggest that you create an explicit {@link jcifs.context.CIFSContextWrapper}
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java
import jcifs.CIFSContext; import jcifs.CIFSException; import jcifs.ResourceFilter; import jcifs.SmbConstants; import jcifs.SmbResource; import jcifs.SmbResourceLocator; import jcifs.context.SingletonContext; /** * Tests for NetServerFileEntryAdapterIterator. * * Intent: Validate iteration behavior, filtering, invalid inputs handling, * and delegation to the underlying iterator. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(SingletonContext.getInstance(), WORKGROUP, USERNAME, PASSWORD); context = SingletonContext.getInstance().withCredentials(auth); } catch (Exception e) { log.warn("Failed to create authenticated context, trying guest access", e); context = SingletonContext.getInstance(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0)