- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 15 for getTransport (0.15 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/smb/SmbSessionInternalTest.java
} // Happy path: transport is returned and verified @Test @DisplayName("getTransport returns mocked transport") void getTransport_happy() { when(session.getTransport()).thenReturn(transport); assertSame(transport, session.getTransport()); verify(session).getTransport(); } // Happy path: connect to logon share completes without exception @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.8K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbSessionInternal.java
*/ byte[] getSessionKey() throws CIFSException; /** * Returns the SMB transport associated with this session. * * @return the transport for this session */ SmbTransport getTransport(); /** * Connect to the logon share * * @throws SmbException if the connection fails */ void treeConnectLogon() throws SmbException; /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java
/** * Get the transport for this channel * * @return SMB transport */ public SmbTransport getTransport() { return transport; } /** * Set the transport for this channel * * @param transport SMB transport */ public void setTransport(SmbTransport transport) { this.transport = transport; } /** * Get local network interfaceCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 10.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
verify(enc, times(1)).decryptMessage(eq(new byte[] { 5 })); } @Test @DisplayName("getTransport returns acquired transport instance") void testGetTransportAcquire() { SmbSessionImpl session = newSession(); clearInvocations(transport); SmbTransportImpl t = session.getTransport(); assertSame(transport, t); verify(transport, times(1)).acquire(); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/MultiChannelManager.java
if (channelGroup != null) { for (ChannelInfo channel : channelGroup.getChannels()) { try { if (channel.getTransport() != null) { channel.getTransport().disconnect(true); } } catch (Exception e) { log.warn("Error closing channel {}: {}", channel.getChannelId(), e.getMessage());
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) -
src/main/java/jcifs/smb/SmbTreeHandleImpl.java
return transport.getNegotiateResponse().getSendBufferSize(); } } @Override public int getReceiveBufferSize() throws SmbException { try (SmbSessionImpl session = this.treeConnection.getSession(); SmbTransportImpl transport = session.getTransport()) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
try (SmbSessionImpl session = getSession()) { if (session == null) { return; } try (SmbTransportImpl transport = session.getTransport()) { synchronized (transport) { final SmbTreeImpl t = getTreeInternal(); if (t != null) { try {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 30.4K bytes - Click Count (1) -
src/main/java/jcifs/smb/SmbTreeImpl.java
if (this.connectionState.get() == 2) { // we are connected, so we know return isDfs(); } try (SmbTransportImpl transport = this.session.getTransport()) { return transport.getNegotiateResponse().isDFSSupported(); } } /** * @return the session this tree is connected in */ public SmbSessionImpl getSession() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 30K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java
return channels.values().stream().filter(c -> c.getTransport() == transport).findFirst().orElse(null); } /** * Remove a channel * * @param channel channel to remove */ public void removeChannel(ChannelInfo channel) { channels.remove(channel.getChannelId()); try { if (channel.getTransport() != null) { channel.getTransport().close();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 20K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
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); when(context.getConfig()).thenReturn(config);
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)