|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.netsim.firewall.packetFilter.InterfaceFilterMappings
public class InterfaceFilterMappings
Maps interfaces to the packet-filter
| Field Summary | |
|---|---|
private Logger |
logger
|
private Vector |
mappings
|
| Constructor Summary | |
|---|---|
InterfaceFilterMappings(Element node)
Creates a new Interface Filter Mappings. |
|
| Method Summary | |
|---|---|
private boolean |
doubleEntry(IfMap map)
Checks wether the specified map has the same direction and interface as another one. |
Vector |
getMappings()
Return the interface filter mappings (if-map) |
private void |
initIfMaps(Element node)
Initializes the If-Maps and checks wether two identical entries were defined. |
String |
matchChain(String interf,
String direction)
Matches interface and direction to the corresponding chain. |
void |
setMappings(Vector mappings)
Sets new interface filter mappings (if-map) |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Vector mappings
private Logger logger
| Constructor Detail |
|---|
public InterfaceFilterMappings(Element node)
node - Element which specifies the IfMaps configuration.| Method Detail |
|---|
private void initIfMaps(Element node)
throws InterfaceFilterMappingsException
node -
InterfaceFilterMappingsExceptionprivate boolean doubleEntry(IfMap map)
map - The map entry to check.
public String matchChain(String interf,
String direction)
interf - The interface to match.direction - The direction to match.
public Vector getMappings()
public void setMappings(Vector mappings)
mappings - The mappings to set.public String toString()
toString in class ObjectObject.toString()
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||