|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 BeanListener
linksInPage
- Number of links found in this pagepagesRemaining
- Number of pages still to be generatedpublic void messageGenerated(String msg)
BeanListener
messageGenerated
in interface BeanListener
msg
- The message to be reportedpublic void warningGenerated(String uri, String warning)
BeanListener
warningGenerated
in interface BeanListener
uri
- The page being generated when warning was triggeredwarning
- The warning to be reportedpublic void brokenLinkFound(String uri, String parentURI, String message, Throwable t)
BeanListener
brokenLinkFound
in interface BeanListener
uri
- The URI that failed to be generatedmessage
- A reason why the link was not generatedpublic void pageSkipped(String uri, String message)
BeanListener
pageSkipped
in interface BeanListener
public void complete()
BeanListener
complete
in interface BeanListener
public boolean isSuccessful()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |