/*
 * @(#)FxpStartEvent.java
 *
 * Copyright (c) 2005 JScape
 * 1147 S. 53rd Pl., Mesa, Arizona, 85206, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * JScape. ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with JScape.
 */
package com.jscape.inet.ftp;

import java.util.EventObject;

/**
 * Fired for each file that begins transfer in an FXP transfer.
 */
public class FxpStartEvent
        extends EventObject {

    // the source
    private Object src;

    // the destination
    private Object destination;

    // the filename
    private String filename;

    /**
     * Creates a new FxpStartEvent instance
     *
     * @param src         the source Ftp or Ftps instance
     * @param destination the destination Ftp or Ftps instance
     * @param filename    the filename being transferred
     */
    public FxpStartEvent(Object src, Object destination, String filename) {
        super(src);
        this.src = src;
        this.destination = destination;
        this.filename = filename;
    }

    /**
     * Gets source Ftp or Ftps instance
     *
     * @return a Ftp or Ftps instance
     *
     * @see com.jscape.inet.ftp.Ftp
     * @see com.jscape.inet.ftps.Ftps
     */
    public Object getSource() {
        return src;
    }

    /**
     * Gets destination Ftp or Ftps instance
     *
     * @return a Ftp or Ftps instance
     *
     * @see com.jscape.inet.ftp.Ftp
     * @see com.jscape.inet.ftps.Ftps
     */
    public Object getDestination() {
        return destination;
    }

    /**
     * Gets filename of file being transfered
     *
     * @return filename
     */
    public String getFilename() {
        return filename;
    }

}
