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

    All Methods Static Methods Concrete Methods
    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 Detail

    - #### MessageHandlerProvider

          public MessageHandlerProvider()

  - ### Method Detail

    - #### 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`.