Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for prop1 (0.14 sec)

  1. src/test/java/jcifs/tests/ContextConfigTest.java

            Properties prop1 = new Properties();
            prop1.setProperty("jcifs.smb.client.minVersion", "SMB302");
            PropertyConfiguration p1 = new PropertyConfiguration(prop1);
            assertEquals(DialectVersion.SMB302, p1.getMinimumVersion());
            assertEquals(DialectVersion.SMB302, p1.getMaximumVersion());
    
            Properties prop2 = new Properties();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/NamingTest.java

        @Test
        public void testWINSOnly () throws CIFSException, UnknownHostException {
            Properties prop = new Properties();
            prop.setProperty("jcifs.resolveOrder", "WINS");
            prop.setProperty("jcifs.netbios.wins", getRequiredProperty("jcifs.netbios.wins"));
    
            PropertyConfiguration cfg = new PropertyConfiguration(prop);
            BaseContext c = new BaseContext(cfg);
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jun 06 10:48:05 GMT 2020
    - 7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/Config.java

         * cannot be converted to an <code>int</code>, the provided default
         * argument will be returned.
         */
        public static int getInt ( Properties props, String key, int def ) {
            String s = props.getProperty(key);
            if ( s != null ) {
                try {
                    def = Integer.parseInt(s);
                }
                catch ( NumberFormatException nfe ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/AllTests.java

                return;
            }
            Properties props = new Properties();
            try ( FileChannel ch = FileChannel.open(config, StandardOpenOption.READ);
                  InputStream is = Channels.newInputStream(ch) ) {
                props.load(is);
    
            }
            if ( !props.isEmpty() ) {
                Map<String, String> map = toMap(props);
                String cfgname = fname.substring(0, fname.length() - 5);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 14.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/context/SingletonContext.java

    
        /**
         * Initialize singleton context using custom properties
         * 
         * This method can only be called once.
         * 
         * @param props
         * @throws CIFSException
         */
        public static synchronized final void init ( Properties props ) throws CIFSException {
            if ( INSTANCE != null ) {
                throw new CIFSException("Singleton context is already initialized");
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jun 01 08:53:08 GMT 2019
    - 4.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/config/BaseConfiguration.java

                this.maxVersion = this.minVersion;
            }
        }
    
    
        protected void initDisallowCompound ( String prop ) {
            if ( prop == null ) {
                return;
            }
            Set<String> disallow = new HashSet<>();
            StringTokenizer st = new StringTokenizer(prop, ",");
            while ( st.hasMoreTokens() ) {
                disallow.add(st.nextToken().trim());
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:06:39 GMT 2023
    - 20.4K bytes
    - Viewed (1)
  7. src/test/java/jcifs/tests/BaseCIFSTest.java

            Properties props = new Properties();
            props.putAll(this.properties);
            return new BaseContext(new PropertyConfiguration(props));
        }
    
    
        protected Map<String, String> getProperties () {
            return this.properties;
        }
    
    
        protected String getRequiredProperty ( String prop ) {
            String val = this.properties.get(prop);
            Assume.assumeNotNull(val);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.1K bytes
    - Viewed (0)
Back to top