Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 276 for StringUtil (0.06 sec)

  1. src/main/java/org/codelibs/core/lang/StringUtil.java

         * <p>
         * Usage example:
         * </p>
         *
         * <pre>
         * StringUtil.defaultString(null, "NULL")  = "NULL"
         * StringUtil.defaultString("", "NULL")    = ""
         * StringUtil.defaultString("aaa", "NULL") = "aaa"
         * StringUtil.defaultString("aaa", null)   = "aaa"
         * StringUtil.defaultString(null, null)    = null
         * </pre>
         *
         * @param str
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/util/StringUtil.java

     * Contains helper methods for string operations, including backported JDK functionality
     * for compatibility with older Java versions.
     */
    public final class StringUtil {
    
        /**
         *
         */
        private StringUtil() {
        }
    
        /**
         * Implementation of {@link java.lang.String#join} backported for JDK7.
         *
         * @param delimiter the separator to use between elements
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

                if (StringUtil.isBlank(value)) {
                    map = Collections.emptyMap();
                } else {
                    final Set<String> keySet = new HashSet<>();
                    map = split(value, "\n").get(stream -> stream.filter(StringUtil::isNotBlank).map(s -> {
                        final String[] pair = s.split("=");
                        if (pair.length == 1) {
                            return new Pair<>(StringUtil.EMPTY, pair[0].trim());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 86.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/util/StringUtilTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    
    /**
     * Test class for StringUtil utility methods
     */
    class StringUtilTest {
    
        @Test
        @DisplayName("Should join single element without delimiter")
        void testJoinSingleElement() {
            String result = StringUtil.join(",", "hello");
            assertEquals("hello", result);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/NotificationHelper.java

            final String slackWebhookUrls = fessConfig.getSlackWebhookUrls();
            if (StringUtil.isBlank(slackWebhookUrls)) {
                return;
            }
            final String body = toSlackMessage(discloser);
            StreamUtil.split(slackWebhookUrls, "[,\\s]").of(stream -> stream.filter(StringUtil::isNotBlank).forEach(url -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

         * @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;
    
            int idx = url.indexOf("://");
            if (idx >= 0) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/base/login/OpenIdConnectCredential.java

            final String value = ComponentUtil.getFessConfig().getSystemProperty("oic.default.groups");
            if (StringUtil.isBlank(value)) {
                return StringUtil.EMPTY_STRINGS;
            }
            return split(value, ",").get(stream -> stream.filter(StringUtil::isNotBlank).map(String::trim).toArray(n -> new String[n]));
        }
    
        /**
         * Gets the default roles as an array.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/ldap/LdapManager.java

                    .ifPresent(s -> entry.put(new BasicAttribute(fessConfig.getLdapAttrTelephoneNumber(), s)));
            OptionalUtil.ofNullable(user.getHomePhone())
                    .filter(StringUtil::isNotBlank)
                    .ifPresent(s -> entry.put(new BasicAttribute(fessConfig.getLdapAttrHomePhone(), s)));
            OptionalUtil.ofNullable(user.getHomePostalAddress())
                    .filter(StringUtil::isNotBlank)
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 82K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/form/FormScheme.java

            final String tokenPattern = getParameter(TOKEN_PATTERN);
            final List<Pair<String, String>> responseParams = new ArrayList<>();
            final String encoding = getParameter(ENCODING);
            if (StringUtil.isNotBlank(tokenUrl) && StringUtil.isNotBlank(tokenPattern)) {
                final String tokenHttpMethod = getParameter(TOKEN_METHOD);
                final String tokenReqParams = getParameter(TOKEN_PARAMTERS);
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 14.3K bytes
    - Viewed (1)
  10. src/main/java/org/codelibs/fess/opensearch/config/exentity/DataConfig.java

                credentials = new NTCredentials(username, password == null ? StringUtil.EMPTY : password,
                        workstation == null ? StringUtil.EMPTY : workstation, domain == null ? StringUtil.EMPTY : domain);
            } else {
                credentials = new UsernamePasswordCredentials(username, password == null ? StringUtil.EMPTY : password);
            }
            return credentials;
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 18.6K bytes
    - Viewed (0)
Back to top