|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NntpListener
Implements methods for capturing events sourced from Nntp bean. Typicaly
your application will implement this interface to capture following events
:
NntpConnectedEvent
NntpDisconnectedEvent
NntpArticlePostedEvent
NntpArticleEvent
NntpArticleHeaderEvent
NntpProgressEvent
In addition to implementing this interface your application should register
itself as a EventListener which may look somewhat like this:
... public class Application ... implements NntpListener{ ... String host; int port; ... public ... initMethod(...){ ... Nntp nntp = new Nntp(host,port); nntp.addNntpListener(this); ... } ... }
Method Summary | |
---|---|
void |
articleHeaderRetrieved(NntpArticleHeaderEvent event)
Invoked when an article header is retrieved from NNTP server. |
void |
articlePosted(NntpArticlePostedEvent event)
Invoked when an article is posted to NNTP server. |
void |
articleRetrieved(NntpArticleEvent event)
Invoked when an article is retrieved from NNTP server. |
void |
connected(NntpConnectedEvent event)
Invoked when connection to NNTP server is established. |
void |
disconnected(NntpDisconnectedEvent event)
Invoked when connection to NNTP server is released. |
void |
progress(NntpProgressEvent event)
Invoked when performing lengthy Nntp operations. |
Method Detail |
---|
void connected(NntpConnectedEvent event)
event
- a NntpConnectedEvent
NntpConnectedEvent
void disconnected(NntpDisconnectedEvent event)
event
- a NntpDisconnectedEvent
NntpDisconnectedEvent
void articlePosted(NntpArticlePostedEvent event)
event
- a NntpArticlePostedEvent
NntpArticlePostedEvent
void articleRetrieved(NntpArticleEvent event)
event
- a NntpArticleEvent
NntpArticleEvent
void articleHeaderRetrieved(NntpArticleHeaderEvent event)
event
- a NntpArticleHeaderEvent
NntpArticleHeaderEvent
void progress(NntpProgressEvent event)
event
- a NntpProgressEvent
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |