|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.netsim.firewall.util.tables.keys.SimpleKey
public abstract class SimpleKey
SimpleKey class. used to create keys for the Stateful Inspection HashTable. Simple Key consists of the protocol, destination and source address of a packet which is added to the Hash Table.
| Field Summary | |
|---|---|
static String |
CONFIG_FILE_NAME
File name of the preferences file where the timeout values are stored. |
private String |
direction
Direction in which the packet is traveling. |
private IAddress |
dst
Destination address of the packet. |
private Logger |
logger
|
private String |
protocol
Protocol of the packet. |
private IAddress |
src
Source address of the packet. |
| Constructor Summary | |
|---|---|
SimpleKey(String protocol,
IAddress src,
IAddress dst)
Creates a Key for a HashTable entry. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Equals methos which overrides @link Object#equals(java.lang.Object) The method was overriden so that the one can compare @link ITableKey Objects. |
String |
getDirection()
Get the direction in which the packet is traveling. |
IAddress |
getDst()
Gets destination address of the key's packet. |
Logger |
getLogger()
|
String |
getProtocol()
Returns the protcol of the packet-key. |
IAddress |
getSrc()
Gets source address of the key's packet. |
int |
hashCode()
HashCode method which overrides @link Object#hashCode() The method was overriden so that one can compare @link ITableKey Objects. |
static void |
loadTimeouts()
Method which loads the timeout values for each protocol. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface verinec.netsim.firewall.util.tables.keys.ITableKey |
|---|
handleEstablished, handleNew, handleRelated, updateEntry |
| Field Detail |
|---|
private Logger logger
private String protocol
private IAddress src
private IAddress dst
private String direction
public static final String CONFIG_FILE_NAME
| Constructor Detail |
|---|
public SimpleKey(String protocol,
IAddress src,
IAddress dst)
protocol - Type of network protocol the key is used for.src - Source address of the packet.dst - Destination address of the packet.| Method Detail |
|---|
public IAddress getDst()
public IAddress getSrc()
public String getProtocol()
ITableKey
getProtocol in interface ITableKeyITableKey.getProtocol()public String getDirection()
public boolean equals(Object other)
ITableKey
equals in interface ITableKeyequals in class Objectother - the Other Object to compare against.
ITableKey.equals(java.lang.Object)public int hashCode()
ITableKey
hashCode in interface ITableKeyhashCode in class ObjectITableKey.hashCode()public static void loadTimeouts()
public Logger getLogger()
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 | ||||||||