Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getServletContext (0.13 sec)

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

        protected void write(final String path, final byte[] data) {
            LdiFileUtil.write(path, data);
        }
    
        protected ServletContext getServletContext() {
            return LaServletContextUtil.getServletContext();
        }
    
        // ===================================================================================
        //                                                                            Document
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.2K 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  3. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/ResourceUtil.java

            }
            return Paths.get(webinfBase, names);
        }
    
        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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 08:52:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/filter/EncodingFilter.java

        protected ServletContext servletContext;
    
        protected URLCodec urlCodec = new URLCodec();
    
        @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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticator.java

            @Override
            public String getFilterName() {
                return SpnegoAuthenticator.class.getName();
            }
    
            @Override
            public ServletContext getServletContext() {
                throw new UnsupportedOperationException();
            }
    
            @Override
            public String getInitParameter(final String name) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  8. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Oct 23 13:27:21 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/SystemHelper.java

                            }
                        });
                    }));
            return fileList;
        }
    
        protected File getDesignJspFile(final String path) {
            return new File(LaServletContextUtil.getServletContext().getRealPath(path));
        }
    
        public boolean isForceStop() {
            return forceStop.get();
        }
    
        public void setForceStop(final boolean b) {
            forceStop.set(b);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/ViewHelper.java

                }
            }
            buf.append(".jsp");
            return buf.toString();
        }
    
        private boolean existsPage(final String path) {
            final String realPath = LaServletContextUtil.getServletContext().getRealPath(path);
            final File file = new File(realPath);
            return file.isFile();
        }
    
        public String createCacheContent(final Map<String, Object> doc, final String[] queries) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 40.2K bytes
    - Viewed (0)
Back to top