Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for hasCapability (1.23 sec)

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

         */
        void ensureDFSResolved () throws CIFSException;
    
    
        /**
         * @param cap
         * @return whether the capabiltiy is present
         * @throws CIFSException
         */
        boolean hasCapability ( int cap ) throws CIFSException;
    
    
        /**
         * @return the send buffer size of the underlying connection
         * @throws CIFSException
         */
        int getSendBufferSize () throws CIFSException;
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

        public void ensureDFSResolved () throws CIFSException {
            this.treeConnection.ensureDFSResolved(this.resourceLoc);
        }
    
    
        @Override
        public boolean hasCapability ( int cap ) throws SmbException {
            return this.treeConnection.hasCapability(cap);
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbTreeHandle#isConnected()
         */
        @Override
        public boolean isConnected () {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTransportInternal.java

     *
     */
    public interface SmbTransportInternal extends SmbTransport {
    
        /**
         * @param cap
         * @return whether the transport has the given capability
         * @throws SmbException
         */
        boolean hasCapability ( int cap ) throws SmbException;
    
    
        /**
         * @return whether the transport has been disconnected
         */
        boolean isDisconnected ();
    
    
        /**
         * @param hard
         * @param inuse
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbCopyUtil.java

                        req.setFileInformation(new FileBasicInfo(ctime, atime, mtime, 0L, attrs));
                        dh.send(req);
                    }
                    else if ( dh.hasCapability(SmbConstants.CAP_NT_SMBS) ) {
                        // use the open file descriptor
                        dh.send(
                            new Trans2SetFileInformation(dh.getConfig(), dfd.getFid(), attrs, ctime, mtime, atime),
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 17.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/OplockTests.java

                        if ( ! ( e.getCause() instanceof RequestTimeoutException ) ) {
                            throw e;
                        }
                    }
                }
                else if ( trans.hasCapability(SmbConstants.CAP_NT_SMBS) ) {
                    int flags = SmbConstants.O_CREAT;
                    int sharing = SmbConstants.FILE_SHARE_DELETE | SmbConstants.FILE_SHARE_READ | SmbConstants.FILE_SHARE_WRITE;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbFile.java

            if( log.level >= 3 )
                log.println( "open0: " + unc );
    
            /*
             * NT Create AndX / Open AndX Request / Response
             */
    
            if( tree.session.transport.hasCapability( ServerMessageBlock.CAP_NT_SMBS )) {
                SmbComNTCreateAndXResponse response = new SmbComNTCreateAndXResponse();
    SmbComNTCreateAndX request = new SmbComNTCreateAndX( unc, flags, access, shareAccess, attrs, options, null );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
  7. src/main/java/jcifs/smb/SmbFileOutputStream.java

            this.writeSize = sendBufferSize - 70;
    
            this.useNTSmbs = th.hasCapability(SmbConstants.CAP_NT_SMBS);
            if ( !this.useNTSmbs ) {
                log.debug("No support for NT SMBs");
            }
    
            // there seems to be a bug with some servers that causes corruption if using signatures +
            // CAP_LARGE_WRITE
            if ( th.hasCapability(SmbConstants.CAP_LARGE_WRITEX) && !th.areSignaturesActive() ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:14:04 GMT 2021
    - 11.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFileInputStream.java

                this.readSizeFile = th.getReceiveBufferSize();
                return;
            }
    
            this.readSize = Math.min(th.getReceiveBufferSize() - 70, th.getMaximumBufferSize() - 70);
    
            if ( th.hasCapability(SmbConstants.CAP_LARGE_READX) ) {
                this.largeReadX = true;
                this.readSizeFile = Math.min(th.getConfig().getReceiveBufferSize() - 70, th.areSignaturesActive() ? 0xFFFF - 70 : 0xFFFFFF - 70);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbSession.java

        
                do {
                    switch (state) {
                        case 10: /* NTLM */
                            if (auth != NtlmPasswordAuthentication.ANONYMOUS &&
                                    transport.hasCapability(SmbConstants.CAP_EXTENDED_SECURITY)) {
                                state = 20; /* NTLMSSP */
                                break;
                            }
        
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 18.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTreeConnection.java

         * @throws SmbException
         */
        public boolean hasCapability ( int cap ) throws SmbException {
            try ( SmbSessionImpl s = getSession() ) {
                if ( s != null ) {
                    try ( SmbTransportImpl transport = s.getTransport() ) {
                        return transport.hasCapability(cap);
                    }
                }
                throw new SmbException("Not connected");
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:50:16 GMT 2020
    - 31K bytes
    - Viewed (0)
Back to top