/*
 * @(#)NntpArticleHeaderEvent.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.nntp;

import java.util.EventObject;


/**
 * Fired when header of article is retrieved from NNTP server.
 */
public class NntpArticleHeaderEvent
        extends EventObject {
    private NntpArticleHeader header;

    /**
     * Creates NntpArticleHeaderEvent.
     *
     * @param source the source of the event
     * @param header the <code>NntpArticleHeader</code> of the article
     *
     * @see NntpArticleHeader
     */
    public NntpArticleHeaderEvent(Object source, NntpArticleHeader header) {
        super(source);
        this.header = header;
    }

    /**
     * Gets header of article.
     *
     * @return the <code>NntpArticleHeader</code> of the article
     *
     * @see NntpArticleHeader
     */
    public NntpArticleHeader getHeader() {
        return header;
    }
}
