net.i2p.sam.client
Class SAMClientEventListenerImpl

java.lang.Object
  extended by net.i2p.sam.client.SAMClientEventListenerImpl
All Implemented Interfaces:
SAMReader.SAMClientEventListener
Direct Known Subclasses:
SAMEventHandler

public class SAMClientEventListenerImpl
extends java.lang.Object
implements SAMReader.SAMClientEventListener

Basic noop client event listener


Field Summary
 
Fields inherited from interface net.i2p.sam.client.SAMReader.SAMClientEventListener
NAMING_REPLY_INVALID_KEY, NAMING_REPLY_KEY_NOT_FOUND, NAMING_REPLY_OK, SESSION_STATUS_DUPLICATE_DEST, SESSION_STATUS_I2P_ERROR, SESSION_STATUS_INVALID_KEY, SESSION_STATUS_OK, STREAM_CLOSED_CANT_REACH_PEER, STREAM_CLOSED_I2P_ERROR, STREAM_CLOSED_OK, STREAM_CLOSED_PEER_NOT_FOUND, STREAM_CLOSED_TIMEOUT, STREAM_STATUS_CANT_REACH_PEER, STREAM_STATUS_I2P_ERROR, STREAM_STATUS_INVALID_KEY, STREAM_STATUS_OK, STREAM_STATUS_TIMEOUT
 
Constructor Summary
SAMClientEventListenerImpl()
           
 
Method Summary
 void destReplyReceived(java.lang.String publicKey, java.lang.String privateKey)
           
 void helloReplyReceived(boolean ok)
           
 void namingReplyReceived(java.lang.String name, java.lang.String result, java.lang.String value, java.lang.String message)
           
 void sessionStatusReceived(java.lang.String result, java.lang.String destination, java.lang.String message)
           
 void streamClosedReceived(java.lang.String result, int id, java.lang.String message)
           
 void streamConnectedReceived(java.lang.String remoteDestination, int id)
           
 void streamDataReceived(int id, byte[] data, int offset, int length)
           
 void streamStatusReceived(java.lang.String result, int id, java.lang.String message)
           
 void unknownMessageReceived(java.lang.String major, java.lang.String minor, java.util.Properties params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMClientEventListenerImpl

public SAMClientEventListenerImpl()
Method Detail

destReplyReceived

public void destReplyReceived(java.lang.String publicKey,
                              java.lang.String privateKey)
Specified by:
destReplyReceived in interface SAMReader.SAMClientEventListener

helloReplyReceived

public void helloReplyReceived(boolean ok)
Specified by:
helloReplyReceived in interface SAMReader.SAMClientEventListener

namingReplyReceived

public void namingReplyReceived(java.lang.String name,
                                java.lang.String result,
                                java.lang.String value,
                                java.lang.String message)
Specified by:
namingReplyReceived in interface SAMReader.SAMClientEventListener

sessionStatusReceived

public void sessionStatusReceived(java.lang.String result,
                                  java.lang.String destination,
                                  java.lang.String message)
Specified by:
sessionStatusReceived in interface SAMReader.SAMClientEventListener

streamClosedReceived

public void streamClosedReceived(java.lang.String result,
                                 int id,
                                 java.lang.String message)
Specified by:
streamClosedReceived in interface SAMReader.SAMClientEventListener

streamConnectedReceived

public void streamConnectedReceived(java.lang.String remoteDestination,
                                    int id)
Specified by:
streamConnectedReceived in interface SAMReader.SAMClientEventListener

streamDataReceived

public void streamDataReceived(int id,
                               byte[] data,
                               int offset,
                               int length)
Specified by:
streamDataReceived in interface SAMReader.SAMClientEventListener

streamStatusReceived

public void streamStatusReceived(java.lang.String result,
                                 int id,
                                 java.lang.String message)
Specified by:
streamStatusReceived in interface SAMReader.SAMClientEventListener

unknownMessageReceived

public void unknownMessageReceived(java.lang.String major,
                                   java.lang.String minor,
                                   java.util.Properties params)
Specified by:
unknownMessageReceived in interface SAMReader.SAMClientEventListener