|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.realtime.xmpp.util.RestartingEndpoint
|
+--com.realtime.xmpp.dom.DomComponent
Provide a Jabber component that generates DOM packets on incoming requests.
Provides convenience methods such as send() and reply() for sending XMPP packets.
| Field Summary | |
protected Xmpp2DomTransformer |
m_transformer
The XMPP to DOM transformer. |
| Fields inherited from class com.realtime.xmpp.util.RestartingEndpoint |
m_session, m_sessionRestarter, XMPP_REQUEST_TIMEOUT |
| Constructor Summary | |
DomComponent(java.lang.String sHost,
int nPort,
java.lang.String sNamespace)
Create a component that generates DOM packets on incoming messages. |
|
DomComponent(XmlStreamFactory streamFactory,
java.lang.String sNamespace)
Create a component that generates DOM packets on incoming messages. |
|
| Method Summary | |
Xmpp2DomTransformer |
getDomTransformer()
Provide our DOM transformer. |
org.dom4j.Element |
query(XmppQuery request)
Provide a synchronous send() method. |
void |
send(XmppStanza packet)
Send a packet to the Jabber server. |
| Methods inherited from class com.realtime.xmpp.util.RestartingEndpoint |
fastStart, getComponentName, getSession, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Xmpp2DomTransformer m_transformer
| Constructor Detail |
public DomComponent(XmlStreamFactory streamFactory,
java.lang.String sNamespace)
Create a component that generates DOM packets on incoming messages. This component does not do authentication.
streamFactory - An XML stream factory.sNamespace - The namespace to use.
public DomComponent(java.lang.String sHost,
int nPort,
java.lang.String sNamespace)
Create a component that generates DOM packets on incoming messages. This component does not do authentication.
sHost - The host name to connect to.nPort - The server port to connect to.sNamespace - The namespace to use.| Method Detail |
public Xmpp2DomTransformer getDomTransformer()
Provide our DOM transformer.
public org.dom4j.Element query(XmppQuery request)
throws java.io.IOException
Provide a synchronous send() method. Uses the DomPacketSenders default timeout.
request - The XMPP request.
java.io.IOException - Generated when there are problems with
the XMPP session.
public void send(XmppStanza packet)
throws java.io.IOException
Send a packet to the Jabber server. This method does not wait for a response.
packet - The packet to send.
java.io.IOException - Generated when there are problems writing to the stream.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||