Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getRealPath (0.51 sec)

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

                uploadFile = new File(getServletContext().getRealPath("/images/" + fileName));
            } else if (checkFileType(fileName, fessConfig.getSupportedUploadedCssExtentionsAsArray())
                    && checkFileType(uploadedFileName, fessConfig.getSupportedUploadedCssExtentionsAsArray())) {
                uploadFile = new File(getServletContext().getRealPath("/css/" + fileName));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/job/PythonJobTest.java

            assertNotNull(pythonJob.sessionId);
            assertTrue(pythonJob.sessionId.length() >= 10);
    
            // The test doesn't actually call the real process since ServletContext.getRealPath returns null in test
            // and causes an exception which is caught and added to result
            assertTrue(result.contains("Session Id:"));
        }
    
        // Test execute with custom session ID
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

                    @Override
                    public Long load(final String key) throws Exception {
                        try {
                            final Path path = Paths.get(LaServletContextUtil.getServletContext().getRealPath(key));
                            if (Files.isRegularFile(path)) {
                                return Files.getLastModifiedTime(path).toMillis();
                            }
                        } catch (final Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/job/GenerateThumbnailJobTest.java

                }
            }
        }
    
        private static class TestServletContext implements ServletContext {
            File tempDir;
    
            @Override
            public String getRealPath(String path) {
                if (tempDir != null) {
                    return new File(tempDir, path).getAbsolutePath();
                }
                return new File("/test/webapp", path).getAbsolutePath();
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

        }
    
        // Mock ServletContext implementation
        private class MockServletContext extends jakarta.servlet.GenericServlet implements ServletContext {
            @Override
            public String getRealPath(String path) {
                if (path == null) {
                    return tempDir.getAbsolutePath();
                }
                // Remove leading slash if present
                if (path.startsWith("/")) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/SystemHelper.java

         *
         * @param path The path to the JSP file.
         * @return The JSP file.
         */
        protected File getDesignJspFile(final String path) {
            return new File(LaServletContextUtil.getServletContext().getRealPath(path));
        }
    
        /**
         * Checks if the system is in a force-stop state.
         *
         * @return true if the system is force-stopping, false otherwise.
         */
        public boolean isForceStop() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/ViewHelper.java

         * @return true if the page exists, false otherwise
         */
        private boolean existsPage(final String path) {
            final String realPath = LaServletContextUtil.getServletContext().getRealPath(path);
            final File file = new File(realPath);
            return file.isFile();
        }
    
        /**
         * Creates cached content with highlighting for a document.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 52.4K bytes
    - Viewed (0)
Back to top