Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 168 for CIFSException (0.62 seconds)

  1. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

        @DisplayName("ensureTreeConnected propagates CIFSException from handle")
        void ensureTreeConnected_propagatesException() throws Exception {
            // Arrange
            SmbPipeOutputStream out = newStream();
            CIFSException boom = new CIFSException("tree-fail");
            when(handle.ensureTreeConnected()).thenThrow(boom);
    
            // Act + Assert
            CIFSException ex = assertThrows(CIFSException.class, out::ensureTreeConnected);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SmbPipeHandleInternal.java

        /**
         *
         * @return this pipe's output stream
         * @throws CIFSException if an error occurs
         */
        @Override
        SmbPipeOutputStream getOutput() throws CIFSException;
    
        /**
         * Ensures that the tree connection is established and returns it.
         *
         * @return tree connection
         * @throws CIFSException if an error occurs connecting to the tree
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

                final ResourceNameFilter filter, final int searchAttributes) throws CIFSException {
            super(th, parent, wildcard, filter, searchAttributes);
        }
    
        @SuppressWarnings("resource")
        @Override
        protected final FileEntry open() throws CIFSException {
            final SmbResourceLocator loc = this.getParent().getLocator();
            final String unc = loc.getUNCPath();
    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)
  4. src/test/java/jcifs/context/BaseContextTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    import jcifs.BaseTest;
    import jcifs.BufferCache;
    import jcifs.CIFSException;
    import jcifs.Configuration;
    import jcifs.DfsResolver;
    import jcifs.NameServiceClient;
    import jcifs.SidResolver;
    import jcifs.SmbPipeResource;
    import jcifs.SmbResource;
    import jcifs.SmbTransportPool;
    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)
  5. src/test/java/jcifs/smb/SmbFileTest.java

            @BeforeEach
            void setUp() throws CIFSException {
                doReturn(mockTreeHandle).when(smbFile).ensureTreeConnected();
                when(mockTreeHandle.getConfig()).thenReturn(mockConfig);
            }
    
            @Test
            void testExists() throws SmbException, CIFSException {
                // Arrange
                when(mockTreeHandle.isSMB2()).thenReturn(false);
    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)
  6. src/main/java/jcifs/smb/NetServerEnumIterator.java

         * @param filter
         *            optional resource name filter
         * @throws CIFSException
         *            if enumeration fails
         */
        public NetServerEnumIterator(final SmbFile parent, final SmbTreeHandleImpl th, final String wildcard, final int searchAttributes,
                final ResourceNameFilter filter) throws CIFSException {
            this.parent = parent;
            this.nameFilter = filter;
    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)
  7. src/main/java/jcifs/smb/SmbResourceLocatorInternal.java

         *
         * @param other the other resource locator to compare with
         * @return whether the paths share a common root
         * @throws CIFSException if an error occurs during comparison
         */
        boolean overlaps(SmbResourceLocator other) throws CIFSException;
    
        /**
         * Internal: for testing only
         *
         * @param dr the DFS referral data to process
         * @param reqPath the requested path to resolve
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2K bytes
    - Click Count (0)
  8. src/main/java/jcifs/context/CIFSContextWrapper.java

            this.delegate = delegate;
        }
    
        /**
         * {@inheritDoc}
         *
         * @throws CIFSException if the URL is malformed or there is an error creating the SMB resource
         *
         * @see jcifs.CIFSContext#get(java.lang.String)
         */
        @Override
        public SmbResource get(final String url) throws CIFSException {
            try {
                return new SmbFile(url, this);
            } catch (final MalformedURLException e) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  9. src/main/java/jcifs/ResourceNameFilter.java

         * @param name the resource name to test
         * @return whether the given filename should be included
         * @throws CIFSException if an error occurs while accessing the resource
         */
        boolean accept(SmbResource parent, String name) throws CIFSException;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/CredentialsInternal.java

         * @return subject associated with the credentials
         */
        Subject getSubject();
    
        /**
         * Refresh the credentials.
         * @throws CIFSException if refresh fails
         */
        void refresh() throws CIFSException;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.1K bytes
    - Click Count (0)
Back to Top