Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for encodeJsp (0.11 sec)

  1. src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java

        @Secured({ ROLE })
        public HtmlResponse edit(final EditForm form) {
            final String jspType = "view";
            final File jspFile = getJspFile(form.fileName, jspType);
            try {
                form.content = encodeJsp(new String(FileUtil.readBytes(jspFile), Constants.UTF_8));
            } catch (final UnsupportedEncodingException e) {
                throw new FessSystemException("Invalid encoding", e);
            }
            saveToken();
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/misc/Base64Util.java

     * </p>
     *
     * @author higa
     */
    public abstract class Base64Util {
    
        /**
         * Do not instantiate.
         */
        protected Base64Util() {
        }
    
        /**
         * Encodes data in Base64.
         * <p>
         * This method uses {@link java.util.Base64.Encoder} for encoding.
         * </p>
         *
         * @param inData
         *            The data to encode
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

                    }
                    query = buf.toString();
                    request.setAttribute(key, query);
                }
                return query;
            }).orElse(null);
        }
    
        /**
         * Encodes a string to URL-safe Base64 format.
         *
         * @param value the string to encode
         * @return Base64 encoded string, or empty string if value is null
         */
        public static String base64(final String value) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 25.4K bytes
    - Viewed (1)
  4. src/main/java/org/codelibs/fess/storage/S3StorageClient.java

            final String[] values = name.split("/");
            if (values.length == 0) {
                return StringUtil.EMPTY;
            }
            return values[values.length - 1];
        }
    
        /**
         * Encodes an object name to a URL-safe base64 string.
         *
         * @param objectName the object name to encode
         * @return base64 encoded string
         */
        private String encodeId(final String objectName) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

            assertEquals(0, queryList.size());
        }
    
        // Additional tests for createSuggestTextId boundary cases
        @Test
        public void testCreateSuggestTextIdBoundaryExactly445() {
            // Create text that encodes to exactly 445 characters
            // Base64 encoding increases size by ~4/3, so original size should be ~333 bytes
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 333; i++) {
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java

                    messages.addErrorsCrudInvalidMode(GLOBAL, String.valueOf(expectedMode), String.valueOf(crudMode));
                }, errorHook);
            }
        }
    
        /**
         * Encodes permission strings into an array.
         *
         * @param permissionsText the permissions text (newline-separated)
         * @return encoded permission array
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 27 07:01:25 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/storage/GcsStorageClient.java

            final String[] values = name.split("/");
            if (values.length == 0) {
                return StringUtil.EMPTY;
            }
            return values[values.length - 1];
        }
    
        /**
         * Encodes an object name to a URL-safe base64 string.
         *
         * @param objectName the object name to encode
         * @return base64 encoded string
         */
        private String encodeId(final String objectName) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

                        logger.debug("Failed to decode similar document hash: hash={}", hash, e);
                    }
                }
            }
            return hash;
        }
    
        /**
         * Encodes a similar document hash using GZIP compression and Base64 encoding.
         * This reduces storage space for hash values while maintaining uniqueness.
         *
         * @param hash the hash string to encode
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/curl/CurlRequest.java

                });
                return processor.getResponse();
            } finally {
                this.threadPool = originalThreadPool;
            }
        }
    
        /**
         * Encodes the specified value using the character encoding.
         *
         * @param value the value to encode
         * @return the encoded value
         * @throws CurlException if the encoding is unsupported
         */
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java

         * @return the full object name
         */
        public static String getObjectName(final String path, final String name) {
            return getPathPrefix(path) + name;
        }
    
        /**
         * Encodes an object name to a URL-safe base64 string.
         *
         * @param objectName the object name to encode
         * @return base64 encoded string
         */
        protected static String encodeId(final String objectName) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 22.1K bytes
    - Viewed (0)
Back to top