Module com.slytechs.jnet.jnetpcap
Package com.slytechs.jnet.jnetpcap
Class PcapProConfigurator<T extends PcapProConfigurator<T>>
java.lang.Object
com.slytechs.jnet.jnetpcap.PcapProConfigurator<T>
- Type Parameters:
T- the generic type
- Direct Known Subclasses:
IpfReassembler,PacketDelay,PacketPlayer,PacketRepeater
Base class for all packet processors.
- Author:
- Sly Technologies Inc, repos@slytechs.com
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceMarker interface for post-processors operate on protocol dissected packets.static interfaceA factory for creating Post objects.static interfaceMarker interface for pre-processors which operate on raw native packets.static interfaceA factory for creating Pre objects.static interfaceMarker interface for all RX processors which capture/receive packets/data.static interfaceMarker interface for all TX processor which transmit/save packets/data. -
Method Summary
Modifier and TypeMethodDescriptionfinal Tenable(boolean enable) Enable.final TenableIf(BooleanSupplier predicate) Enable if.final NetPcap.PcapProContextGets the pcap context.final booleanChecks if is enabled.
-
Method Details
-
enable
Enable.- Parameters:
enable- the enable- Returns:
- the t
-
enableIf
Enable if.- Parameters:
predicate- the predicate- Returns:
- the t
-
isEnabled
public final boolean isEnabled()Checks if is enabled.- Returns:
- true, if is enabled
-
getPcapContext
Gets the pcap context.- Returns:
- the pcap context
-