org.apache.synapse.commons.builders

## Interface MessageConverter

- All Known Implementing Classes:
    SynapseMessageConverter

      public interface MessageConverter

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `convert(org.apache.axis2.context.MessageContext messageContext, OutputStream outputStream, String fromMediaType, String toMediaType)`
    `StringBuilder` | `convert(org.apache.axis2.context.MessageContext messageContext, String fromMediaType, String toMediaType)` Message formatter action.
    `void` | `convert(org.apache.axiom.om.OMElement element, OutputStream outputStream, String fromMediaType, String toMediaType)` Message formatter action.
    `StringBuilder` | `convert(org.apache.axiom.om.OMElement element, String fromMediaType, String toMediaType)` Message formatter action.

- - ### Method Detail

    - #### convert

          void convert(org.apache.axiom.om.OMElement element,
                       OutputStream outputStream,
                       String fromMediaType,
                       String toMediaType)
                throws MessageConversionException

      Message formatter action.
      Parameters:
        `element` -
        `outputStream` -
        `fromMediaType` -
        `toMediaType` -
      Throws:
        `MessageConversionException`

    - #### convert

          void convert(org.apache.axis2.context.MessageContext messageContext,
                       OutputStream outputStream,
                       String fromMediaType,
                       String toMediaType)
                throws MessageConversionException

      Parameters:
        `messageContext` -
        `outputStream` -
        `fromMediaType` -
        `toMediaType` -
      Throws:
        `MessageConversionException`

    - #### convert

          StringBuilder convert(org.apache.axiom.om.OMElement element,
                                String fromMediaType,
                                String toMediaType)
                         throws MessageConversionException

      Message formatter action.
      Parameters:
        `element` -
        `fromMediaType` -
        `toMediaType` -
      Returns:
      Throws:
        `MessageConversionException`

    - #### convert

          StringBuilder convert(org.apache.axis2.context.MessageContext messageContext,
                                String fromMediaType,
                                String toMediaType)
                         throws MessageConversionException

      Message formatter action.
      Parameters:
        `messageContext` -
        `fromMediaType` -
        `toMediaType` -
      Returns:
      Throws:
        `MessageConversionException`

Copyright © 2005–2018 Apache Software Foundation. All rights reserved.