org.apache.directory.server.ntp.protocol
Class NtpProtocolHandler
java.lang.Object
org.apache.mina.core.service.IoHandlerAdapter
org.apache.directory.server.ntp.protocol.NtpProtocolHandler
- All Implemented Interfaces:
- org.apache.mina.core.service.IoHandler
public class NtpProtocolHandler
- extends org.apache.mina.core.service.IoHandlerAdapter
The NTP protocol handler. It implements the 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.
- Author:
- Apache Directory Project
| Methods inherited from class org.apache.mina.core.service.IoHandlerAdapter |
messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpened |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NtpProtocolHandler
public NtpProtocolHandler()
exceptionCaught
public void exceptionCaught(org.apache.mina.core.session.IoSession session,
Throwable cause)
-
- Specified by:
exceptionCaught in interface org.apache.mina.core.service.IoHandler- Overrides:
exceptionCaught in class org.apache.mina.core.service.IoHandlerAdapter
messageReceived
public void messageReceived(org.apache.mina.core.session.IoSession session,
Object message)
-
- Specified by:
messageReceived in interface org.apache.mina.core.service.IoHandler- Overrides:
messageReceived in class org.apache.mina.core.service.IoHandlerAdapter
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.