01: /*
02: * GNetWatch
03: * Copyright 2006, 2007 Alexandre Fenyo
04: * gnetwatch@fenyo.net
05: *
06: * This file is part of GNetWatch.
07: *
08: * GNetWatch is free software; you can redistribute it and/or modify
09: * it under the terms of the GNU General Public License as published by
10: * the Free Software Foundation; either version 2 of the License, or
11: * (at your option) any later version.
12: *
13: * GNetWatch is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: * GNU General Public License for more details.
17: *
18: * You should have received a copy of the GNU General Public License
19: * along with GNetWatch; if not, write to the Free Software
20: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21: */
22:
23: package net.fenyo.gnetwatch.data;
24:
25: import net.fenyo.gnetwatch.*;
26: import net.fenyo.gnetwatch.targets.*;
27:
28: import java.util.*;
29:
30: import org.apache.commons.logging.Log;
31: import org.apache.commons.logging.LogFactory;
32:
33: /**
34: * This event stores the output of nmap.
35: * @author Alexandre Fenyo
36: * @version $Id: EventNmap.java,v 1.1 2007/03/09 22:44:20 fenyo Exp $
37: */
38:
39: public class EventNmap extends EventGeneric {
40: private static Log log = LogFactory.getLog(EventNmap.class);
41:
42: private final String output;
43:
44: /**
45: * Constructor.
46: * @param output output of Nmap process.
47: */
48: // Queue thread
49: public EventNmap(final String output) {
50: this .output = output;
51: }
52:
53: /**
54: * Returns the stored output.
55: * @param none.
56: * @return String stored output.
57: */
58: // Queue & AWT thread
59: public String getOutput() {
60: return output;
61: }
62: }
|