- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 16 for GetContext (0.08 seconds)
-
src/main/java/jcifs/SmbSession.java
<T extends SmbSession> T unwrap(Class<T> type); /** * Returns the CIFS context that this session is attached to. * * @return the context this session is attached to */ CIFSContext getContext();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.7K bytes - Click Count (0) -
src/main/java/jcifs/SmbTransport.java
public interface SmbTransport extends AutoCloseable { /** * Gets the CIFS context associated with this transport. * * @return the context this transport is attached to */ CIFSContext getContext(); /** * Unwraps the transport to the specified type. * * @param <T> the type to unwrap to * @param type the class of the transport type to unwrapCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.8K bytes - Click Count (0) -
src/test/java/jcifs/SmbTransportTest.java
// Arrange when(smbTransport.getContext()).thenReturn(cifsContext); // Act CIFSContext result = smbTransport.getContext(); // Assert assertNotNull(result, "Context should not be null"); assertEquals(cifsContext, result, "Returned context should be the mocked context"); verify(smbTransport).getContext(); // Verify that the method was called } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0) -
tensorflow/c/eager/immediate_execution_operation.h
const = 0; virtual absl::Status SetInput(size_t index, ImmediateExecutionTensorHandle* input) = 0; virtual ImmediateExecutionContext* GetContext() const = 0; // Following two methods are used to support custom device. // Return true if the inputs contain custom device tensor handle. It means // that the argument need to be handled by a custom device.
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 3.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java
} @Override public int getInflightRequests() { return delegate.getInflightRequests(); } @Override public CIFSContext getContext() { return delegate.getContext(); } @Override @SuppressWarnings("unchecked") public <T extends SmbTransport> T unwrap(Class<T> type) { if (type.isAssignableFrom(this.getClass())) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 8.9K bytes - Click Count (0) -
src/main/java/jcifs/SmbException.java
*/ public Category getCategory() { return category; } /** * Gets the error context * * @return the context map */ public Map<String, Object> getContext() { return new HashMap<>(context); } /** * Gets a specific context value * * @param key the context key * @return the context value or null */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 6.4K bytes - Click Count (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthentication.java
this.hashesExternal = true; } /** * Get the CIFS context associated with this authentication. * * @return the CIFS context */ protected CIFSContext getContext() { return this.context; } @Override public NtlmPasswordAuthentication clone() { final NtlmPasswordAuthentication cloned = new NtlmPasswordAuthentication();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 9.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
private SmbTransportImpl transport; @BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this); when(session.getConfig()).thenReturn(config); when(session.getContext()).thenReturn(context); when(session.getTransport()).thenReturn(transport); when(session.acquire()).thenReturn(session); when(config.isTraceResourceUsage()).thenReturn(false);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.8K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java
// Check if we can use directory leasing DirectoryLeaseManager dirManager = getDirectoryLeaseManager(th); if (dirManager != null && smbFile.getContext().getConfig().isUseDirectoryLeasing()) { return listFilesWithDirectoryLeasing(smbFile, dirManager); } else { // Fall back to regular directory listingCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 7.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/HandlerTest.java
// Assert 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")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.8K bytes - Click Count (0)