|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.importer.parser.iptables.ImportIptables
public class ImportIptables
Imports the configuration data of iptables
| Nested Class Summary | |
|---|---|
class |
ImportIptables.IptablesConfig
Dialog to choose whether iptables import is on or not and how information is retreived. |
| Field Summary | |
|---|---|
private ImportIptables.IptablesConfig |
configPanel
Configuration for ethernet import. |
private String |
iptablesOutput
The output of iptables, in case we need it later. |
private Logger |
log
Debugging. |
private Element |
packet_filters
The <packet-filters> element |
| Constructor Summary | |
|---|---|
ImportIptables()
|
|
| Method Summary | |
|---|---|
JPanel |
getConfigPanel()
Get config panel |
String |
getRawConfiguration()
Get the raw configuration, that is the configuratio ninformation of the implementation of service. |
private String |
localImport(ImporterEnvironment environment)
|
void |
notifyMode(ImporterDialog.SettingsPanelBase mode)
Change mode |
private void |
parseIptablesOutput(ImporterEnvironment config,
String outputString)
Create the packt-filters elements based on iptables output |
private String |
remoteImport(ImporterEnvironment environment)
|
void |
runImport(ImporterEnvironment environment)
Perform import if activated. |
void |
updateNode(PCNode node)
Update the PCNode with new information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Logger log
private Element packet_filters
private String iptablesOutput
private ImportIptables.IptablesConfig configPanel
| Constructor Detail |
|---|
public ImportIptables()
| Method Detail |
|---|
public void runImport(ImporterEnvironment environment)
throws VerinecImporterException
runImport in interface IServiceParserenvironment - The env for logging
VerinecImporterExceptionpublic String getRawConfiguration()
IServiceParser
getRawConfiguration in interface IServiceParser
private String remoteImport(ImporterEnvironment environment)
throws VerinecImporterException
VerinecImporterException
private String localImport(ImporterEnvironment environment)
throws VerinecImporterException
environment -
VerinecImporterException
private void parseIptablesOutput(ImporterEnvironment config,
String outputString)
throws VerinecImporterException
config - The configuration to log tooutputString - Output of iptables command.
VerinecImporterExceptionpublic void updateNode(PCNode node)
updateNode in interface IServiceParsernode - The node object to updatepublic void notifyMode(ImporterDialog.SettingsPanelBase mode)
notifyMode in interface IServiceParsermode - One of remote, local or testpublic JPanel getConfigPanel()
getConfigPanel in interface IServiceParser
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||