public class ClientConnectionHandler extends ConnectionHandler
StanzaHandler
should
be created and how to build and configure a NIOConnection
.CONNECTION, HANDLER, serverName
Constructor and Description |
---|
ClientConnectionHandler(String serverName) |
Modifier and Type | Method and Description |
---|---|
void |
sessionIdle(org.apache.mina.core.session.IoSession session,
org.apache.mina.core.session.IdleStatus status)
In addition to the functionality provided by the parent class, this
method will send XMPP ping requests to the remote entity on every first
invocation of this method (which will occur after a period of half the
allowed connection idle time has passed, without any IO).
|
exceptionCaught, messageReceived, messageSent, sessionClosed, sessionOpened
public ClientConnectionHandler(String serverName)
public void sessionIdle(org.apache.mina.core.session.IoSession session, org.apache.mina.core.session.IdleStatus status) throws Exception
sessionIdle
in interface org.apache.mina.core.service.IoHandler
sessionIdle
in class ConnectionHandler
Exception
ConnectionHandler.sessionIdle(IoSession, IdleStatus)
Copyright © 2003-2008 Jive Software.