|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.bean.helpers.OutputStreamListener
public class OutputStreamListener
Command line entry point. Parses command line, create Cocoon bean and invokes it with file destination.
| Constructor Summary | |
|---|---|
OutputStreamListener(OutputStream os)
|
|
| Method Summary | |
|---|---|
void |
brokenLinkFound(String uri,
String parentURI,
String message,
Throwable t)
Report a broken link |
void |
complete()
Signals completion of the generation process. |
boolean |
isSuccessful()
|
void |
messageGenerated(String msg)
Report a general message about operation of the bean |
void |
pageGenerated(String sourceURI,
String destinationURI,
int pageSize,
int linksInPage,
int newLinksInPage,
int pagesRemaining,
int pagesComplete,
long timeTaken)
Report a page as successfully generated |
void |
pageSkipped(String uri,
String message)
Report a that was skipped because its URI matched an include/exclude pattern. |
void |
setReportFile(String filename)
|
void |
setReportType(String type)
|
void |
warningGenerated(String uri,
String warning)
Report a warning about something non-fatal that happened within the bean. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputStreamListener(OutputStream os)
| Method Detail |
|---|
public void setReportFile(String filename)
public void setReportType(String type)
public void pageGenerated(String sourceURI,
String destinationURI,
int pageSize,
int linksInPage,
int newLinksInPage,
int pagesRemaining,
int pagesComplete,
long timeTaken)
BeanListener
pageGenerated in interface BeanListenerlinksInPage - Number of links found in this pagepagesRemaining - Number of pages still to be generatedpublic void messageGenerated(String msg)
BeanListener
messageGenerated in interface BeanListenermsg - The message to be reported
public void warningGenerated(String uri,
String warning)
BeanListener
warningGenerated in interface BeanListeneruri - The page being generated when warning was triggeredwarning - The warning to be reported
public void brokenLinkFound(String uri,
String parentURI,
String message,
Throwable t)
BeanListener
brokenLinkFound in interface BeanListeneruri - The URI that failed to be generatedmessage - A reason why the link was not generated
public void pageSkipped(String uri,
String message)
BeanListener
pageSkipped in interface BeanListenerpublic void complete()
BeanListener
complete in interface BeanListenerpublic boolean isSuccessful()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||