Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getCanonicalURL (0.06 sec)

  1. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

        @Override
        public String getPath() {
            return this.url.toString();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbResourceLocator#getCanonicalURL()
         */
        @Override
        public String getCanonicalURL() {
            final String str = this.url.getAuthority();
            if (str != null && !str.isEmpty()) {
                return "smb://" + this.url.getAuthority() + this.getURLPath();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/http/NetworkExplorerTest.java

            lenient().when(session.getAttribute(anyString())).thenReturn(null);
    
            // Setup SmbFile mock
            lenient().when(smbFile.getLocator()).thenReturn(locator);
            lenient().when(locator.getCanonicalURL()).thenReturn("smb://server/share/");
        }
    
        /**
         * Test servlet initialization with default parameters
         */
        @Test
        void testInit_DefaultConfig() throws ServletException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/crawler/transformer/FessXpathTransformerTest.java

            Document document = getDocument(data);
            String value = transformer.getCanonicalUrl(responseData, document);
            assertNull(value);
    
            data = "<html><head><link rel=\"canonical\" href=\"http://example.com/\"></head><body>aaa</body></html>";
            document = getDocument(data);
            value = transformer.getCanonicalUrl(responseData, document);
            assertEquals("http://example.com/", value);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 41.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            assertEquals("/share/file", a.getURLPath());
            assertEquals("\\file", a.getUNCPath());
            assertEquals("share", a.getShare());
            assertEquals("smb://server/share/file", a.getCanonicalURL());
        }
    
        @Test
        @DisplayName("Invalid path triggers RuntimeCIFSException during canonicalize")
        void testCanonicalizeInvalidPath() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NetworkExplorer.java

            out.println("<a class=\"sort\" style=\"width: 180\" href=\"?fmt=detail&sort=date\">Modified</a><br clear='all'><p>");
    
            path = dir.getLocator().getCanonicalURL();
    
            if (path.length() < 7) {
                out.println("<b><big>smb://</big></b><br>");
                path = ".";
            } else {
                out.println("<b><big>" + path + "</big></b><br>");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
Back to top