- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for fixupDomain (0.07 sec)
-
src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java
// Test with mock doNothing().when(mockReferralData).fixupDomain(domain); mockReferralData.fixupDomain(domain); verify(mockReferralData, times(1)).fixupDomain(domain); // Test with concrete implementation - requires server to be set assertDoesNotThrow(() -> concreteImplementation.fixupDomain(domain)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 28.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
referralData.fixupDomain("example.com"); assertEquals("SERVER.example.com", referralData.getServer()); } @Test @DisplayName("Should not fixup domain for qualified name") void testFixupDomainWithQualifiedName() { setupReferralWithServer("server.example.com"); referralData.fixupDomain("otherdomain.com");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/DfsImpl.java
} if (tf.getConfig().isDfsConvertToFQDN() && dr instanceof DfsReferralDataImpl) { ((DfsReferralDataImpl) dr).fixupDomain(domain); } } } if (dr == null && path != null) { dr = getStandaloneCached(domain, root, path, now); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 29.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/DfsReferralDataInternal.java
void fixupHost(String fqdn); /** * Possibly appends the given domain name to the host name if it is currently unqualified * * @param domain the domain name to append */ void fixupDomain(String domain); /** * Reduces path consumed by the given value * * @param i the number of characters to strip from path consumed */ void stripPathConsumed(int i); @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java
if (i > this.pathConsumed) { throw new IllegalArgumentException("Stripping more than consumed"); } this.pathConsumed -= i; } @Override public void fixupDomain(final String dom) { final String s = getServer(); if (s.indexOf('.') < 0 && s.toUpperCase(Locale.ROOT).equals(s)) { final String fqdn = s + "." + dom; if (log.isDebugEnabled()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
} if (req.getDomain() != null && getContext().getConfig().isDfsConvertToFQDN() && dr instanceof DfsReferralDataImpl) { ((DfsReferralDataImpl) dr).fixupDomain(req.getDomain()); } if (log.isDebugEnabled()) { log.debug("Got referral " + dr); } getContext().getDfs().cache(getContext(), path, dr);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0)