java.lang.Object
com.semanticcms.file.servlet.FileUtils
Static utilities for working with
File.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasFile(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page, boolean recursive) static booleanisOpenFileAllowed(ServletContext servletContext, ServletRequest request) Determines if local file opening is allowed.
-
Method Details
-
isOpenFileAllowed
public static boolean isOpenFileAllowed(ServletContext servletContext, ServletRequest request) throws ServletException Determines if local file opening is allowed.Uses reflection to avoid hard dependency on semanticcms-openfile-servlet.
- Throws:
ServletException- See Also:
-
hasFile
public static boolean hasFile(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page, boolean recursive) throws ServletException, IOException - Throws:
ServletExceptionIOException
-
