public class CmsMultiplexReport extends A_CmsReport
I_CmsReport
instances.FORMAT_DEFAULT, FORMAT_ERROR, FORMAT_HEADLINE, FORMAT_NOTE, FORMAT_OK, FORMAT_WARNING, REPORT_TYPE_EXTENDED, REPORT_TYPE_SIMPLE
构造器和说明 |
---|
CmsMultiplexReport()
Default constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addReport(A_CmsReport report)
Adds the given report to become a proxy delegate of this multiplexer.
|
long |
getLastEntryTime()
Returns the time of last report entry.
|
java.lang.String |
getReportUpdate()
This searches for the first instance of a link in the internal delegate list and
returns the value of it's invocation.
|
void |
print(CmsMessageContainer container)
Prints a localized message to the report.
|
void |
print(CmsMessageContainer container,
int format)
Prints a localized message to the report, using the indicated formatting.
|
protected void |
print(java.lang.String value,
int format)
Prints a String to the report, using the indicated formatting.
|
void |
println()
Adds a line break to the report.
|
void |
println(CmsMessageContainer container)
Prints a localized message to the report.
|
void |
println(CmsMessageContainer container,
int format)
Prints a localized message to the report, using the indicated formatting.
|
void |
println(java.lang.Throwable t)
Adds an Exception to the report, ensuring that the Exception content is
processed to generate a valid output esp. for HTML pages.
|
void |
printMessageWithParam(CmsMessageContainer container,
java.lang.Object param)
Prints a localized message followed by a parametera and dots to the report.
|
void |
printMessageWithParam(int m,
int n,
CmsMessageContainer container,
java.lang.Object param)
Convenience method to print a localized message, followed by a parameter and dots to the report.
|
void |
resetRuntime()
Resets the runtime to 0 milliseconds.
|
addError, addWarning, formatRuntime, getErrors, getLocale, getMessages, getRuntime, getSiteRoot, getWarnings, hasError, hasWarning, init, print, println, println, removeSiteRoot, setLastEntryTime
public void addReport(A_CmsReport report)
report
- the report to be on the recipient list.public long getLastEntryTime()
I_CmsReport
Will return zero if no entry has been written.
getLastEntryTime
在接口中 I_CmsReport
getLastEntryTime
在类中 A_CmsReport
A_CmsReport.getLastEntryTime()
public java.lang.String getReportUpdate()
If no such report is found an empty String will be returned.
I_CmsReport.getReportUpdate()
public void print(CmsMessageContainer container)
I_CmsReport
print
在接口中 I_CmsReport
print
在类中 A_CmsReport
container
- the String to addI_CmsReport.print(CmsMessageContainer)
public void print(CmsMessageContainer container, int format)
I_CmsReport
Use the contants starting with FORMAT
from this interface
to indicate which formatting to use.
print
在接口中 I_CmsReport
print
在类中 A_CmsReport
container
- the String to addformat
- the formatting to use for the outputI_CmsReport.print(CmsMessageContainer, int)
public void println()
I_CmsReport
public void println(CmsMessageContainer container)
I_CmsReport
println
在接口中 I_CmsReport
println
在类中 A_CmsReport
container
- the message container to addI_CmsReport.println(CmsMessageContainer)
public void println(CmsMessageContainer container, int format)
I_CmsReport
Use the contants starting with FORMAT
from this interface
to indicate which formatting to use.
println
在接口中 I_CmsReport
println
在类中 A_CmsReport
container
- the message container to addformat
- the formatting to use for the outputI_CmsReport.println(CmsMessageContainer, int)
public void println(java.lang.Throwable t)
I_CmsReport
The exception will be stored and the output will later be processed in a special way.
t
- the exception to addI_CmsReport.println(Throwable)
public void printMessageWithParam(CmsMessageContainer container, java.lang.Object param)
I_CmsReport
printMessageWithParam
在接口中 I_CmsReport
printMessageWithParam
在类中 A_CmsReport
container
- the Message to addparam
- the Parameter to addI_CmsReport.printMessageWithParam(CmsMessageContainer, Object)
public void printMessageWithParam(int m, int n, CmsMessageContainer container, java.lang.Object param)
I_CmsReport
The output follows the pattern: ( 3 / 8 ) Deleting filename.txt ...
printMessageWithParam
在接口中 I_CmsReport
printMessageWithParam
在类中 A_CmsReport
m
- the number of the report outputn
- the total number of report outputscontainer
- the Message to addparam
- the Parameter to addI_CmsReport.printMessageWithParam(int, int, CmsMessageContainer, Object)
public void resetRuntime()
I_CmsReport
resetRuntime
在接口中 I_CmsReport
resetRuntime
在类中 A_CmsReport
I_CmsReport.resetRuntime()
protected void print(java.lang.String value, int format)
A_CmsReport
Use the constants starting with FORMAT
from this interface
to indicate which formatting to use.
print
在类中 A_CmsReport
value
- the message container to addformat
- the formatting to use for the outputA_CmsReport.print(java.lang.String, int)