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

import java.util.EventObject;


/**
 * Fired when connection to HTTP server is established.<br>
 */
public class HttpConnectedEvent
        extends EventObject {
    private String url;

    /**
     * Constructs a new <code>HttpConnectedEvent</code>.
     *
     * @param source the source of this event
     * @param surl   the String representation of the <code>URL</code> associated
     *               with this event
     */
    public HttpConnectedEvent(Object source, String surl) {
        super(source);
        this.url = surl;
    }

    /**
     * Gets the String representation of the URL this event is associated with.
     *
     * @return a String representation of the <code>URL</code>
     */
    public String getURL() {
        return url;
    }
}
