Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for getLocalHost (0.09 sec)

  1. src/test/java/jcifs/http/NtlmSspTest.java

            // Mock NameServiceClient for Type1Message test
            lenient().when(mockCifsContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
            lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockAddress);
            lenient().when(mockAddress.getHostName()).thenReturn("WORKSTATION");
        }
    
        /**
         * Test case for when the 'Authorization' header is missing.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (1)
  2. src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java

         */
        protected String getHostInfo() {
            final StringBuilder buf = new StringBuilder();
            try {
                final InetAddress ia = InetAddress.getLocalHost();
                final String hostname = ia.getHostName();
                if (StringUtil.isNotBlank(hostname)) {
                    buf.append(hostname);
                }
                final String ip = ia.getHostAddress();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 18K bytes
    - Viewed (0)
  3. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

            DEFAULT_PASSWORD = Config.getProperty("jcifs.smb1.smb.client.password", null);
            String defaultWorkstation = null;
            try {
                defaultWorkstation = NbtAddress.getLocalHost().getHostName();
            } catch (final UnknownHostException ex) {}
            DEFAULT_WORKSTATION = defaultWorkstation;
            LM_COMPATIBILITY = Config.getInt("jcifs.smb1.smb.lmCompatibility", 3);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NtlmHttpURLConnection.java

                    message = new Type3Message(this.transportContext, type2, null, password, domain, user,
                            this.transportContext.getNameServiceClient().getLocalHost().getHostName(), 0);
                }
                return message;
            }
        }
    
        private void reconnect() throws IOException {
            final int readTimeout = getReadTimeout();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        var requestCount: Int = mockWebServer.requestCount
        mockWebServer.enqueue(MockResponse())
        mockWebServer.start()
        mockWebServer.start(0)
        mockWebServer.start(InetAddress.getLocalHost(), 0)
        mockWebServer.shutdown()
        var dispatcher: okhttp3.mockwebserver.Dispatcher = mockWebServer.dispatcher
        dispatcher = mockWebServer.dispatcher
        mockWebServer.dispatcher = QueueDispatcher()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/ntlmssp/Type3Message.java

            setFlags(getDefaultFlags(tc));
            setDomain(tc.getConfig().getDefaultDomain());
            setUser(tc.getConfig().getDefaultUsername());
            setWorkstation(tc.getNameServiceClient().getLocalHost().getHostName());
        }
    
        /**
         * Creates a Type-3 message in response to the given Type-2 message.
         *
         * @param tc
         *            context to use
         * @param type2
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SystemHelper.java

                return env.get("COMPUTERNAME");
            }
            if (env.containsKey("HOSTNAME")) {
                return env.get("HOSTNAME");
            }
            try {
                return InetAddress.getLocalHost().getHostAddress();
            } catch (final UnknownHostException e) {
                logger.debug("Unknown hostname.", e);
            }
            return "Unknown";
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 36.6K bytes
    - Viewed (0)
Back to top