public class KrakenArpHandler extends KrakenBaseProtocol
ArpActivity) and
passes it on to interested objects.
The Kraken library expects an Ethernet-Decoder that transfers decoded frames to an
ArpDecoder, therefore this Ethernet decoder must be bound from
a KrakenEthernetProtocolHandler to this Arp Decoder
(getKrakenArpDecoder()).
This class does not provide a binding method implementation, i.e. it is not possible to bind this handler
to another one.| Modifier and Type | Field and Description |
|---|---|
static ProtocolId |
krakenArpProtocolId |
static String |
NEW_ARP_ACTIVITY_PROPERTY_NAME |
BINDING_METHOD_NAME, log, propertyChangeSupport, protocolSetting| Constructor and Description |
|---|
KrakenArpHandler()
Constructs a new Arp handler by creating an
ArpDecoder, a
KrakenEthernetProtocolHandler and binding to it. |
| Modifier and Type | Method and Description |
|---|---|
org.krakenapps.pcap.decoder.arp.ArpDecoder |
getKrakenArpDecoder() |
ProtocolId |
getProtocolId()
An arbitrary identifier for the protocol(s) this decoder should be able to parse and decode.
|
void |
initialize(KrakenProtocolConfiguration setting)
Initializes this protocol decoder with the information provided by the user.
|
addPropertyChangeListener, addPropertyChangeListener, bind, findProtocolBindingMethod, getCurrentPcapActivity, getPcapHandler, getProtocolConfiguration, removePropertyChangeListener, removePropertyChangeListenerpublic static final String NEW_ARP_ACTIVITY_PROPERTY_NAME
public static final ProtocolId krakenArpProtocolId
public KrakenArpHandler()
ArpDecoder, a
KrakenEthernetProtocolHandler and binding to it.public ProtocolId getProtocolId()
BaseProtocolpublic void initialize(KrakenProtocolConfiguration setting)
KrakenBaseProtocolKrakenProtocolConfigurationBuilderImpl
before the bindings are processed.
This method should be called exactly once, multiple calls will result in an exception being thrown.initialize in class KrakenBaseProtocolsetting - the protocol configuration provided by the userpublic org.krakenapps.pcap.decoder.arp.ArpDecoder getKrakenArpDecoder()
Copyright © 2013–2015 Institute of networks and security. All rights reserved.