Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getTreeHandle (0.12 sec)

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

         * @param wildcard
         * @return
         * @throws CIFSException
         */
        @SuppressWarnings ( "resource" )
        @Override
        protected FileEntry open () throws CIFSException {
            SmbTreeHandleImpl th = getTreeHandle();
            String uncPath = getParent().getLocator().getUNCPath();
            Smb2CreateRequest create = new Smb2CreateRequest(th.getConfig(), uncPath);
            create.setCreateOptions(Smb2CreateRequest.FILE_DIRECTORY_FILE);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 16:15:08 UTC 2020
    - 5.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

            }
            if ( unc.lastIndexOf('\\') != ( unc.length() - 1 ) ) {
                throw new SmbException(unc + " UNC must end with '\\'");
            }
    
            SmbTreeHandleImpl th = getTreeHandle();
            this.response = new Trans2FindFirst2Response(th.getConfig());
    
            try {
                th.send(
                    new Trans2FindFirst2(
                        th.getConfig(),
                        unc,
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Nov 13 15:13:49 UTC 2021
    - 5.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/FileOperationsTest.java

                    finally {
                        tgt.delete();
                    }
                }
                catch ( SmbUnsupportedOperationException e ) {
                    try ( SmbTreeHandle th = defaultShareRoot.getTreeHandle() ) {
                        Assume.assumeTrue("Not SMB2", th.isSMB2());
                    }
                    throw e;
                }
                finally {
                    if ( !renamed && f.exists() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:17:59 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/SessionTest.java

            Assert.assertTrue(f2 instanceof SmbFile);
            try ( SmbTreeHandleInternal th1 = (SmbTreeHandleInternal) ( (SmbFile) f1 ).getTreeHandle();
                  SmbTreeHandleInternal th2 = (SmbTreeHandleInternal) ( (SmbFile) f2 ).getTreeHandle();
                  SmbSessionInternal sess1 = th1.getSession().unwrap(SmbSessionInternal.class);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/KerberosTest.java

            CIFSContext ctx = getContext().withCredentials(creds);
            try ( SmbFile f = new SmbFile(getTestShareURL(), ctx);
                  SmbTreeHandleInternal th = (SmbTreeHandleInternal) f.getTreeHandle();
                  SmbSessionInternal session = (SmbSessionInternal) th.getSession() ) {
                Assume.assumeTrue("Not SMB2", th.isSMB2());
                f.exists();
                session.reauthenticate();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 01 09:46:04 UTC 2020
    - 11.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java

            }
            catch ( Exception e ) {
                doClose();
                throw e;
            }
    
        }
    
    
        /**
         * @return the treeHandle
         */
        public final SmbTreeHandleImpl getTreeHandle () {
            return this.treeHandle;
        }
    
    
        /**
         * @return the searchAttributes
         */
        public final int getSearchAttributes () {
            return this.searchAttributes;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/TimeoutTest.java

                f.createNewFile();
                try {
                    SmbTransportInternal t;
                    try ( SmbTreeHandleInternal th = (SmbTreeHandleInternal) f.getTreeHandle();
                          SmbSessionInternal session = th.getSession().unwrap(SmbSessionInternal.class);
                          SmbTransportInternal trans = session.getTransport().unwrap(SmbTransportInternal.class) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 12.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/EnumTest.java

            try ( SmbResource root = ctx.get(getTestShareURL());
                  SmbResource f = root.resolve(makeRandomDirectoryName()) ) {
    
                try ( SmbTreeHandle treeHandle = ( (SmbFile) root ).getTreeHandle() ) {
                    Assume.assumeTrue("Not SMB2", treeHandle.isSMB2());
                }
    
                f.mkdir();
                try {
    
                    for ( int i = 0; i < 5; i++ ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFile.java

            try ( SmbTreeHandle th = ensureTreeConnected() ) {}
        }
    
    
        /**
         * 
         * @return a tree handle
         * @throws CIFSException
         */
        public SmbTreeHandle getTreeHandle () throws CIFSException {
            return ensureTreeConnected();
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (0)
Back to top