|
Secure iNet Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 |
public void connected(NntpConnectedEvent event)
event - a NntpConnectedEventNntpConnectedEventpublic void disconnected(NntpDisconnectedEvent event)
event - a NntpDisconnectedEventNntpDisconnectedEventpublic void articlePosted(NntpArticlePostedEvent event)
event - a NntpArticlePostedEventNntpArticlePostedEventpublic void articleRetrieved(NntpArticleEvent event)
event - a NntpArticleEventNntpArticleEventpublic void articleHeaderRetrieved(NntpArticleHeaderEvent event)
event - a NntpArticleHeaderEventNntpArticleHeaderEventpublic 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 | ||||||||||