Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for fixupHost (0.04 sec)

  1. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                // Test with mock
                doNothing().when(mockReferralData).fixupHost(fqdn);
                mockReferralData.fixupHost(fqdn);
                verify(mockReferralData, times(1)).fixupHost(fqdn);
    
                // Test with concrete implementation - requires server to be set
                assertDoesNotThrow(() -> concreteImplementation.fixupHost(fqdn));
            }
    
            @Test
            @DisplayName("Should fixup domain")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

                referralData.fixupHost("server.example.com");
    
                assertEquals("server.example.com", referralData.getServer());
            }
    
            @Test
            @DisplayName("Should not fixup host for non-matching FQDN")
            void testFixupHostWithNonMatchingFQDN() {
                setupReferralWithServer("SERVER");
    
                referralData.fixupHost("other.example.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)
  3. src/main/java/jcifs/internal/dfs/DfsReferralDataInternal.java

        /**
         * Replaces the host with the given FQDN if it is currently unqualified
         *
         * @param fqdn the fully qualified domain name to use
         */
        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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

                    log.debug(String.format("Applying DFS netbios name hack %s -> %s ", s, fqdn));
                }
                this.server = fqdn;
            }
        }
    
        @Override
        public void fixupHost(final String fqdn) {
            final String s = getServer();
            if (s.indexOf('.') < 0 && s.toUpperCase(Locale.ROOT).equals(s)) {
                if (fqdn.startsWith(s.toLowerCase(Locale.ROOT) + ".")) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/DfsImpl.java

            final DfsReferralDataInternal dri = (DfsReferralDataInternal) dr;
    
            if (tc.getConfig().isDfsConvertToFQDN()) {
                dri.fixupHost(server);
            }
    
            if (log.isDebugEnabled()) {
                log.debug("Adding key " + key + " to " + dr);
            }
    
            /*
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
Back to top