|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
verinec.importer.analysis.sniffer.StartSniffer.ConfigPanel
public static class StartSniffer.ConfigPanel
Configuration for the sniffer. Provides method to access configured settings.
| Nested Class Summary | |
|---|---|
class |
StartSniffer.ConfigPanel.ConfigCard
Base class for configuration cards. |
class |
StartSniffer.ConfigPanel.DeviceConfigCard
Configuration card for individual interface. |
class |
StartSniffer.ConfigPanel.GlobalConfigCard
Configuration card for global config. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private JPanel |
cards
|
private static String[] |
hours
|
protected Logger |
logger
A logger for debug. |
private static String[] |
min
|
static int |
NONE
Modus "no modus" |
static int |
PACKETS
Modus: Count packets |
(package private) AnalysisConfigPanel |
panel
|
private static String[] |
sec
|
static int |
SIMULATE
Modus: Simulate. |
static int |
SIMULATION_PACKET_COUNT
Number of packets to capture in simulation mode. |
protected boolean |
sufficientRights
Whether we can open interfaces in promiscious mode. |
static int |
TIME
Modus: Time limitation |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
StartSniffer.ConfigPanel(AnalysisConfigPanel parent)
Create the config panel for the sniffer part of network analysis. |
|
| Method Summary | |
|---|---|
protected void |
bringToFront(String cardname)
Select network card to configure. |
StartSniffer.ConfigPanel.DeviceConfigCard[] |
getActiveDevices()
Get the device configurations for the devices that are enabled. |
private jpcap.NetworkInterface[] |
getAvailableDevices()
This method finds out the available network interfaces |
Element |
getConfigurationXML()
Get the xml element for the sniffer configuration. |
StartSniffer.ConfigPanel.GlobalConfigCard |
getGlobals()
Get the global configuration for sniffing. |
boolean |
isConfigValid()
Check whether configuration is valid. |
void |
restore(Element e)
Restore settings using the config as returned by getConfigurationXML(). |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PACKETS
public static final int TIME
public static final int SIMULATE
public static final int NONE
public static final int SIMULATION_PACKET_COUNT
AnalysisConfigPanel panel
protected Logger logger
protected boolean sufficientRights
private JPanel cards
private static String[] min
private static String[] sec
private static String[] hours
| Constructor Detail |
|---|
public StartSniffer.ConfigPanel(AnalysisConfigPanel parent)
throws VerinecException
parent - The dialog this panel will be child of.
VerinecException - when anything goes wrong.| Method Detail |
|---|
protected void bringToFront(String cardname)
cardname - Name of the card to configure.public boolean isConfigValid()
isConfigValid in interface IConfigPanelpublic StartSniffer.ConfigPanel.GlobalConfigCard getGlobals()
public StartSniffer.ConfigPanel.DeviceConfigCard[] getActiveDevices()
public Element getConfigurationXML()
getConfigurationXML in interface IConfigPanelpublic void restore(Element e)
getConfigurationXML().
restore in interface IConfigPanele - The configuration parent.
private jpcap.NetworkInterface[] getAvailableDevices()
throws VerinecException
VerinecException - is throwed when no libpcap is found.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||