All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.ejalbert.browserevents.BrowserEvent Maven / Gradle / Ivy

Go to download

BrowserLauncher2, a continuation of the BrowserLauncher project, is a library that facilitates opening a browser from a Java application and directing the browser to a supplied url. In most cases the browser opened will be the user's default browser.

The newest version!
/************************************************
    Copyright 2008 Jeff Chapman

    This file is part of BrowserLauncher2.

    BrowserLauncher2 is free software; you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    BrowserLauncher2 is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with BrowserLauncher2; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

 ************************************************/
// $Id: BrowserEvent.java,v 1.1 2008/11/12 21:13:02 jchapman0 Exp $
package edu.stanford.ejalbert.browserevents;

import edu.stanford.ejalbert.launching.IBrowserEvent;

/**
 *
 * @author Jeff Chapman
 * @version 1.0
 */
public class BrowserEvent
        implements IBrowserEvent {
    private final int eventId; // in ctor
    private final String userName; // in ctor
    private final String browserName; // in ctor
    private final String urlLaunched; // in ctor
    private final Process process; // in ctor
    private final int attemptId; // in ctor

    public BrowserEvent(int id,
                        int attemptId,
                        Process proc,
                        String userName,
                        String browserName,
                        String urlLaunched) {
        this.eventId = id;
        this.userName = userName;
        this.browserName = browserName;
        this.urlLaunched = urlLaunched;
        this.process = proc;
        this.attemptId = attemptId;
    }

    public int getAttemptId() {
        return attemptId;
    }

    public Process getProcess() {
        return process;
    }

    public int getEventId() {
        return eventId;
    }

    public String getUserName() {
        return userName;
    }

    public String getBrowserName() {
        return browserName;
    }

    public String getURLLaunched() {
        return urlLaunched;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy