Package org.opencms.ui.apps.logfile
Class CmsDefaultLogDownloadProvider
java.lang.Object
org.opencms.ui.apps.logfile.CmsDefaultLogDownloadProvider
- All Implemented Interfaces:
I_CmsLogDownloadProvider
Default implementation for the log download functionality.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the user can download a zip with all logs.Gets the prefix to use for the download file name.Gets the set of log file paths.Gets the input stream for the download with all logs (only works if canDownloadAllLogs() returned true)Gets the input stream for the download of a single log file
-
Constructor Details
-
CmsDefaultLogDownloadProvider
public CmsDefaultLogDownloadProvider()
-
-
Method Details
-
canDownloadAllLogs
Description copied from interface:I_CmsLogDownloadProvider
Checks if the user can download a zip with all logs.- Specified by:
canDownloadAllLogs
in interfaceI_CmsLogDownloadProvider
- Returns:
- true if the user can download a zip with all logs
- See Also:
-
getDownloadPrefix
Description copied from interface:I_CmsLogDownloadProvider
Gets the prefix to use for the download file name.- Specified by:
getDownloadPrefix
in interfaceI_CmsLogDownloadProvider
- Returns:
- the prefix for the download
- See Also:
-
getLogFiles
Description copied from interface:I_CmsLogDownloadProvider
Gets the set of log file paths.- Specified by:
getLogFiles
in interfaceI_CmsLogDownloadProvider
- Returns:
- the set of log file paths
- See Also:
-
readAllLogs
Description copied from interface:I_CmsLogDownloadProvider
Gets the input stream for the download with all logs (only works if canDownloadAllLogs() returned true)- Specified by:
readAllLogs
in interfaceI_CmsLogDownloadProvider
- Returns:
- the input stream for the collected logs zip file
- See Also:
-
readLog
Description copied from interface:I_CmsLogDownloadProvider
Gets the input stream for the download of a single log file- Specified by:
readLog
in interfaceI_CmsLogDownloadProvider
- Parameters:
path
- the full path of the log file (must be a value in the set returned by getLogFiles())- Returns:
- the input stream for the download
- See Also:
-