|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.bean.helpers.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 |
brokenLinkFound(Target target,
Throwable t)
|
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 |
setIsShowingReferrers(boolean isShowingReferrers)
|
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 setIsShowingReferrers(boolean isShowingReferrers)
public void pageGenerated(String sourceURI, String destinationURI, int pageSize, int linksInPage, int newLinksInPage, int pagesRemaining, int pagesComplete, long timeTaken)
BeanListener
pageGenerated
in interface BeanListener
sourceURI
- destinationURI
- pageSize
- linksInPage
- Number of links found in this pagenewLinksInPage
- pagesRemaining
- Number of pages still to be generatedpagesComplete
- timeTaken
- public 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 brokenLinkFound(Target target, Throwable t)
brokenLinkFound
in interface BeanListener
public void pageSkipped(String uri, String message)
BeanListener
pageSkipped
in interface BeanListener
uri
- message
- 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 |