public class NtpProtocolHandler
extends org.apache.mina.core.service.IoHandlerAdapter
IoHandler.messageReceived(org.apache.mina.core.session.IoSession, java.lang.Object) method,
which returns the NTP reply. The IoHandler.exceptionCaught(org.apache.mina.core.session.IoSession, java.lang.Throwable) is also implemented,
all the other methods are handled by the IoHandlerAdapter class.| Constructor and Description |
|---|
NtpProtocolHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
exceptionCaught(org.apache.mina.core.session.IoSession session,
Throwable cause) |
void |
messageReceived(org.apache.mina.core.session.IoSession session,
Object message) |
public void exceptionCaught(org.apache.mina.core.session.IoSession session,
Throwable cause)
exceptionCaught in interface org.apache.mina.core.service.IoHandlerexceptionCaught in class org.apache.mina.core.service.IoHandlerAdapterpublic void messageReceived(org.apache.mina.core.session.IoSession session,
Object message)
messageReceived in interface org.apache.mina.core.service.IoHandlermessageReceived in class org.apache.mina.core.service.IoHandlerAdapterCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.