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

import java.util.EventObject;


/**
 * Fired by Telnet instance when a DONT OPTION command is received from the Telnet server.
 *
 * @see TelnetOption
 */
public class DontOptionEvent
        extends EventObject {
    private TelnetOption option = null;

    /**
     * Constructs a new <code>DontOptionEvent</code> instance.
     *
     * @param source the source of this event
     * @param option the <code>TelnetOption</code> sent by Telnet server.
     *
     * @see TelnetOption
     */
    public DontOptionEvent(Object source, TelnetOption option) {
        super(source);
        this.option = option;
    }

    /**
     * Gets the <code>TelnetOption</code> sent by Telnet server.
     *
     * @return a <code>TelnetOption</code>
     *
     * @see TelnetOption
     */
    public TelnetOption getOption() {
        return option;
    }
}
