|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.otfeed.support.SimpleConnectionStateListener
public class SimpleConnectionStateListener
Implementation of IConnectionStateListener
that prints events to the PrintWriter
.
Default destination for printing is standard error
output stream.
Constructor Summary | |
---|---|
SimpleConnectionStateListener()
|
Method Summary | |
---|---|
java.io.PrintWriter |
getPrintWriter()
Determines the print destination. |
void |
onConnected()
Is called when connection enters "Connected" state. |
void |
onConnecting(OTHost arg0)
Is called when connection enters "Connecting" state. |
void |
onError(OTError arg0)
Is called when connection terminates. |
void |
onLogin()
Is called when connection enters "Login" state. |
void |
onRedirect(OTHost arg0)
Is called when connection enters "Redirect" state. |
void |
setPrintWriter(java.io.PrintWriter val)
Sets the destination. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleConnectionStateListener()
Method Detail |
---|
public java.io.PrintWriter getPrintWriter()
public void setPrintWriter(java.io.PrintWriter val)
val
- destination.public void onConnected()
IConnectionStateListener
onConnected
in interface IConnectionStateListener
public void onConnecting(OTHost arg0)
IConnectionStateListener
onConnecting
in interface IConnectionStateListener
arg0
- server address.public void onError(OTError arg0)
IConnectionStateListener
onError
in interface IConnectionStateListener
public void onLogin()
IConnectionStateListener
onLogin
in interface IConnectionStateListener
public void onRedirect(OTHost arg0)
IConnectionStateListener
onRedirect
in interface IConnectionStateListener
arg0
- redirect address.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |