- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for getTargetHost (0.08 seconds)
-
src/main/java/jcifs/smb/SmbSessionImpl.java
/** * @return the targetDomain */ public String getTargetDomain() { return this.targetDomain; } /** * @return the targetHost */ public String getTargetHost() { return this.targetHost; } /** * @return whether the session is in use */ @Override public boolean isInUse() { return this.usageCount.get() > 0;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 68.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
@Test void testTreeConnectSmb1() throws CIFSException, IOException { when(transport.isSMB2()).thenReturn(false); when(transport.getContext()).thenReturn(context); when(session.getTargetHost()).thenReturn("localhost"); // Mock negotiate response for SMB1 SmbComNegotiateResponse nego = mock(SmbComNegotiateResponse.class); ServerData serverData = new ServerData();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/SmbTreeConnection.java
// refresh anonymous session or fallback to anonymous from guest login try (SmbSessionInternal s = trans.getSmbSession(this.ctx.withAnonymousCredentials(), treesess.getTargetHost(), treesess.getTargetDomain()) .unwrap(SmbSessionInternal.class); SmbTreeImpl tr = s.getSmbTree(share, null).unwrap(SmbTreeImpl.class)) {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/test/java/jcifs/smb/SmbSessionImplTest.java
// Basic getters assertSame(configuration, session.getConfig(), "getConfig delegates to transportContext"); assertEquals("EXAMPLE", session.getTargetDomain()); assertEquals("server.example", session.getTargetHost()); assertTrue(session.isInUse(), "New session starts in-use (usageCount=1)"); // Transport and context delegation assertSame(cifsContext, session.getContext());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/SmbTreeImpl.java
* sure if the NetBIOS session has been successfully * established. */ final String tconHostName = sess.getTargetHost(); if (tconHostName == null) { throw new SmbException("Transport disconnected while waiting for connection"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 30K bytes - Click Count (0)