- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 21 for BaseContext (0.09 seconds)
-
src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java
import java.util.Properties; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import jcifs.CIFSContext; import jcifs.config.PropertyConfiguration; import jcifs.context.BaseContext; import jcifs.smb.SmbTransportInternal; /** * Integration tests for RDMA functionality. * * This class contains both unit tests (that always run) and integration tests
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 13.8K bytes - Click Count (0) -
src/main/java/jcifs/http/NetworkExplorer.java
import jcifs.CIFSException; import jcifs.Config; import jcifs.DfsReferralData; import jcifs.NameServiceClient; import jcifs.SmbConstants; import jcifs.config.PropertyConfiguration; import jcifs.context.BaseContext; import jcifs.netbios.NbtAddress; import jcifs.smb.DfsReferral; import jcifs.smb.NtStatus; import jcifs.smb.NtlmPasswordAuthentication; import jcifs.smb.SmbAuthException; import jcifs.smb.SmbException;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 23.4K bytes - Click Count (0) -
docs/smb3-features/01-smb3-lease-design.md
assertFalse((state & Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING) != 0); } @Test public void testLeaseManager() { CIFSContext context = new BaseContext(new PropertyConfiguration()); LeaseManager manager = new LeaseManager(context); String path = "/share/file.txt"; int requestedState = Smb2LeaseState.SMB2_LEASE_FULL;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 22K bytes - Click Count (0) -
docs/smb3-features/04-directory-leasing-design.md
assertFalse(entry.hasChild("file1.txt")); assertEquals(0, entry.getChildren().size()); } @Test public void testDirectoryLeaseManager() { CIFSContext context = new BaseContext(new PropertyConfiguration()); LeaseManager baseManager = new LeaseManager(context); DirectoryLeaseManager dirManager = new DirectoryLeaseManager(context, baseManager); // Request directory lease
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 36.2K bytes - Click Count (0) -
docs/smb3-features/02-persistent-handles-design.md
Thread.sleep(100); assertFalse(persistent.isExpired()); } @Test public void testHandleManagerPersistence() throws Exception { CIFSContext context = new BaseContext(new PropertyConfiguration()); PersistentHandleManager manager = new PersistentHandleManager(context); // Create persistent handle HandleGuid guid = manager.requestDurableHandle(Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 31.6K bytes - Click Count (0) -
internal/http/server.go
srv.TLSConfig = cfg return srv } // UseBaseContext use custom base context for this HTTP *Server func (srv *Server) UseBaseContext(ctx context.Context) *Server { srv.BaseContext = func(listener net.Listener) context.Context { return ctx } return srv } // UseCustomLogger use customized logger for this HTTP *Server func (srv *Server) UseCustomLogger(l *log.Logger) *Server {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 6.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
Configuration config = new PropertyConfiguration(props); BaseContext baseContext = new BaseContext(config); // Create fresh authentication NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(baseContext, WORKGROUP, USERNAME, PASSWORD); CIFSContext result = baseContext.withCredentials(auth); // Add a unique identifier to help with debugging
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 56K bytes - Click Count (0) -
src/main/java/jcifs/CIFSContext.java
* {@link #withDefaultCredentials()}, {@link #withAnonymousCredentials()}, {@link #withCredentials(Credentials)} * allow to create such sub-contexts. * * * Implementors of this interface should extend {@link jcifs.context.BaseContext} or * {@link jcifs.context.CIFSContextWrapper} to get forward compatibility. * * @author mbechler * */ public interface CIFSContext { /** * Get a resource *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.9K bytes - Click Count (0) -
src/main/java/jcifs/Config.java
* This class now contains only utilities for config parsing. * * We strongly suggest that you create an explicit {@link jcifs.context.CIFSContextWrapper} * with your desired config. It's base implementation {@link jcifs.context.BaseContext} * should be sufficient for most needs. * * If you want to retain the classic singleton behavior you can use * {@link jcifs.context.SingletonContext#getInstance()} * witch is initialized using system properties. *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/MultiChannelManager.java
*/ private jcifs.CIFSContext createDefaultContext() throws CIFSException { try { // Use the configuration from the MultiChannelManager return new jcifs.context.BaseContext(this.config); } catch (Exception e) { throw new CIFSException("Failed to create CIFSContext for multi-channel transport", e); } } private void startHealthCheckTask() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 20.5K bytes - Click Count (0)