Class fi.hut.tcm.jacob.tcpip.icmp.IcmpTypeAccessor
java.lang.Object
|
+--fi.hut.tcm.jacob.tcpip.icmp.IcmpTypeAccessor
- public class IcmpTypeAccessor
- extends java.lang.Object
- implements fi.hut.tcm.jacob.conduits.Accessor
IcmpTypeAccessor
This accessor examines the ICMP type of the message. The key is the
same as the ICMP type for all ICMP types except ICMP Echo and ICMP Echo
Reply. The reason for this is that incoming and outgoing Echo Requests
(and replies) have different routes.
Method Summary
|
java.lang.Object
|
getKey(fi.hut.tcm.jacob.conduits.Message message)
Gets the key of a Message , in order to be able to
route it correctly. |
void
|
setKey(fi.hut.tcm.jacob.conduits.Message message,
java.lang.Object key)
Sets the key for a message, but right now, does nothing but print
debug output. |
void
|
unsetKey(fi.hut.tcm.jacob.conduits.Message message)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
getKey
public java.lang.Object getKey(fi.hut.tcm.jacob.conduits.Message message)
- Gets the key of a
Message
, in order to be able to
route it correctly. In this version though, it does not yet do it,
only outputs debug information.
- Specified by:
- getKey(fi.hut.tcm.jacob.conduits.Message) in interface fi.hut.tcm.jacob.conduits.Accessor
- Parameters:
message
- which Message
- Returns:
- returns the corresponding key
setKey
public void setKey(fi.hut.tcm.jacob.conduits.Message message,
java.lang.Object key)
- Sets the key for a message, but right now, does nothing but print
debug output.
- Specified by:
- setKey(fi.hut.tcm.jacob.conduits.Message, java.lang.Object) in interface fi.hut.tcm.jacob.conduits.Accessor
- Parameters:
message
- which Message
key
- the key for the Message
unsetKey
public void unsetKey(fi.hut.tcm.jacob.conduits.Message message)
- Description copied from interface:
- Specified by:
- unsetKey(fi.hut.tcm.jacob.conduits.Message) in interface fi.hut.tcm.jacob.conduits.Accessor