Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for getServletContext (0.08 sec)

  1. src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java

            LdiFileUtil.write(path, data);
        }
    
        /**
         * Gets the servlet context.
         *
         * @return the servlet context
         */
        protected ServletContext getServletContext() {
            return LaServletContextUtil.getServletContext();
        }
    
        // ===================================================================================
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. 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)
  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: Sun Sep 07 00:10:21 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("{} was not found.", path);
                return null;
            }
            final File osddFile = new File(path);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/filter/WebApiFilterTest.java

                @Override
                public String getFilterName() {
                    return "testFilter";
                }
    
                @Override
                public jakarta.servlet.ServletContext getServletContext() {
                    return null;
                }
    
                @Override
                public String getInitParameter(String name) {
                    return null;
                }
    
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 26.2K bytes
    - Viewed (0)
  6. 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.3K bytes
    - Viewed (1)
  7. 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/api/WebApiRequestTest.java

                return null;
            }
    
            @Override
            public int getLocalPort() {
                return 0;
            }
    
            @Override
            public ServletContext getServletContext() {
                return null;
            }
    
            @Override
            public AsyncContext startAsync() throws IllegalStateException {
                return null;
            }
    
            @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

        protected File createRepositoryFile() {
            return new File(getRepositoryPath());
        }
    
        protected String getRepositoryPath() {
            final ServletContext servletContext = LaServletContextUtil.getServletContext();
            if (servletContext.getAttribute(CONTEXT_TEMPDIR_KEY) instanceof final File tempDirFile) {
                final String tempDir = tempDirFile.getAbsolutePath();
                if (tempDir != null && tempDir.length() > 0) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  10. 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.1K bytes
    - Viewed (0)
Back to top