|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.util.JPacketSupport
public class JPacketSupport
A utility class that dispatches a JPacket to any number of listeners. The packet is simply forwarded to any listeners as is.
| Constructor Summary | |
|---|---|
JPacketSupport()
|
|
| Method Summary | ||
|---|---|---|
|
add(JPacketHandler<T> o,
T user)
Adds the. |
|
void |
fireNextPacket(JPacket packet)
Fire next packet. |
|
void |
nextPacket(JPacket packet,
java.lang.Object user)
Next packet. |
|
boolean |
remove(JPacketHandler<?> o)
Removes the. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPacketSupport()
| Method Detail |
|---|
public <T> boolean add(JPacketHandler<T> o,
T user)
T - the generic typeo - the ouser - the user
public boolean remove(JPacketHandler<?> o)
o - the o
public void fireNextPacket(JPacket packet)
packet - the packet
public void nextPacket(JPacket packet,
java.lang.Object user)
nextPacket in interface JPacketHandler<java.lang.Object>packet - the packetuser - the userJPacketHandler.nextPacket(org.jnetpcap.packet.JPacket,
java.lang.Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||