/*
 * @(#)ImapResponseEvent.java
 *
 * Copyright (c) 2001-2002 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.imap;

import java.util.EventObject;


/**
 * Fired when response is received from IMAP server. Response will not contain
 * email message retrieved as result of getMessage operation in Imap class.
 *
 * @see Imap
 */
public class ImapResponseEvent
        extends EventObject {
    private String response;

    /**
     * Creates ImapResponseEvent.
     *
     * @param source   the source of the event
     * @param response the response
     */
    public ImapResponseEvent(Object source, String response) {
        super(source);
        this.response = response;
    }

    /**
     * Gets IMAP server response.
     *
     * @return response
     */
    public String getResponse() {
        return response;
    }
}
