Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 20 for getLocator (0.7 seconds)

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

                while (it.hasNext()) {
                    try (SmbResource r = it.next()) {
                        try (SmbFile ndest = new SmbFile(dest, r.getLocator().getName(), true, r.getLocator().getType(), r.getAttributes(),
                                r.createTime(), r.lastModified(), r.lastAccess(), r.length())) {
    
                            if (r instanceof SmbFile) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  2. src/main/java/jcifs/SmbResource.java

        /**
         * Gets the file locator for this file
         *
         * The file locator provides details about
         *
         * @return the fileLocator
         */
        SmbResourceLocator getLocator();
    
        /**
         * The context this file was opened with
         *
         * @return the context associated with this file
         */
        CIFSContext getContext();
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 28K bytes
    - Click Count (1)
  3. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

                System.setProperty("java.protocol.handler.pkgs", pkgs + "|jcifs");
            }
        }
    
        @BeforeEach
        void setUp() throws Exception {
            parent = mock(SmbFile.class);
            when(parent.getLocator()).thenReturn(locator);
            when(treeHandle.getConfig()).thenReturn(config);
            when(treeHandle.acquire()).thenReturn(treeHandle);
            when(treeHandle.getOEMDomainName()).thenReturn("TESTDOMAIN");
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  4. src/test/java/jcifs/http/NetworkExplorerTest.java

            // Setup default session attribute behavior
            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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            lenient().when(tree.getConfig()).thenReturn(config);
            lenient().when(config.getListCount()).thenReturn(10);
            lenient().when(config.getListSize()).thenReturn(4096);
    
            lenient().when(parent.getLocator()).thenReturn(locator);
            lenient().when(locator.getUNCPath()).thenReturn("\\\\SERVER\\Share\\dir\\"); // ends with \\
    
            // Create URL with registered handler
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  6. src/main/java/jcifs/http/NetworkExplorer.java

            final ServletOutputStream out = resp.getOutputStream();
            String url;
            int n;
            try (SmbFileInputStream in = new SmbFileInputStream(file)) {
                url = file.getLocator().getPath();
                resp.setContentType("text/plain");
                resp.setContentType(URLConnection.guessContentTypeFromName(url));
                resp.setHeader("Content-Length", file.length() + "");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 23.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/NetServerEnumIterator.java

                final ResourceNameFilter filter) throws CIFSException {
            this.parent = parent;
            this.nameFilter = filter;
            final SmbResourceLocator locator = parent.getLocator();
            this.workgroup = locator.getType() == SmbConstants.TYPE_WORKGROUP;
            if (locator.getURL().getHost().isEmpty()) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

        private void setupParentForUrlCreation() throws CIFSException {
            // Only set up parent mocks when they're actually needed for URL creation
            when(parent.getContext()).thenReturn(this.ctx);
            when(parent.getLocator()).thenReturn(parentLocator);
            // Make the parent appear as a workgroup to use the simpler URL code-path
            when(parentLocator.isWorkgroup()).thenReturn(true);
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  9. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            lenient().when(mockSmbPipeHandle.unwrap(SmbPipeHandleInternal.class)).thenReturn(mockSmbPipeHandleInternal);
            lenient().when(mockSmbNamedPipe.getContext()).thenReturn(mockContext);
            lenient().when(mockSmbNamedPipe.getLocator()).thenReturn(mockSmbResourceLocator);
            lenient().when(mockDcerpcBinding.getServer()).thenReturn(TEST_SERVER);
            lenient().when(mockDcerpcBinding.getEndpoint()).thenReturn(TEST_ENDPOINT);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SmbEnumerationUtil.java

                if (dff.wildcard != null) {
                    wildcard = dff.wildcard;
                }
                searchAttributes = dff.attributes;
            }
            final SmbResourceLocator locator = parent.getLocator();
            if (locator.getURL().getHost().isEmpty()) {
                // smb:// -> enumerate servers through browsing
                Address addr;
                try {
                    addr = locator.getAddress();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.3K bytes
    - Click Count (0)
Back to Top