verinec.netsim.firewall.packetFilter
Class IfMap

java.lang.Object
  extended by verinec.netsim.firewall.packetFilter.IfMap

public class IfMap
extends Object

Maps interfaces to interface-filter-mappings

Version:
$Revision: 825 $
Author:
jason.hug@unifr.ch

Field Summary
private  String chain
          References to a chain (packet-filter-chain) defined in packet-filters TODO get the reference
private  String direction
           
private  String interf
          References to a interface defined in the node.xml TODO get the reference
private  Logger logger
           
 
Constructor Summary
protected IfMap(Element node)
          Creates a new IfMap (Interface Mapping).
 
Method Summary
 String getChain()
          Get the chain reference
 String getDirection()
          Get the direction
 String getInterf()
          Retrieves the interface
 void setChain(String chain)
          Set the chain reference
 void setDirection(String direction)
          Sets the direction.
 void setInterf(String interf)
          Sets a new interface
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

interf

private String interf
References to a interface defined in the node.xml TODO get the reference


chain

private String chain
References to a chain (packet-filter-chain) defined in packet-filters TODO get the reference


direction

private String direction

logger

private Logger logger
Constructor Detail

IfMap

protected IfMap(Element node)
Creates a new IfMap (Interface Mapping).

Parameters:
node - Element which specifies the configuration for the Interface Mapping.
Method Detail

getChain

public String getChain()
Get the chain reference

Returns:
Returns the chain.

setChain

public void setChain(String chain)
Set the chain reference

Parameters:
chain - The chain to set.

getDirection

public String getDirection()
Get the direction

Returns:
Returns the direction.

setDirection

public void setDirection(String direction)
Sets the direction.

Parameters:
direction - The direction to set.

getInterf

public String getInterf()
Retrieves the interface

Returns:
Returns the interf.

setInterf

public void setInterf(String interf)
Sets a new interface

Parameters:
interf - The interface to set.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

Copyright © 2005 Verinec, DIUF