Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for getRealPath (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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())) {
                expectedBaseDir = new File(baseDir, "css");
                uploadFile = new File(getServletContext().getRealPath("/css/" + fileName));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 23 23:57:26 GMT 2026
    - 20.1K bytes
    - Click Count (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
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  3. 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();
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 19K bytes
    - Click Count (0)
  4. 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("/")) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 31.6K bytes
    - Click Count (0)
  5. 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() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 43.2K bytes
    - Click Count (0)
Back to Top