Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 17 for GetHost (0.06 seconds)

  1. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertThat(HostAndPort.fromString("[::1]:80").requireBracketsForIPv6().getHost())
            .isEqualTo("::1");
        // Non-bracketed non-IPv6 works fine.
        assertThat(HostAndPort.fromString("x").requireBracketsForIPv6().getHost()).isEqualTo("x");
        assertThat(HostAndPort.fromString("x:80").requireBracketsForIPv6().getHost()).isEqualTo("x");
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertThat(HostAndPort.fromString("[::1]:80").requireBracketsForIPv6().getHost())
            .isEqualTo("::1");
        // Non-bracketed non-IPv6 works fine.
        assertThat(HostAndPort.fromString("x").requireBracketsForIPv6().getHost()).isEqualTo("x");
        assertThat(HostAndPort.fromString("x:80").requireBracketsForIPv6().getHost()).isEqualTo("x");
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 10K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/net/HostAndPort.java

     *         .requireBracketsForIPv6();
     * hp.getHost();  // returns "2001:db8::1"
     * hp.getPort();  // returns 80
     * hp.toString(); // returns "[2001:db8::1]:80"
     * }
     *
     * <p>Here are some examples of recognized formats:
     *
     * <ul>
     *   <li>example.com
     *   <li>example.com:80
     *   <li>192.0.2.1
     *   <li>192.0.2.1:80
     *   <li>[2001:db8::1] - {@link #getHost()} omits brackets
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/config/WebAuthenticationConfig.java

     * <pre>{@code
     * WebAuthenticationConfig config = new WebAuthenticationConfig();
     * config.setHost("example.com");
     * config.setPort(80);
     * config.setCredentials(credentialsConfig);
     * }</pre>
     *
     * <p>Example usage for Form-based authentication:</p>
     * <pre>{@code
     * WebAuthenticationConfig config = new WebAuthenticationConfig();
     * config.setHost("example.com");
     * config.setAuthSchemeType(AuthSchemeType.FORM);
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Fri Jan 09 23:46:52 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

         *
         * @param u the URL string to extract host from
         * @return the host name, or empty string if URL is blank, or unknown hostname if parsing fails
         */
        default String getHost(final String u) {
            if (StringUtil.isBlank(u)) {
                return StringUtil.EMPTY; // empty
            }
    
            String url = u;
            final String originalUrl = url;
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 11 09:47:03 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformer.java

                    return value;
                }
                return "localhost";
            }
            if (url.startsWith("file:")) {
                return "localhost";
            }
    
            return getHost(url);
        }
    
        /**
         * Get the role types.
         * @param responseData The response data.
         * @return The role types.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

                value = "http:" + urlStr;
            } else {
                value = urlStr;
            }
            try {
                final URL url = new URL(value);
                final String host = url.getHost();
                if (StringUtil.isBlank(host) || "http".equalsIgnoreCase(host) || "https".equalsIgnoreCase(host)) {
                    return false;
                }
            } catch (final MalformedURLException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 55.3K bytes
    - Click Count (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpAuthentication.java

                final int pos = path.indexOf('/', 6);
                final URI uri = new URI(pos == -1 ? path : path.substring(0, pos));
                if (!"ftp".equals(uri.getScheme()) || (StringUtil.isNotBlank(server) && !server.equals(uri.getHost()))) {
                    return false;
                }
                int p = uri.getPort();
                if (p == -1) {
                    p = 21;
                }
                if (port > 0 && port != p) {
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Sun Jan 04 09:30:17 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

                if (proxy.getUserName() != null) {
                    int hash = (proxy.getUserName() + proxy.getPassword()).hashCode();
                    buffer.append(hash).append('@');
                }
                buffer.append(proxy.getHost()).append(':').append(proxy.getPort()).append('>');
            }
    
            // consider the username&password because a repo manager might block artifacts depending on authorization
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/job/IndexExportJob.java

         */
        protected Path buildFilePath(final String exportPath, final String url, final IndexExportFormatter formatter) {
            try {
                final URI uri = new URI(url);
                String host = uri.getHost();
                String path = uri.getPath();
    
                if (host == null || host.isEmpty()) {
                    host = "_local";
                }
    
                if (path == null || path.isEmpty()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 10.8K bytes
    - Click Count (0)
Back to Top