Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for getAll (0.28 sec)

  1. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

        }
    
        private void handshake() throws IOException {
            if (handshakeComplete) return;
            doHandshake();
            handshakeComplete = true;
        }
    
        public URL getURL() {
            return connection.getURL();
        }
    
        public int getContentLength() {
            try {
                handshake();
            } catch (IOException ex) { }
            return connection.getContentLength();
        }
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 20.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

            SmbResourceLocator loc = this.getParent().getLocator();
            String unc = loc.getUNCPath();
            String p = loc.getURL().getPath();
            if ( p.lastIndexOf('/') != ( p.length() - 1 ) ) {
                throw new SmbException(loc.getURL() + " directory must end with '/'");
            }
            if ( unc.lastIndexOf('\\') != ( unc.length() - 1 ) ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sat Nov 13 15:13:49 GMT 2021
    - 5.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/NamingTest.java

                    }
    
                    assertArrayEquals(expect, found);
    
                    // check that the name can be resolved via URL
                    URL purl = d.getURL();
                    for ( String name : names ) {
                        URL u = new URL(purl, name);
                        try ( SmbResource tf = new SmbFile(u, d.getContext()) ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sat Jun 06 10:48:05 GMT 2020
    - 7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/NetServerEnumIterator.java

            if ( locator.getURL().getHost().isEmpty() ) {
                this.request = new NetServerEnum2(th.getConfig(), th.getOEMDomainName(), NetServerEnum2.SV_TYPE_DOMAIN_ENUM);
                this.response = new NetServerEnum2Response(th.getConfig());
            }
            else if ( this.workgroup ) {
                this.request = new NetServerEnum2(th.getConfig(), locator.getURL().getHost(), NetServerEnum2.SV_TYPE_ALL);
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NtlmHttpURLConnection.java

                throw new RuntimeCIFSException("NTLM handshake failed", e);
            }
            this.handshakeComplete = true;
        }
    
    
        @Override
        public URL getURL () {
            return this.connection.getURL();
        }
    
    
        @Override
        public int getContentLength () {
            handshake();
            return this.connection.getContentLength();
        }
    
    
        @Override
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 25.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/ReadWriteTest.java

    
        @Test
        public void testReadWriteTwoHandles () throws IOException {
            try ( SmbFile f = createTestFile() ) {
                try ( SmbFile s = new SmbFile(f.getURL().toString(), withTestNTLMCredentials(getContext()));
                      SmbFile t = new SmbFile(f.getURL().toString(), withTestNTLMCredentials(getContext())) ) {
                    try ( OutputStream os = s.getOutputStream();
                          InputStream is = t.getInputStream() ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/ContextConfigTest.java

                NtlmPasswordAuthenticator na = f.getContext().getCredentials().unwrap(NtlmPasswordAuthenticator.class);
                Assert.assertEquals("b@r", na.getPassword());
            }
    
            try ( SmbFile f = new SmbFile(new URL("smb://foo:b%40r@127.0.0.1/")) ) {
                Assert.assertEquals("foo:b%40r", f.getLocator().getURL().getUserInfo());
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFile.java

         * is supported (i.e. no <tt>doOutput</tt>).
         *
         * @deprecated Use getURL() instead
         * @return A new <code>{@link java.net.URL}</code> for this <code>SmbFile</code>
         */
        @Deprecated
        public URL toURL () {
            return getURL();
        }
    
    
        /**
         * Computes a hashCode for this file based on the URL string and IP
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFile.java

     * <code>URL</code> may be used as any other <code>URL</code> might to
     * access an SMB resource. Currently only retrieving data and information
     * is supported (i.e. no <tt>doOutput</tt>).
     *
     * @deprecated Use getURL() instead
     * @return A new <code>{@link java.net.URL}</code> for this <code>SmbFile</code>
     * @throws MalformedURLException
     */
        public URL toURL() throws MalformedURLException {
            return url;
        }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
  10. src/main/java/jcifs/smb/SmbEnumerationUtil.java

            // clone the locator so that the address index is not modified
            SmbResourceLocatorImpl locator = parent.fileLocator.clone();
            CIFSContext tc = parent.getContext();
            URL u = locator.getURL();
    
            FileEntry[] entries;
    
            if ( u.getPath().lastIndexOf('/') != ( u.getPath().length() - 1 ) )
                throw new SmbException(u.toString() + " directory must end with '/'");
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sat Jul 20 08:41:19 GMT 2019
    - 12.5K bytes
    - Viewed (0)
Back to top