org.apache.synapse.transport.util

## Class MessageHandlerProvider

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

-     public class MessageHandlerProvider
      extends java.lang.Object

  Provider class for the `MessageHandler`.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MessageHandlerProvider()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and 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`.

Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.