Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for getLocator (0.08 sec)

  1. 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() + "");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  2. 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()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFile.java

        /**
         * @param context
         * @param name
         */
        private void setContext(final SmbResource context, final String name) {
            this.fileLocator.resolveInContext(context.getLocator(), name);
            if (context.getLocator().getShare() != null && context instanceof SmbFile) {
                this.treeConnection = SmbTreeConnection.create(((SmbFile) context).treeConnection);
            } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  5. 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);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbNamedPipe.java

            super(url, tc);
            this.pipeType = pipeType;
            setNonPooled(unshared);
            if (!getLocator().isIPC()) {
                throw new MalformedURLException("Named pipes are only valid on IPC$");
            }
            this.fileLocator.updateType(TYPE_NAMED_PIPE);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  7. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  8. 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();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileTest.java

            smbFile = spy(new SmbFile(url, mockCifsContext));
    
            // Prevent network operations by default
            doReturn(mockLocator).when(smbFile).getLocator();
        }
    
        @Nested
        class WhenCreatingInstances {
    
            @Test
            void testConstructorWithURL() throws MalformedURLException {
                // Arrange & Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  10. 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();
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
Back to top