Package org.apache.synapse.transport.util

# Class MessageHandlerProvider

java.lang.Object
org.apache.synapse.transport.util.MessageHandlerProvider

public class MessageHandlerProvider extends Object
Provider class for the `MessageHandler`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MessageHandlerProvider()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static MessageHandler`
  `getMessageHandler(org.apache.axis2.context.MessageContext messageContext)`
  Provides the suitable MessageHandler class based on the underline transport implementation, which invokes this method.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MessageHandlerProvider

    public MessageHandlerProvider()

- ## Method Details

  - ### getMessageHandler

    public static MessageHandler getMessageHandler(org.apache.axis2.context.MessageContext messageContext)
    Provides the suitable MessageHandler class based on the underline transport implementation, which invokes this method.
    Parameters:
      `messageContext` - axis2 message context
    Returns:
      instance of a `MessageHandler` that is assigned to "transport.message.handler" axis2 property. Default is `PassThroughMessageHandler`.