Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 29 for getLocalHost (0.15 seconds)

  1. build-tools-internal/src/main/resources/forbidden/jdk-signatures.txt

    # Side Public License, v 1.
    
    @defaultMessage Convert to URI
    java.net.URL#getPath()
    java.net.URL#getFile()
    
    @defaultMessage Usage of getLocalHost is discouraged
    java.net.InetAddress#getLocalHost()
    
    @defaultMessage Use java.nio.file instead of java.io.File API
    java.util.jar.JarFile
    java.util.zip.ZipFile
    java.io.File
    java.io.FileInputStream
    java.io.FileOutputStream
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 4.8K bytes
    - Click Count (0)
  2. src/main/java/jcifs/ntlmssp/Type1Message.java

         *
         * @param tc
         *            context to use
         */
        public Type1Message(final CIFSContext tc) {
            this(tc, getDefaultFlags(tc), tc.getConfig().getDefaultDomain(), tc.getNameServiceClient().getLocalHost().getHostName());
        }
    
        /**
         * Creates a Type-1 message with the specified parameters.
         *
         * @param tc
         *            context to use
         * @param flags
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/netbios/NameServiceClientImpl.java

                addrs[i] = new UniAddress(addr[i]);
            }
            return addrs;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.NameServiceClient#getLocalHost()
         */
        @Override
        public NbtAddress getLocalHost() {
            return this.localhostAddress;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.NameServiceClient#getLocalName()
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 38.5K bytes
    - Click Count (0)
  4. src/test/java/jcifs/NameServiceClientTest.java

            when(nameServiceClient.getLocalHost()).thenReturn(expectedAddress);
    
            // Act
            NetbiosAddress actualAddress = nameServiceClient.getLocalHost();
    
            // Assert
            assertNotNull(actualAddress);
            assertEquals(expectedAddress, actualAddress);
            verify(nameServiceClient, times(1)).getLocalHost();
        }
    
        @Test
        void testGetLocalName() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/netbios/NbtAddress.java

     * conditions, users of jCIFS need not be concerned with this class as
     * name resolution and session services are handled internally by the smb package.
     *
     * <p> Applications can use the methods <code>getLocalHost</code>,
     * <code>getByName</code>, and
     * <code>getAllByAddress</code> to create a new NbtAddress instance. This
     * class is symmetric with {@link java.net.InetAddress}.
     *
     * <p><b>About NetBIOS:</b> The NetBIOS name
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 31.7K bytes
    - Click Count (0)
  6. src/main/java/jcifs/NetbiosAddress.java

     * conditions, users of jCIFS need not be concerned with this class as
     * name resolution and session services are handled internally by the smb package.
     *
     *
     *  * Applications can use the methods <code>getLocalHost</code>,
     * <code>getByName</code>, and
     * <code>getAllByAddress</code> to create a new NbtAddress instance. This
     * class is symmetric with {@link java.net.InetAddress}.
     *
     *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  7. src/main/java/jcifs/NameServiceClient.java

     *
     * @author mbechler
     */
    public interface NameServiceClient {
    
        /**
         * Gets the local host NetBIOS address.
         *
         * @return local host address
         */
        NetbiosAddress getLocalHost();
    
        /**
         * Gets the local host NetBIOS name.
         *
         * @return the local host name
         */
        NetbiosName getLocalName();
    
        /**
         * Gets the unknown NetBIOS name instance.
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  8. src/main/java/jcifs/ntlmssp/Type2Message.java

                    log.debug("Failed to get domain bytes", ex);
                }
            }
            final int domainLength = domain.length;
            byte[] server = {};
            final String host = tc.getNameServiceClient().getLocalHost().getHostName();
            if (host != null) {
                try {
                    server = host.getBytes(UNI_ENCODING);
                } catch (final IOException ex) {
                    log.debug("Failed to get host bytes", ex);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  9. src/main/java/jcifs/Config.java

         * Get the local host address based on the provided properties.
         *
         * @param props the properties to use for configuration
         * @return the local host InetAddress
         */
        public static InetAddress getLocalHost(final Properties props) {
            final String addr = props.getProperty("jcifs.smb.client.laddr");
    
            if (addr != null) {
                try {
                    return InetAddress.getByName(addr);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb1/Config.java

        }
    
        /**
         * Get the local host address configured for the client.
         *
         * @return the configured local InetAddress, or null if not configured
         */
        public static InetAddress getLocalHost() {
            final String addr = prp.getProperty("jcifs.smb1.smb.client.laddr");
    
            if (addr != null) {
                try {
                    return InetAddress.getByName(addr);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 14.5K bytes
    - Click Count (0)
Back to Top