org.apache.mina.protocol.handler
Interface MessageHandler


public interface MessageHandler

A handler interface that DemuxingProtocolHandler forwards messageReceived events to. You have to register your handler with the type of message you want to get notified using DemuxingProtocolHandler.addMessageHandler(Class, MessageHandler).

Version:
$Rev: 332218 $, $Date: 2005-11-10 12:52:42 +0900 $
Author:
The Apache Directory Project

Field Summary
static MessageHandler NOOP
          A MessageHandler that does nothing.
 
Method Summary
 void messageReceived(ProtocolSession session, Object message)
          Invoked when the specific type of message is received from the specified session.
 

Field Detail

NOOP

static final MessageHandler NOOP
A MessageHandler that does nothing. This is usefule when you want to ignore messages of the specific type silently.

Method Detail

messageReceived

void messageReceived(ProtocolSession session,
                     Object message)
                     throws Exception
Invoked when the specific type of message is received from the specified session.

Throws:
Exception


Copyright © 2004-2005 . All Rights Reserved.