Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getUrlEncoder (0.19 sec)

  1. src/main/java/org/codelibs/fess/app/service/SearchLogService.java

                updatePagerByAgg(pager, buckets.size());
                return buckets.stream().map(e -> {
                    final Map<String, Object> map = new HashMap<>();
                    map.put(ID, Base64.getUrlEncoder().encodeToString(e.getKeyAsString().getBytes(StandardCharsets.UTF_8)));
                    map.put(KEY, e.getKeyAsString());
                    map.put(COUNT, e.getDocCount());
                    return map;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/dict/DictionaryCreator.java

                return null;
            }
    
            return newDictionaryFile(encodePath(path), path, timestamp);
        }
    
        protected String encodePath(final String path) {
            return Base64.getUrlEncoder().encodeToString(path.getBytes(Constants.CHARSET_UTF_8));
        }
    
        protected boolean isTarget(final String path) {
            return pattern.matcher(path).find();
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java

                        final Map<String, Object> map = new HashMap<>();
                        final String name = filePath.getFileName().toString();
                        map.put("id", Base64.getUrlEncoder().encodeToString(name.getBytes(StandardCharsets.UTF_8)));
                        map.put("name", name);
                        try {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java

                        final String converted = URLEncoder.encode(target, Constants.UTF_8);
                        if (target.equals(converted)) {
                            encodedBuf.append(Base64.getUrlEncoder().encodeToString(target.getBytes(Constants.CHARSET_UTF_8)));
                        } else {
                            encodedBuf.append(converted);
                        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/role/AdminRoleAction.java

            switch (form.crudMode) {
            case CrudMode.CREATE:
                return OptionalEntity.of(new Role()).map(entity -> {
                    entity.setId(Base64.getUrlEncoder().encodeToString(form.name.getBytes(Constants.CHARSET_UTF_8)));
                    return entity;
                });
            case CrudMode.EDIT:
                if (form instanceof EditForm) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java

            switch (form.crudMode) {
            case CrudMode.CREATE:
                return OptionalEntity.of(new User()).map(entity -> {
                    entity.setId(Base64.getUrlEncoder().encodeToString(form.name.getBytes(Constants.CHARSET_UTF_8)));
                    return entity;
                });
            case CrudMode.EDIT:
                if (form instanceof EditForm) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/group/AdminGroupAction.java

            switch (form.crudMode) {
            case CrudMode.CREATE:
                return OptionalEntity.of(new Group()).map(entity -> {
                    entity.setId(Base64.getUrlEncoder().encodeToString(form.name.getBytes(Constants.CHARSET_UTF_8)));
                    return entity;
                });
            case CrudMode.EDIT:
                if (form instanceof EditForm) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

            }).orElse(null);
        }
    
        public static String base64(final String value) {
            if (value == null) {
                return StringUtil.EMPTY;
            }
            return Base64.getUrlEncoder().encodeToString(value.getBytes(Constants.CHARSET_UTF_8));
        }
    
        public static boolean fileExists(final String path) {
            final File file = new File(LaServletContextUtil.getServletContext().getRealPath(path));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

                    try (GZIPOutputStream gos = new GZIPOutputStream(baos)) {
                        gos.write(hash.getBytes(Constants.UTF_8));
                    }
                    return SIMILAR_DOC_HASH_PREFIX + Base64.getUrlEncoder().withoutPadding().encodeToString(baos.toByteArray());
                } catch (final IOException e) {
                    logger.warn("Failed to encode {}", hash, e);
                }
            }
            return hash;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 12K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java

        }
    
        protected static String encodeId(final String objectName) {
            if (objectName == null) {
                return StringUtil.EMPTY;
            }
            return new String(Base64.getUrlEncoder().encode(objectName.getBytes(Constants.UTF_8_CHARSET)), Constants.UTF_8_CHARSET);
        }
    
        protected static String decodeId(final String id) {
            if (id == null) {
                return StringUtil.EMPTY;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top