Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 108 for isBlank (0.13 sec)

  1. src/main/java/org/codelibs/fess/es/config/exentity/WebAuthentication.java

        }
    
        private AuthScope getAuthScope() {
            if (StringUtil.isBlank(getHostname())) {
                return AuthScope.ANY;
            }
    
            int p;
            if (getPort() == null) {
                p = AuthScope.ANY_PORT;
            } else {
                p = getPort();
            }
    
            String r = getAuthRealm();
            if (StringUtil.isBlank(r)) {
                r = AuthScope.ANY_REALM;
            }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:15 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/EncodingHelper.java

        protected Map<String, String> encodingMap = new HashMap<>();
    
        public String normalize(final String enc) {
            if (StringUtil.isBlank(enc)) {
                return defaultEncoding;
            }
    
            final String newEnc = encodingMap.get(toLowerCase(enc));
            if (StringUtil.isBlank(newEnc)) {
                return enc;
            }
            return newEnc;
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/NotificationHelper.java

            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

                logger.warn("Malformed URL: " + attrValue, e);
            }
        }
    
        protected String encodeUrl(final String url, final String enc) {
            if (StringUtil.isBlank(url) || StringUtil.isBlank(enc)) {
                return url;
            }
    
            final StringBuilder buf = new StringBuilder(url.length() + 100);
            for (final char c : url.toCharArray()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Oct 24 12:16:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                            final String userCode = userInfoHelper.getUserCode();
    
                            if (StringUtil.isBlank(userCode)) {
                                throw new WebApiException(HttpServletResponse.SC_BAD_REQUEST, "No user session.");
                            }
                            if (StringUtil.isBlank(favoriteUrl)) {
                                throw new WebApiException(HttpServletResponse.SC_BAD_REQUEST, "URL is null.");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/PermissionHelper.java

        protected String denyPrefix = "(deny)";
    
        @Resource
        protected SystemHelper systemHelper;
    
        public String encode(final String value) {
            if (StringUtil.isBlank(value)) {
                return null;
            }
    
            String permission = value.trim();
            String lower = permission.toLowerCase(Locale.ROOT);
            final String aclPrefix;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/lang/StringUtilTest.java

         */
        @Test
        public void testIsBlank() throws Exception {
            assertEquals("1", true, StringUtil.isBlank(" "));
            assertEquals("2", true, StringUtil.isBlank(""));
            assertEquals("3", false, StringUtil.isBlank("a"));
            assertEquals("4", false, StringUtil.isBlank(" a "));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/thumbnail/ThumbnailAction.java

            final String url = DocumentUtil.getValue(doc, fessConfig.getIndexFieldThumbnail(), String.class);
            if (StringUtil.isBlank(form.queryId) || StringUtil.isBlank(url) || !thumbnailSupport) {
                // 404
                throw responseManager.new404("Thumbnail for " + form.docId + " is not found.");
            }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/config/exentity/DataConfig.java

                    }
                }
    
                String r = realm;
                if (StringUtil.isBlank(realm)) {
                    r = AuthScope.ANY_REALM;
                }
    
                String s = scheme;
                if (StringUtil.isBlank(scheme) || Constants.NTLM.equals(scheme)) {
                    s = AuthScope.ANY_SCHEME;
                }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:15 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/RelatedContentHelper.java

                }
                if (entity.getTerm().startsWith(regexPrefix)) {
                    final String regex = entity.getTerm().substring(regexPrefix.length());
                    if (StringUtil.isBlank(regex)) {
                        logger.warn("Unknown regex pattern: {}", entity.getTerm());
                    } else {
                        pair.getSecond().add(new Pair<>(Pattern.compile(regex), entity.getContent()));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top