|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.realtime.xmpp.dom.DomTimedPacketReceiver
Provides a capture mechanisms for requests that generate more than one response. For example, the <presence type="probe"> request may generate zero or more responses, and with no guarantee on what you will get. This class listens for a certain amount of time for packets, and then exits.
Every incoming packet is passed to incomingPacket().
Field Summary | |
static long |
DEFAULT_RESPONSE_TIMEOUT
The default packet timeout in milliseconds. |
protected DomPacketListener |
m_listener
Process incoming packets. |
protected Xmpp2DomTransformer |
m_transformer
The XMPP to DOM transformer we should receive packets from. |
Constructor Summary | |
DomTimedPacketReceiver(Xmpp2DomTransformer transformer,
DomPacketListener listener)
Construct a packet sender to work with the DOM transformer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Xmpp2DomTransformer m_transformer
protected DomPacketListener m_listener
public static final long DEFAULT_RESPONSE_TIMEOUT
Constructor Detail |
public DomTimedPacketReceiver(Xmpp2DomTransformer transformer, DomPacketListener listener) throws java.io.IOException
Construct a packet sender to work with the DOM transformer.
* @param transformer The Dom transformer to register our listener with. * @param listener The packet listener. * @throws IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |