Package org.opencms.report
Class CmsMultiplexReport
java.lang.Object
org.opencms.report.A_CmsReport
org.opencms.report.CmsMultiplexReport
- All Implemented Interfaces:
I_CmsReport
Report proxy that multiplexes to all contained
I_CmsReport instances.- Since:
- 7.5.1
-
Field Summary
Fields inherited from interface org.opencms.report.I_CmsReport
FORMAT_DEFAULT, FORMAT_ERROR, FORMAT_HEADLINE, FORMAT_NOTE, FORMAT_OK, FORMAT_WARNING, REPORT_TYPE_EXTENDED, REPORT_TYPE_SIMPLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReport(A_CmsReport report) Adds the given report to become a proxy delegate of this multiplexer.longReturns the time of last report entry.Returns the locale this report was initialized with.This searches for the first instance of a link in the internal delegate list and returns the value of it's invocation.protected voidPrints a String to the report, using the indicated formatting.voidprint(CmsMessageContainer container) Prints a localized message to the report.voidprint(CmsMessageContainer container, int format) Prints a localized message to the report, using the indicated formatting.voidprintln()Adds a line break to the report.voidAdds an Exception to the report, ensuring that the Exception content is processed to generate a valid output esp.voidprintln(CmsMessageContainer container) Prints a localized message to the report.voidprintln(CmsMessageContainer container, int format) Prints a localized message to the report, using the indicated formatting.voidprintMessageWithParam(int m, int n, CmsMessageContainer container, Object param) Convenience method to print a localized message, followed by a parameter and dots to the report.voidprintMessageWithParam(CmsMessageContainer container, Object param) Prints a localized message followed by a parametera and dots to the report.voidResets the runtime to 0 milliseconds.Methods inherited from class org.opencms.report.A_CmsReport
addError, addWarning, formatRuntime, getErrors, getMessages, getReportUpdate, getRuntime, getSiteRoot, getWarnings, hasError, hasWarning, init, print, println, println, removeSiteRoot, setLastEntryTime
-
Constructor Details
-
CmsMultiplexReport
public CmsMultiplexReport()Default constructor.
-
-
Method Details
-
addReport
Adds the given report to become a proxy delegate of this multiplexer.- Parameters:
report- the report to be on the recipient list.
-
getLastEntryTime
Description copied from interface:I_CmsReportReturns the time of last report entry.Will return zero if no entry has been written.
- Specified by:
getLastEntryTimein interfaceI_CmsReport- Overrides:
getLastEntryTimein classA_CmsReport- Returns:
- time of last report entry
- See Also:
-
getLocale
Description copied from interface:I_CmsReportReturns the locale this report was initialized with.- Specified by:
getLocalein interfaceI_CmsReport- Overrides:
getLocalein classA_CmsReport- Returns:
- the locale this report was initialized with
- See Also:
-
getReportUpdate
This searches for the first instance of a link in the internal delegate list and returns the value of it's invocation.If no such report is found an empty String will be returned.
- Returns:
- new elements that have been added to the report and not yet processed.
- See Also:
-
print
Description copied from interface:I_CmsReportPrints a localized message to the report.- Specified by:
printin interfaceI_CmsReport- Overrides:
printin classA_CmsReport- Parameters:
container- the String to add- See Also:
-
print
Description copied from interface:I_CmsReportPrints a localized message to the report, using the indicated formatting.Use the contants starting with
FORMATfrom this interface to indicate which formatting to use.- Specified by:
printin interfaceI_CmsReport- Overrides:
printin classA_CmsReport- Parameters:
container- the String to addformat- the formatting to use for the output- See Also:
-
println
Description copied from interface:I_CmsReportAdds a line break to the report.- See Also:
-
println
Description copied from interface:I_CmsReportPrints a localized message to the report.- Specified by:
printlnin interfaceI_CmsReport- Overrides:
printlnin classA_CmsReport- Parameters:
container- the message container to add- See Also:
-
println
Description copied from interface:I_CmsReportPrints a localized message to the report, using the indicated formatting.Use the contants starting with
FORMATfrom this interface to indicate which formatting to use.- Specified by:
printlnin interfaceI_CmsReport- Overrides:
printlnin classA_CmsReport- Parameters:
container- the message container to addformat- the formatting to use for the output- See Also:
-
println
Description copied from interface:I_CmsReportAdds an Exception to the report, ensuring that the Exception content is processed to generate a valid output esp. for HTML pages.The exception will be stored and the output will later be processed in a special way.
- Parameters:
t- the exception to add- See Also:
-
printMessageWithParam
Description copied from interface:I_CmsReportPrints a localized message followed by a parametera and dots to the report.- Specified by:
printMessageWithParamin interfaceI_CmsReport- Overrides:
printMessageWithParamin classA_CmsReport- Parameters:
container- the Message to addparam- the Parameter to add- See Also:
-
printMessageWithParam
Description copied from interface:I_CmsReportConvenience method to print a localized message, followed by a parameter and dots to the report.The output follows the pattern: ( 3 / 8 ) Deleting filename.txt ...
- Specified by:
printMessageWithParamin interfaceI_CmsReport- Overrides:
printMessageWithParamin classA_CmsReport- Parameters:
m- the number of the report outputn- the total number of report outputscontainer- the Message to addparam- the Parameter to add- See Also:
-
resetRuntime
Description copied from interface:I_CmsReportResets the runtime to 0 milliseconds.- Specified by:
resetRuntimein interfaceI_CmsReport- Overrides:
resetRuntimein classA_CmsReport- See Also:
-
print
Description copied from class:A_CmsReportPrints a String to the report, using the indicated formatting.Use the constants starting with
FORMATfrom this interface to indicate which formatting to use.- Specified by:
printin classA_CmsReport- Parameters:
value- the message container to addformat- the formatting to use for the output- See Also:
-