[TOC]

org.apache.nutch.protocol.ftp

Class PrintCommandListener

    • All Implemented Interfaces:
    • EventListener, org.apache.commons.net.ProtocolCommandListener

public class PrintCommandListener
extends Object
implements org.apache.commons.net.ProtocolCommandListener

This is a support class for logging all ftp command/reply traffic.

  • Author:
  • John Xing

Constructor Summary

Constructors Constructor and Description PrintCommandListener(org.slf4j.Logger logger)

Method Summary

Methods Modifier and Type Method and Description void protocolCommandSent(org.apache.commons.net.ProtocolCommandEvent event) void protocolReplyReceived(org.apache.commons.net.ProtocolCommandEvent event)

-    

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

-  

PrintCommandListener

public PrintCommandListener(org.slf4j.Logger logger)

Method Detail

-  

protocolCommandSent

public void protocolCommandSent(org.apache.commons.net.ProtocolCommandEvent event)
  - Specified by: 
  - <code>protocolCommandSent</code> in interface <code>org.apache.commons.net.ProtocolCommandListener</code>        
-  

protocolReplyReceived

public void protocolReplyReceived(org.apache.commons.net.ProtocolCommandEvent event)
  - Specified by: 
  - <code>protocolReplyReceived</code> in interface <code>org.apache.commons.net.ProtocolCommandListener</code>       

Copyright © 2014 The Apache Software Foundation