Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getServletContext (0.52 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: 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/fess/app/web/base/FessAdminAction.java

            }
        }
    
        /**
         * Gets the servlet context.
         *
         * @return the servlet context
         */
        protected ServletContext getServletContext() {
            return LaServletContextUtil.getServletContext();
        }
    
        /**
         * Verifies that the CRUD mode matches the expected mode.
         *
         * @param crudMode the actual CRUD mode
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 27 07:01:25 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/http/NetworkExplorerTest.java

            lenient().when(response.getOutputStream()).thenReturn(servletOutputStream);
    
            // Setup servlet config
            lenient().when(servletConfig.getServletContext()).thenReturn(servletContext);
            lenient().when(servletConfig.getInitParameterNames()).thenReturn(Collections.emptyEnumeration());
    
            // Setup request session
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/OsddHelper.java

                return null;
            }
            if (StringUtil.isBlank(osddPath)) {
                logger.info("OSDD file is not found.");
                return null;
            }
            final String path = LaServletContextUtil.getServletContext().getRealPath(osddPath);
            if (path == null) {
                logger.warn("OSDD file path could not be resolved: {}", osddPath);
                return null;
            }
            final File osddFile = new File(path);
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticator.java

             * @throws UnsupportedOperationException Always thrown as this operation is not supported
             */
            @Override
            public ServletContext getServletContext() {
                throw new UnsupportedOperationException("getServletContext() is not supported in SpnegoFilterConfig");
            }
    
            /**
             * Gets the initialization parameter value for the given parameter name.
             *
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 17.8K bytes
    - Viewed (3)
  6. src/main/java/org/codelibs/fess/filter/EncodingFilter.java

         * @throws ServletException if an error occurs during initialization
         */
        @Override
        public void init(final FilterConfig config) throws ServletException {
            servletContext = config.getServletContext();
    
            encoding = config.getInitParameter(LastaPrepareFilter.ENCODING_KEY);
            if (encoding == null) {
                encoding = LastaPrepareFilter.DEFAULT_ENCODING;
            }
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. 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();
                            }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 25.4K bytes
    - Viewed (1)
  8. src/main/java/org/codelibs/fess/util/ResourceUtil.java

         */
        public static File[] getJarFiles(final String namePrefix) {
            final ServletContext context = LaServletContextUtil.getServletContext();
            if (context == null) {
                return new File[0];
            }
            final String libPath = context.getRealPath("/WEB-INF/lib");
            if (StringUtil.isBlank(libPath)) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  9. 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.
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 08:30:43 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/ViewHelper.java

         * @param path the page path to check
         * @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: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 52.6K bytes
    - Viewed (0)
Back to top