Example usage for org.apache.commons.net ProtocolCommandEvent isReply

List of usage examples for org.apache.commons.net ProtocolCommandEvent isReply

Introduction

In this page you can find the example usage for org.apache.commons.net ProtocolCommandEvent isReply.

Prototype

public boolean isReply() 

Source Link

Document

Returns true if the ProtocolCommandEvent was generated as a result of receiving a reply.

Usage

From source file:com.isencia.passerelle.actor.ftp.PrintCommandListener.java

public void protocolReplyReceived(ProtocolCommandEvent event) {
    if (event.isReply() && event.getMessage().startsWith("550")) {
        __writer.print(event.getMessage());
        __writer.flush();/*from w  w  w. ja  va  2  s  .  c  o  m*/
    }
}