Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 20 for getLocator (0.07 seconds)

  1. src/test/java/jcifs/SmbResourceTest.java

            @Test
            @DisplayName("getLocator should return SmbResourceLocator")
            void testGetLocator() throws CIFSException {
                // Given
                SmbResource resource = createMockResource();
                when(resource.getLocator()).thenReturn(mockLocator);
    
                // When
                SmbResourceLocator locator = resource.getLocator();
    
                // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
  2. src/test/java/jcifs/context/BaseContextTest.java

            assertNotSame(pipe1, pipe2, "Different pipes should be different instances");
    
            assertTrue(resource1.getLocator().getURL().toString().contains("server1"), "First resource should contain server1");
            assertTrue(resource2.getLocator().getURL().toString().contains("server2"), "Second resource should contain server2");
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java

         */
        @SuppressWarnings("resource")
        @Override
        protected FileEntry open() throws CIFSException {
            final SmbTreeHandleImpl th = getTreeHandle();
            final String uncPath = getParent().getLocator().getUNCPath();
            final Smb2CreateRequest create = new Smb2CreateRequest(th.getConfig(), uncPath);
            create.setCreateOptions(Smb2CreateRequest.FILE_DIRECTORY_FILE);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

        }
    
        @SuppressWarnings("resource")
        @Override
        protected final FileEntry open() throws CIFSException {
            final SmbResourceLocator loc = this.getParent().getLocator();
            final String unc = loc.getUNCPath();
            final String p = loc.getURL().getPath();
            if (p.lastIndexOf('/') != p.length() - 1) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  5. 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);
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  6. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

        void happyPath_enumerates_and_closes(String wildcard) throws Exception {
            // Setup required for this test
            when(parent.getLocator()).thenReturn(locator);
            when(locator.getUNCPath()).thenReturn("\\\\server\\share\\dir\\");
            when(tree.getConfig()).thenReturn(config);
            when(config.getMaximumBufferSize()).thenReturn(65535);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.7K bytes
    - Click Count (0)
  8. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

            return this.pipe.getContext();
        }
    
        @Override
        public String getServer() {
            return this.pipe.getLocator().getServer();
        }
    
        @Override
        public String getServerWithDfs() {
            return this.pipe.getLocator().getServerWithDfs();
        }
    
        @Override
        public byte[] getSessionKey() throws CIFSException {
            return this.handle.getSessionKey();
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                SmbFile parent = mock(SmbFile.class, RETURNS_DEEP_STUBS);
                SmbResourceLocator locator = mock(SmbResourceLocator.class);
                when(parent.getLocator()).thenReturn(locator);
                // Host is empty -> triggers master browser path
                URL anyUrlWithEmptyHost = new URL("file:/");
                when(locator.getURL()).thenReturn(anyUrlWithEmptyHost);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  10. 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 {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
Back to Top