org.apache.qpid.management.configuration
Class MessageHandlerMapping

java.lang.Object
  extended by org.apache.qpid.management.configuration.MessageHandlerMapping

 class MessageHandlerMapping
extends Object

Message Handler mapping used for associating an opcode with a message handler.


Constructor Summary
MessageHandlerMapping(Character opcode, IMessageHandler handler)
          Builds a new mapping with the given opcode and handler class.
 
Method Summary
(package private)  IMessageHandler getMessageHandler()
          Returns the message handler for this mapping.
(package private)  Character getOpcode()
          Returns the opcode of this mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageHandlerMapping

MessageHandlerMapping(Character opcode,
                      IMessageHandler handler)
Builds a new mapping with the given opcode and handler class.

Parameters:
opcode - the opcode.
handlerClass - the handler class.
Method Detail

getOpcode

Character getOpcode()
Returns the opcode of this mapping.

Returns:
the code of this mapping.

getMessageHandler

IMessageHandler getMessageHandler()
Returns the message handler for this mapping.

Returns:
the message handler for this mapping.


Licensed to the Apache Software Foundation